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

24153 fixes in colin sync #3057

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

vysakh-menon-aot
Copy link
Collaborator

@vysakh-menon-aot vysakh-menon-aot commented Nov 4, 2024

Issue #: /bcgov/entity#24153

Description of changes:

  • Fixed ORA-01830: date format picture ends before converting entire input string (COD filing_date)
  • Fixed 'NoneType' object has no attribute 'upper'
  • Handled optional fields
  • update-colin-filings changed logic of fetching filings with offset instead of paginate (to avoid calculation)
  • update_legal_filings removed sync of CORPS from colin -> lear (this is not accepted anymore). Still have logic for COOP's, seems like it may be in use. Not in a position to work on COOP's

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).

@vysakh-menon-aot vysakh-menon-aot self-assigned this Nov 4, 2024
Comment on lines -178 to -199
# return the completed filing data
completed_filing = Filing()
# get business info again - could have changed since filings were applied
completed_filing.business = Business.find_by_identifier(identifier, con=con)
completed_filing.body = {}
for filing_info in filings_added:
sub_filing = Filing()
sub_filing.business = completed_filing.business
sub_filing.filing_type = filing_info['filing_type']
sub_filing.filing_sub_type = filing_info['filing_sub_type']
sub_filing.event_id = filing_info['event_id']
sub_filing = Filing.get_filing(filing=sub_filing, con=con)

if completed_filing.header:
completed_filing.header['colinIds'].append(sub_filing.event_id)
# annual report is the only filing with sub filings underneath it
if sub_filing.filing_type == 'annualReport':
completed_filing.header['name'] = 'annualReport'
else:
completed_filing.header = sub_filing.header
completed_filing.body.update({sub_filing.filing_type: sub_filing.body})

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this result is not needed

Copy link

sonarcloud bot commented Nov 4, 2024

@vysakh-menon-aot vysakh-menon-aot merged commit f038754 into bcgov:main Nov 4, 2024
17 of 19 checks passed
@vysakh-menon-aot vysakh-menon-aot deleted the feature/24153 branch November 4, 2024 20:33
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.

2 participants