Skip to content

Data fix - update submitter_roles for migrated staff filings #30272

Closed

Description

@argush3

Migrated corps are not hiding the staff users name in the ledger history for regular users. Some work was done in #29914 to analyze this issue.

Tasks

  • Create sql script to update staff submitted filings for migrated corps. filings.submitter_roles should be updated to have a value of “staff”. Will probably need to use the filing_user table in COLIN extract to figure out which migrated filings were done by staff
  • Test in dev or test before applying data fix to prod

Activity

  1. added
    Entities - Data Migration
    on Aug 19, 2025
  2. argush3 commented on Aug 19, 2025

    @argush3
    ContributorAuthor
  3. AimeeGao commented on Aug 27, 2025

    @AimeeGao

    Testing Notes

    Testing Environment

    • DEV
    • Test data (Group 1 Batch 1) loaded by Argus

    Test Scenarios

    1. Find the migrated staff filings

      • Queried migrated corps with role_typ_cd = staff from the test dataset.
      • Found the following filings:
      Identifier event_id filing_id
      BC1135671 14573483 201821
      BC1480185 19101398 202238
      BC1167495 14507177 202310

    image.png

    1. Update submitter_roles for migrated staff filings

      • Update submitter_roles for migrated staff filings.
    2. Verification

      • Logged in as a regular user after the update.
      • Confirmed that filings submitted by staff are now shown correctly:
        • Staff names have been replaced with Registry Staff as expected.

    Result

    • All staff filings were successfully updated.
    BC1135671
    • Before:

    image.png

    • After:

    image.png

    BC1480185
    • Before:

    image.png

    • After:

    image.png

    BC1167495
    • Before:

    image.png

    • After:

    image.png

    ✅ Ready to move forward with Test environment validation.

  4. AimeeGao commented on Aug 28, 2025

    @AimeeGao

    Testing Notes

    Testing Environment

    • TEST
    • Test data: Early Adopters corps under the Test environment

    Test Scenarios

    • Test scenarios are the same as in Dev environment (query staff filings, update submitter_roles, verify with regular user).
    • The only difference is the dataset used in Test.

    Staff filings found in Test (Early Adopters corps):

    Identifier event_id filing_id
    BC1372713 17412619 539501
    BC1217576 15309534 539373
    BC0945732 10891240 539402
    BC1361825 19477222 539088

    image.png

    Result

    • All migrated staff filings were successfully updated and verified.
    BC1372713
    • Before:

    image.png

    • After:

    image.png

    BC1217576
    • Before:

    image.png

    • After:

    image.png

    BC0945732
    • Before:

    image.png

    • After:

    image.png

    ✅ Ready to move forward with Prod data fix.

  5. argush3 commented on Aug 29, 2025

    @argush3
    ContributorAuthor

    Ran notebook in Prod and applied datafix

    data fix notes + results

    image.png

    image.png

    image.png

    image.png

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

Metadata

Metadata

Assignees

Labels

Entities - Data Migration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions