You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auth API: support affiliations search parameters #26087
1. The affiliations endpoint needs to support parameters:
business name partial match
number partial match
type(s)
status(es)
paging (eg, page number + results per page)
2. Apply filters and pagination to existing dataset.This solution is obsolete.
filtering and pagination in API - done by @Rajandeep98
BRD work to fix the filters being passed to Auth API - done by @JazzarKarim
3. Pass filters and pagination to Namex API and Legal API
I think you also need to pass the original page size to each API, in case all results come from that API. For example, if the page size is 100, you can't fetch 50 from Names and 50 from LEAR because of the filters. So you'd fetch 100 from each (up to 200 total) and then only keep the first 100 for sending back to the UI.
Example URL parameters for filtering and paging: https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/admin/reviews?startDate=&endDate=&nrNumber=&identifier=&contactEmail=&status=AWAITING_REVIEW&status=CHANGE_REQUESTED&status=RESUBMITTED&sortBy=submissionDate&sortDesc=false&page=2&limit=5
changed the title [-]Auth API: support affiliations search parameters and refactor logic[/-][+]Auth API: support affiliations search parameters[/+]on Mar 10, 2025
New Soluiton Proposed by Travis to ease off the burden on auth api by implementing filtering on api side:
Concept: in the table only show top/recent 10-20 affiliations and let the user search what they aare looking for.
Possible approach
Implement search for businesses in lear so that it can let business search
Implement search for names in names so that it can search NRs related to that
Then create/search affiliations>> create the result for search. (something in auth)
Output Workflow Logic
Search a name/identifier
Take that name and search in names and lear
Get the output and create related / affiliation and show then into diff rows
Example:
something like this business name search: SEVERIN TESTING NAME IN BUSINESS REGISTRY
should bring us business identifier info
should bring us something from names if possible (need to confirm what type of nr should still be shown except consumed status such as name changed)
Activity
severinbeauvais commentedon Feb 20, 2025
Example URL parameters for filtering and paging:
https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/admin/reviews?startDate=&endDate=&nrNumber=&identifier=&contactEmail=&status=AWAITING_REVIEW&status=CHANGE_REQUESTED&status=RESUBMITTED&sortBy=submissionDate&sortDesc=false&page=2&limit=5[-]Auth API: support affiliations search parameters and refactor logic[/-][+]Auth API: support affiliations search parameters[/+]severinbeauvais commentedon Mar 10, 2025
Example code for handling URL parameters:
https://github.com/bcgov/sbc-auth/blob/7e1a7b5875bdc24a580109cba7ce0c60eab74e58/auth-api/src/auth_api/resources/v1/org.py#L56
Rajandeep98 commentedon Apr 11, 2025
bcgov/sbc-auth#3361 (comment)
Rajandeep98 commentedon Apr 11, 2025
New Soluiton Proposed by Travis to ease off the burden on auth api by implementing filtering on api side:
Concept: in the table only show top/recent 10-20 affiliations and let the user search what they aare looking for.
Possible approach
Implement search for businesses in lear so that it can let business search
Implement search for names in names so that it can search NRs related to that
Then create/search affiliations>> create the result for search. (something in auth)
Output Workflow Logic
Search a name/identifier
Take that name and search in names and lear
Get the output and create related / affiliation and show then into diff rows
Example:
something like this business name search: SEVERIN TESTING NAME IN BUSINESS REGISTRY
should bring us business identifier info
should bring us something from names if possible (need to confirm what type of nr should still be shown except consumed status such as name changed)
severinbeauvais commentedon Apr 11, 2025
I have updated the description in this ticket. Feel free to delete any obsolete comments above.
Mihai-QuickSilverDev commentedon May 12, 2025