Skip to content

Investigate: Handling custodialOffice from Put Back On processor #32778

Done

Description

@loneil

In src/business_filer/filing_processors/put_back_on.py there is a lookup and removal of Custodial Office.

Since those do not apply the PBO doesn't need to handle these (TBD)


Edit:
After looking into a bit some migration/previous-data questions come up that need answering first in terms of business requirement:

  1. If a dissolved company is tombstone migrated in from Colin (or has already been) then it will insert into Lear a custodianOffice row. Then if the company is Put Back On it would remove that Custodial Office (delete row). If we take that away then PBOing a migrated corp would leave the Custodial Office.
    The current PBO processor removes that custodialOffice row from offices, should that just be left alone then?

Note in a Restoration it implicitly removes any Custodial Office since it deletes offices and only re-adds the known ones from the filing. So there's a minor discrepancy in the 2 filings processors but right now they both would remove a hanging Custodial Office (just the PBO is explicitly referencing it)

Activity

  1. added
    Entities Team
    on Mar 10, 2026
  2. added theissue type on Mar 10, 2026
  3. removed theissue type on Mar 10, 2026
  4. changed the title [-]Remove handling custodialOffice from Put Back On processor[/-] [+]Investigate: Handling custodialOffice from Put Back On and Restoration processor[/+] on May 15, 2026
  5. changed the title [-]Investigate: Handling custodialOffice from Put Back On and Restoration processor[/-] [+]Investigate: Handling custodialOffice from Put Back On processor[/+] on May 15, 2026
  6. self-assigned this
    on Nov 11, 2026
  7. mruff-aeq commented on Nov 12, 2026

    @mruff-aeq
    Collaborator

    Checked prod, there are ~7k custodialOffice rows and basically all of them came from LEAR dissolutions before #3940 (mostly SP/GP, ~147 corps). None came from tombstone migration. It's best to keep the removal in PBO so an active business isn't left with a stale custodial office. Restoration already clears them, so this keeps both filings consistent.

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

Metadata

Metadata

Assignees

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions