Skip to content

Conversation

@hfekete
Copy link
Collaborator

@hfekete hfekete commented Sep 8, 2025

Issue #:30071 /bcgov/entity#30071

Description of changes:

  • add warning to bc summary about potential missing details (history)
  • add officer part to the bc summary (behind FF)
  • update flags.py with changes from Argus
  • generalizing some date methods to support dev on windows
  • updating pyproject.toml so that it can be installed on windows (missing binaries for windows installers from some package versions)* reverted

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

Comment on lines +79 to +87
if status_code == HTTPStatus.OK:
return Response(
pdf_content,
mimetype='application/pdf',
headers={
'Content-Type': 'application/pdf',
}
)
return pdf_content, status_code
Copy link
Collaborator

Choose a reason for hiding this comment

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

we'll want to make sure these additions don't break the FE. Did the previous code not return the mime type of application/pdf? was that the issue you were trying to fix here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

as per our conversation, let's roll this in and test if FE works properly as soon as it gets into dev

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, previous code was returning text/html as mime type so it was messing up the tools like postman etc ... Will verify all is good when its deployed in dev

@argush3
Copy link
Collaborator

argush3 commented Sep 8, 2025

can we add the new FF to flags.json?

# if flag is not enabled return from the function
return

parties_json = get_parties(self._business.identifier).json['parties']
Copy link
Collaborator

Choose a reason for hiding this comment

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

not really ideal that we are calling the flask route function directly but maybe something we look at refactoring after this initial PR makes it in. I would like get things in so I can start testing out the LD targetting.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fair enough, I just reused the code from the code above (line 328), its been called in the same way. I agree its good candidate for refactor and to move most of the logic to the service.

Copy link
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Looks good to me, but can you add some tests please? I think reports have quite a few existing ones you can add to

@hfekete
Copy link
Collaborator Author

hfekete commented Sep 9, 2025

Looks good to me, but can you add some tests please? I think reports have quite a few existing ones you can add to

Added tests, was not able to extend existing ones, but added a new ones testing the methods I have added.

@hfekete hfekete merged commit d0c74dd into bcgov:main Sep 11, 2025
3 of 4 checks passed
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.

4 participants