-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Paging improvement #13943
Paging improvement #13943
Conversation
[open-metadata-ui] Kudos, SonarCloud Quality Gate passed! |
showPagination, | ||
} = usePaging(); | ||
|
||
const fetchDatabaseSchema = useCallback( |
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.
wouldn't it simplify this component if fetchDatabaseSchema
and searchSchema
are replaced by single function that uses same query but query_text
is:
*
when search box is empty and(name.keyword:*${searchValue}*) OR (description.keyword:*${searchValue}*)
when search box is not empty
it would:
- centralize the way data is fetched (and from where it's fetched) and follow DRY approach
- keep just one logic of pagination
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.
* fix(ui): databaseschema paging issue * fix minor issues * test fixes * fix path issue and some cypress * fix sonarcloud (cherry picked from commit e2418ae)
Describe your changes:
Fixes #13925
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>