Skip to content

Legal API: Up to date director info not showing up when a new director is being added before filing an AR for imported companies. #26608

Closed

Description

@riyazuddinsyed

Describe the bug in the current situation
For the companies that are being imported from Colin, when the user adds a new director before filing the AR, all the current director's info does not show up in the AR.

Steps to reproduce the behavior:

  1. Go to 'https://test.business-dashboard.bcregistry.gov.bc.ca/BC1344052?accountid=1999' - BC1344052
  2. Log in as Staff
  3. Start an AR
  4. Observe that all the directors list isn't showing up in the AR

Screenshots/ Visual Reference/ Source
Screen Shot 2025-03-19 at 2.23.10 PM.png

Screen Shot 2025-03-19 at 2.22.30 PM.png

Activity

  1. added
    bug
    Entities Team
    on Mar 19, 2025
  2. added
    Entities - Data Migration
    on Mar 21, 2025
  3. argush3 commented on Mar 21, 2025

    @argush3
    Contributor
  4. self-assigned this
    on Mar 21, 2025
  5. removed
    Entities Team
    on Mar 21, 2025
  6. argush3 commented on Mar 21, 2025

    @argush3
    Contributor

    @OlgaPotiagalova @riyazuddinsyed @severinbeauvais @vikas-gov

    I'm thinking this is a FE issue. Going to unassign myself from this ticket and leave it with you guys

    I see this happening for migrated corps and corps created in modernized system.

    For example, I can see that BC1144605 is not loading the 1 director available either when i try to file an AR.

    Note that in the case of the migrated corp(BC1344052) and the BEN(BC1144605) created in BR, I can see the expected directors returned in the GET /parties endpoint. I'm assuming the GET /parties endpoint is what the FE is using to load the AR filing.

    BEN(BC1144605) info:

    image.png

    image.png

    migrated corp(BC1344052) info:
    image.png

  7. removed their assignment
    on Mar 21, 2025
  8. added
    Entities Team
    and removed
    Entities - Data Migration
    on Mar 21, 2025
  9. changed the title [-]Up to date director info not showing up when a new director is being added before filing an AR for imported companies.[/-] [+]Filings UI: Up to date director info not showing up when a new director is being added before filing an AR for imported companies.[/+] on Mar 25, 2025
  10. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    Collaborator
    1. Observe that all the directors list isn't showing up in the AR

    That's because the directors "as of 2025-10-21" are fetched for the Annual Report. The API is returning a single director. Probably, if we set the date far back, the API would return all directors appointed since then.

    image.png

    image.png

  11. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    Collaborator

    Same thing for BC1144605.

    image.png

    image.png

    image.png

    The "as of" date is the Annual Report Date, as provided by the API in the "2022 Annual Report" task:

    image.png

  12. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    Collaborator

    @argush3 It looks like the Legal API isn't correctly finding which directors are valid for the given Annual Report Date.

    Per your example, the second director should not be returned since they were appointed on 2025-03-18. which is in the future relative to the AR we are trying to file.

  13. changed the title [-]Filings UI: Up to date director info not showing up when a new director is being added before filing an AR for imported companies.[/-] [+]Legal API: Up to date director info not showing up when a new director is being added before filing an AR for imported companies.[/+] on Mar 25, 2025
  14. added
    Entities - Data Migration
    on Mar 25, 2025
  15. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    Collaborator

    @chenhongjing @riyazuddinsyed Maybe this is working correctly?

  16. chenhongjing commented on Mar 25, 2025

    @chenhongjing

    @severinbeauvais To confirm, Legal API should return directors appointed and not ceased on the date of annual report date instead of filing date, correct? If so, I don't think it's an issue if FE gets directors via businesses/<identifier>/directors?date=<end-date> (Not an issue fot either side)
    Here are my testings:

    image.png

    image.png

  17. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    Collaborator

    Thanks, Hongjing.

    I'm happy to resolve this ticket if Riyaz is OK with that.

    I'll set the estimate to "2" to account for our investigative time.

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

Metadata

Metadata

Assignees

Labels

Entities - Data MigrationEntities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions