-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: API for search entities #29203
Conversation
…ement addition and removal of ids for created and leave workspace API
WalkthroughWalkthroughThe changes involve the implementation of new classes and methods to support search functionality and recently used entities tracking for an updated homepage experience. This includes new controllers, DTOs, helpers, migrations, and services, as well as modifications to existing classes to integrate these features. Deprecated methods are marked, and new tests are added to ensure the functionality works as expected. Changes
Assessment against linked issues
TipsChat with CodeRabbit Bot (
|
/ok-to-test |
...appsmith-server/src/main/java/com/appsmith/server/searchentities/SearchEntitySolutionCE.java
Show resolved
Hide resolved
...smith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java
Show resolved
Hide resolved
app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/ce/DomainSorterTest.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/ce/DomainSorterTest.java
Outdated
Show resolved
Hide resolved
...ava/com/appsmith/server/migrations/db/ce/Migration036AddRecentlyUsedEntitiesForUserData.java
Outdated
Show resolved
Hide resolved
...va/com/appsmith/server/migrations/db/ce/Migration037AddCompoundIndexForNameAndDeletedAt.java
Outdated
Show resolved
Hide resolved
...va/com/appsmith/server/migrations/db/ce/Migration037AddCompoundIndexForNameAndDeletedAt.java
Outdated
Show resolved
Hide resolved
.../appsmith-server/src/main/java/com/appsmith/server/controllers/ce/WorkspaceControllerCE.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/main/java/com/appsmith/server/services/BaseService.java
Outdated
Show resolved
Hide resolved
app/server/appsmith-server/src/main/java/com/appsmith/server/services/BaseService.java
Outdated
Show resolved
Hide resolved
...psmith-server/src/test/java/com/appsmith/server/searchentities/SearchEntitySolutionTest.java
Outdated
Show resolved
Hide resolved
...psmith-server/src/test/java/com/appsmith/server/searchentities/SearchEntitySolutionTest.java
Outdated
Show resolved
Hide resolved
.../appsmith-server/src/test/java/com/appsmith/server/services/ce/ApplicationServiceCETest.java
Outdated
Show resolved
Hide resolved
/ok-to-test |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7120393839. |
Flux<Workspace> filterByEntityFields( | ||
List<String> searchableEntityFields, | ||
String searchString, | ||
Pageable pageable, | ||
Sort sort, | ||
AclPermission permission); |
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.
The new method filterByEntityFields
lacks documentation. Adding Javadoc comments would help maintainers and other developers understand the purpose, usage, and behavior of this method.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7120393839. |
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
Description
As per updated homepage experience search functionality will be handled by server and will be applicable for all the entities present on homepage.
Request format:
Note: We will be running a couple of experiment to optimise the search, with this PR we have implemented basic search with contains functionality and index is applied on the searchable fields. Mongo does offer text-search functionality based on tokenisation which may tackle the incorrect spellings scenario. But as the searches are for names we have avoided that route for now as language tokenisation was not providing the expected results which basic search was able to.
Design handoff:
https://app.zeplin.io/project/653f7de4c1d563203f817bce/screen/653f7eea5d02e7233ede382c
PR fixes following issue(s)
Fixes #28793
Type of change
Testing
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity:
Test Plan Approved
label after Cypress tests were reviewedTest Plan Approved
label after JUnit tests were reviewedSummary by CodeRabbit
New Features
Improvements
Bug Fixes
Deprecated Features
getAllApplicationsForHome
method as deprecated.Tests