-
Notifications
You must be signed in to change notification settings - Fork 74
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
22956 - Verify update legal filings job to use new db versioning #3105
22956 - Verify update legal filings job to use new db versioning #3105
Conversation
git+https://github.com/bcgov/lear.git#egg=sql-versioning&subdirectory=python/common/sql-versioning | ||
git+https://github.com/bcgov/business-schemas.git@2.5.12#egg=registry_schemas | ||
git+https://github.com/bcgov/business-schemas.git@2.18.27#egg=registry_schemas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the schema version to the latest (same as legal-api)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM(^-^)
…job-to-use-new-db-versioning
Quality Gate passedIssues Measures |
8e68ecd
into
bcgov:feature-db-versioning
Issue #: /bcgov/entity#22956
Description of changes:
update-legal-filings-job doesn't directly operate in lear db, instead, it's calling legal-api and colin-api endpoints. And there isn't any existing code initialize a db instance in this job. As per discussion I have removed FF for update-legal-filings in multiple flags.json files.
Verification 1 - Running local legal-api and check behaviours
Keep the local lear-db's colin_last_update table remain the same for 3 runs in different scenarios.
In summary, there is no behaviour differences between these 3 scenarios:
Verification 2 - Running local legal-api and verify the endpoints the job used
{{url}}/api/v2/businesses/internal/filings/colin_id
105911836
{{url}}/api/v2/businesses/:identifier
{{url}}/api/v2/businesses/internal/filings/colin_id/:event_id
As this event/filing is not yet updated, it's not found in lear-db
{{url}}/api/v2/businesses/:identifier/filings
After fixing the data-type for
goodStanding
andadminFreeze
{{url}}/api/v2/businesses/internal/filings/colin_id/:new_max_event_id
{{url}}/api/v2/businesses/internal/filings/colin_id/:event_id
And since it's updated to lear-db now, we can find it
Other findings
Found this job is already not really working properly, and might be like this for a while. I left some details here: bcgov/entity#22956 (comment)
May need to cut another ticket to address this issue.
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).