bcgov / business-schemas

Manages the JSONSchemas for the BCRegistry Legal Filings.
Apache License 2.0
4 stars 35 forks source link

Backend support for admin freeze filing #118

Closed ritvick closed 1 year ago

ritvick commented 1 year ago

Issue #: /bcgov/entity/issues/13480

Description of changes: Backend support for admin freeze filing

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-schemas license (Apache 2.0).

lmallika86 commented 1 year ago

In general, I am not sure whether this is the right approach. Is there any other filing that can put the business in a suspended state? If yes, Is admin freeze a type of those filings?

ritvick commented 1 year ago

ot sure whether this is the right approach. Is there any other filing that can put the business in a suspended state? If yes, Is admin freeze a type of those filings?

Freeze and unfree is to prevent business being editable as per ticket: https://app.zenhub.com/workspaces/relationships-team-space-61435c47e483c4000f08e9f6/issues/gh/bcgov/entity/6231

We initially thought of doing this as patch call for that business and set the adminFreeze flag in db as true. But per the architecture of legal-api, we came to an agreement that this will be implemented as a filing, so that it can be captured in the ledger. Ref PR: https://github.com/bcgov/lear/pull/1851/files