Skip to content

Conversation

@kialj876
Copy link
Collaborator

@kialj876 kialj876 commented Oct 6, 2025

Issue #: /bcgov/entity#30861

Description of changes:

  • business account settings table that will replace 'business email' in auth and include account preferences for the business
  • tested locally with postman, looking for feedback before adding in unit tests
  • will add a delete and update the common model as well once the implementation is finalized

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

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
'businessIdentifier': self.business.identifier,
'email': self.email,
'phone': self.phone,
'phoneExtension': self.phone_extension,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just kept this flat, but was also thinking of putting 'email', 'phone', 'phoneExtension' inside a 'contact' field?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this is good, don't need contact field

@jwt.requires_auth
def update_business_account_settings(account_id: str, identifier: str):
"""Update the settings information for the business and account combination."""
# TODO: decide if this is enough? Do we need to verify they are allowed to update the account?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note - I think its okay not to have anything extra since we check that they have edit permissions on the business, but lmk what you think

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to include this into non-filing permissions, since this is a new permission you could create a separate ticket for this https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/services/permissions.py#L61. This permission is used in UI as well and i believe its feature flagged and disabled in PROD

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

created a new ticket for this: bcgov/entity#30992

@kialj876 kialj876 requested a review from thorwolpert October 6, 2025 15:09
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@kialj876 kialj876 marked this pull request as ready for review October 8, 2025 14:31
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@kialj876 kialj876 merged commit ab80524 into bcgov:main Oct 9, 2025
9 of 10 checks passed
@severinbeauvais severinbeauvais changed the title API - business account settings 30861 API - business account settings Nov 3, 2025
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