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

fix: Incorrect tag filtering when results have no features #3309

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Jan 19, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

When filtering on a tag without features then removing the filter, the UI flickers between the create your first feature page and the table.

To fix this the page keeps track of when features were loaded for the current project/environment and never shows the create first flag UI after that. Although this is a bit of a workaround it will be fixed automatically when migrating this page to RTK but that's a massive piece of work that won't happen for a while.

How did you test this code?

  • Filtered by tag without flags and remove filter
  • Tested with project without flags
  • Tested deleting last project flag

@kyle-ssg kyle-ssg requested a review from novakzaballa January 19, 2024 16:55
Copy link

vercel bot commented Jan 19, 2024

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 4:58pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 4:58pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 4:58pm

Copy link
Contributor

github-actions bot commented Jan 19, 2024

Uffizzi Preview deployment-44700 was deleted.

@kyle-ssg kyle-ssg changed the title Fix loading state after first load of feature flags fix: Incorrect tag filtering when results have no features Jan 19, 2024
@kyle-ssg kyle-ssg added this pull request to the merge queue Jan 23, 2024
Merged via the queue into main with commit cca86c3 Jan 23, 2024
@kyle-ssg kyle-ssg deleted the fix/filter-empty-tag branch January 23, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to clear selected tag value from Tags filter in Features page
2 participants