Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24195 updating last_modified with filing completion_date #3154

Conversation

vysakh-menon-aot
Copy link
Collaborator

@vysakh-menon-aot vysakh-menon-aot commented Dec 27, 2024

Issue #: /bcgov/entity#24195

Description of changes:

  • Will create a post deployment script to update existing data in DB

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

@@ -338,6 +338,7 @@ async def process_filing(filing_msg: Dict, flask_app: Flask): # pylint: disable

business_type = business.legal_type if business else filing_submission['business']['legal_type']
filing_submission.set_processed(business_type)
business.last_modified = filing_submission.completion_date
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't there other events (other than filing submissions) that could affect a business' state?

See example issues in spike ticket, bcgov/entity#24950.

@vysakh-menon-aot vysakh-menon-aot merged commit c830473 into bcgov:main Dec 28, 2024
12 checks passed
@vysakh-menon-aot vysakh-menon-aot deleted the feature/24195-update-last-modified branch December 28, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants