-
Notifications
You must be signed in to change notification settings - Fork 61
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
Issue 1711 api pagination updates #1728
Conversation
Signed-off-by: Aindriu Lavelle <[email protected]>
…-pagination-updates
Signed-off-by: Aindriu Lavelle <[email protected]>
Signed-off-by: Aindriu Lavelle <[email protected]>
Signed-off-by: Aindriu Lavelle <[email protected]>
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.
FE is happy 🎉
core/src/main/java/io/aiven/klaw/controller/EnvsClustersTenantsController.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/aiven/klaw/controller/EnvsClustersTenantsController.java
Outdated
Show resolved
Hide resolved
.toLowerCase() | ||
.contains(searchEnvParam.toLowerCase())) | ||
env -> { | ||
if (env.getName().toLowerCase().contains(searchEnvParam.toLowerCase()) |
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.
could there be a bug even before, if we use 'contains' here instead of equals ?
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.
as this is partial match I think that contains makes more sense, equals would work if we were providing a drop down list but this is like type in "DE" and get everything that has DE in it.
So i think it is ok
Signed-off-by: Aindriu Lavelle <[email protected]>
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.
LGTM, thanks.
About this change - What it does
This change adds multiple new end points for the coral UI to interact with and reduces code complexity by re-using a single piece of code to give a paginated resource to schema and connector environments as well.
It also reduces the number of loops of the list of environments and fixes a bug in the pagination.
Resolves: #1711
Why this way