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: search in queries history & saved #1127

Merged
merged 4 commits into from
Aug 9, 2024
Merged

feat: search in queries history & saved #1127

merged 4 commits into from
Aug 9, 2024

Conversation

sareyu
Copy link
Collaborator

@sareyu sareyu commented Aug 7, 2024

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
70 70 0 0 0

Bundle Size: πŸ”Ί

Current: 78.89 MB | Main: 78.89 MB
Diff: +0.01 MB (0.01%)

⚠️ Bundle size increased. Please review.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • πŸ“Š indicates links to detailed reports.
  • πŸ”Ί indicates increase, πŸ”½ decrease, and βœ… no change in bundle size.

@sareyu sareyu linked an issue Aug 7, 2024 that may be closed by this pull request
@sareyu
Copy link
Collaborator Author

sareyu commented Aug 7, 2024

image

Search is performed by query text field, case insensitive. Same behaviour on saved query tab

@sareyu sareyu marked this pull request as ready for review August 7, 2024 08:51

const queriesHistory = useTypedSelector(selectQueriesHistory);
const queriesHistory = useTypedSelector(selectQueriesHistory(filter));
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think if we operate with filter in store? This allows to preserve filter value when tabs are switching, and all staff with filtering would be done inside redux selectors (it would be no need to pass filter there).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@Raubzeug
Copy link
Contributor

Raubzeug commented Aug 7, 2024

It seems that search should be case insensitive, cause sql keywords are both valid - uppercase and lowercase.

@sareyu sareyu merged commit efd5813 into main Aug 9, 2024
6 checks passed
@sareyu sareyu deleted the issue610 branch August 9, 2024 08:42
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.

Add search to Saved and History tabs in Query
2 participants