Serve organization profiles from OpenSearch #1952
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed ✍️
What
🤖[deprecated] Generated by Copilot at 640400c
The pull request adds the ability to query the organization data from the OpenSearch index instead of the relational database, using the
findByIdOpensearch
method in theOrganizationService
andOrganizationRepository
classes. It also updates theOrganization
interface and theorganizationFind
API endpoint to support the new fieldstags
andticker
for the organization data.
🤖[deprecated] Generated by Copilot at 640400c
Why
How
🤖[deprecated] Generated by Copilot at 640400c
organizationFind
API endpoint by querying the organization data from the OpenSearch index instead of the relational database (link, link, link)tags
andticker
fields to theOrganization
interface for the OpenSearch index, and index and search them by the OpenSearch engine (link)backend/src/api/organization/organizationFind.ts
file to use thefindByIdOpensearch
method of theOrganizationService
class (link)findByIdOpensearch
method in theOrganizationRepository
class in thebackend/src/database/repositories/organizationRepository.ts
file, which performs a filtered query on the OpenSearch index using theopensearch
client, translates the OpenSearch fields to the Crowd fields, and throws anError404
if no organization is found (link)findByIdOpensearch
method of theOrganizationRepository
class in theOrganizationService
class in thebackend/src/services/organizationService.ts
file (link)tags
andticker
fields to theOrganization
interface in theservices/libs/opensearch/src/repo/organization.repo.ts
file (link)Checklist ✅
Feature
,Improvement
, orBug
.