Skip to content

Auth API: support affiliations search parameters #26087

Closed

Description

@severinbeauvais

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.

Activity

  1. added
    Entities Team
    on Feb 20, 2025
  2. severinbeauvais commented on Feb 20, 2025

    @severinbeauvais
    CollaboratorAuthor

    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

  3. changed the title [-]Auth API: support affiliations search parameters and refactor logic[/-] [+]Auth API: support affiliations search parameters[/+] on Mar 10, 2025
  4. added
    connect
    on Mar 10, 2025
  5. severinbeauvais commented on Mar 10, 2025

    @severinbeauvais
    CollaboratorAuthor
  6. Rajandeep98 commented on Apr 11, 2025

    @Rajandeep98
    Collaborator
  7. Rajandeep98 commented on Apr 11, 2025

    @Rajandeep98
    Collaborator

    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)

  8. deleted a comment from JazzarKarim on Apr 11, 2025
  9. deleted a comment from JazzarKarim on Apr 11, 2025
  10. severinbeauvais commented on Apr 11, 2025

    @severinbeauvais
    CollaboratorAuthor

    I have updated the description in this ticket. Feel free to delete any obsolete comments above.

  11. Mihai-QuickSilverDev commented on May 12, 2025

    @Mihai-QuickSilverDev
    Collaborator
    • Resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities Teamconnect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions