Skip to content
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

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Jun 5, 2024

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

Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2024 10:24am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2024 10:24am

Copy link
Contributor

github-actions bot commented Jun 5, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@kwasniew kwasniew requested a review from sjaanus June 5, 2024 10:23
@@ -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',
Copy link
Contributor Author

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:
Copy link
Contributor Author

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'],
Copy link
Contributor Author

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

Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG.

@kwasniew kwasniew merged commit 1a61976 into main Jun 5, 2024
7 checks passed
@kwasniew kwasniew deleted the add-created-by-to-search branch June 5, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants