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

Chore 456 operation representative #2688

Merged
merged 6 commits into from
Jan 16, 2025

Conversation

ayeshmcg
Copy link
Contributor

Card: bcgov/cas-reporting#456
Changes:

  • updated schema for operation representative
  • created model to save operation representation for a report
  • updated API and services
  • Fixed tests

@ayeshmcg ayeshmcg force-pushed the chore-456-operation-representative branch from 20ac6b6 to 1b125c2 Compare January 15, 2025 02:08
@ayeshmcg ayeshmcg force-pushed the chore-456-operation-representative branch from 1b125c2 to da22a12 Compare January 15, 2025 16:43
Copy link
Contributor

@pbastia pbastia left a comment

Choose a reason for hiding this comment

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

Nice work! Just a few things to fix

bc_obps/reporting/schema/report_operation.py Outdated Show resolved Hide resolved
fields = ["id", "representative_name", "selected_for_report"]


class ReportOperationSchemaOut(Schema):
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of creating a whole extra ReportOperationSchemaOut class, we could extend the existing ReportOperationOut and add the report_operation_representatives: List[...] field on it

bc_obps/reporting/tests/utils/report_data_bakers.py Outdated Show resolved Hide resolved
bc_obps/service/report_service.py Outdated Show resolved Hide resolved
bc_obps/service/report_service.py Outdated Show resolved Hide resolved
@ayeshmcg ayeshmcg requested a review from pbastia January 15, 2025 22:16
Copy link
Contributor

@pbastia pbastia left a comment

Choose a reason for hiding this comment

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

One more little thing! Once it's covered, it's good to go, I'll approve it now

bc_obps/service/report_service.py Outdated Show resolved Hide resolved
@ayeshmcg ayeshmcg force-pushed the chore-456-operation-representative branch from c2a5775 to 319edcd Compare January 16, 2025 23:03
@ayeshmcg ayeshmcg merged commit abc0ed9 into develop Jan 16, 2025
42 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.

3 participants