-
-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add created by in search results #7285
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
@@ -133,6 +133,11 @@ class FeatureSearchStore implements IFeatureSearchStore { | |||
'ft.tag_value as tag_value', | |||
'ft.tag_type as tag_type', | |||
'segments.name as segment_name', | |||
'users.id as user_id', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very careful here to avoid duplicate names
@@ -407,6 +417,15 @@ class FeatureSearchStore implements IFeatureSearchStore { | |||
dependencyType: row.dependency, | |||
environments: [], | |||
segments: row.segment_name ? [row.segment_name] : [], | |||
createdBy: { | |||
id: Number(row.user_id), | |||
name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hiding fallback from the UI
type: 'object', | ||
description: 'User who created the feature flag', | ||
additionalProperties: false, | ||
required: ['id', 'name', 'imageUrl'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decided to go for nulls instead of null + undefined. All fields will always be provided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG.
About the changes
Adding created by section with id, name and avatar img for the search results. Search table will have a user avatar (next PR)
Important files
Discussion points