Bugfix/member organization filter should include dates c 2025 #1381
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
🤖 Generated by Copilot at f2723c2
This pull request improves the search functionality and performance by refactoring the opensearch schema and queries to use the nested type for fields that contain arrays of objects. It also fixes a bug in the member count for organizations and adds a filter for organizations in the member search. The changes affect the files
organization.repo.ts
,member.sync.service.ts
,types.ts
,members.ts
,memberRepository.ts
, andopensearch.ts
.
🤖 Generated by Copilot at f2723c2
Why
How
🤖 Generated by Copilot at f2723c2
MemberRepository
class to enable searching for members by one or more organization ids and exclude inactive members (link)OrganizationRepository
class to count only active members in each organization and join with the memberOrganizations table (link, link, link)MemberSyncService
class to reflect the new naming convention (link, link, link)MembersOpensearch
class to use the nested type (link, link)NESTED
to theOpensearchFieldType
enum to support the nested type (link)Checklist ✅
Feature
,Improvement
, orBug
.