Skip to content

Legal API: tell Auth API about new NR #22171

Open

Description

@severinbeauvais

Auth API/db has the affiliation between an NR and draft application. This needs to be updated when a draft application uses a new NR. (Note: A continuation in application may also be in CHANGE_REQUESTED state (not DRAFT) for resubmit.)

I think what's needed is for Legal API to make an updated call to Auth API to update the NR number of a draft application (or vice-versa: update the application affiliated with a NR). There may also be work needed in Auth API.

I'm not sure what the trigger for Legal API will be. There must already be a trigger to make the initial NR/application affiliation but maybe that's in Auth API itself (when the draft is created?), and the new trigger has to come from Legal API side.

@vysakh-menon-aot Please update description if you have updated information. Thx!

Activity

  1. added
    Entities Team
    on Jul 4, 2024
  2. vysakh-menon-aot commented on Jul 4, 2024

    @vysakh-menon-aot
    Contributor

    If there is a change in NR delete and recreate the affiliation. auth-api doesn't support option to update. Currently we create an affiliation when a draft filing is created (for a new business).
    ref: https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/resources/v2/business/business.py#L136

    We have to handle this is in save filings https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py#L98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities Team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions