Skip to content

Business Filings UI: refactor roles to permissions #27186

Closed

Description

@severinbeauvais
  • change "isStaff" and "isSbcStaff" to isAuthorized(xxx) where xxx is a permission
  • remove or replace "isPremium" as needed
  • add list of permissions
  • implement isAuthorized
  • update unit tests

See what was done for Create UI in this PR: bcgov/business-create-ui#783

Activity

  1. added
    Entities Team
    on Apr 14, 2025
  2. changed the title [-]Business Filings UI: add role mixin[/-] [+]Business Filings UI: refactor roles to permissions[/+] on May 5, 2025
  3. self-assigned this
    on May 8, 2025
  4. TVWerdal commented on Jun 12, 2025

    @TVWerdal
    Collaborator

    Included in this ticket is the initial work to deprecate and remove dashboard related code.

  5. TVWerdal commented on Jun 13, 2025

    @TVWerdal
    Collaborator

    Testing notes:

    PERMISSIONS USED

    1. Permissions: Staff (IDIR), Regular user (bcreg0020)

    FILINGS, TESTS and ACCEPTANCE CRITERIA

    1. Filings to test:
      1. Annual Report
        • All users should be able to file an Annual Report
          • TEST: Conduct annual report as Public User, Conduct annual report as Staff
          • ACCEPTANCE CRITERIA:
            • complete annual report successfully as public user.
            • complete annual report successfully as Staff
      2. Admin Dissolution
        • Staff only filing (pop-up on dashboard)-
          • TEST: Create numbered company, Disolve as Staff
          • ACCEPTANCE CRITERIA:
            • Complete a dissolution successfully.
      3. AGM Extension
        • Public Users, Staff should be able to file an AGM Extension
          • TEST: Conduct AGM Ext as Staff, Conduct AGM Ext as public user
          • ACCEPTANCE CRITERIA:
            • Complete AGM EXT successfully as staff
            • Complete AGM EXT successfully as public user
        • The 'certified by' name should be editable for staff.
        • The 'certified by' name should not be editable by Public Users.
          • TEST 2: Attempt to edit the 'certified by' text.
          • ACCEPTANCE CRITERIA 2:
            • 'Certified by' can be edited as staff.
            • 'Certified by' cannot be edited by public user.
        • Certified block should not be prepopulated with user name for Staff
        • Certified block should be prepoulated with user name for public user
          • TEST 3: Initiate an AGM Extension filing
          • ACCEPTANCE CRITERIA 3:
            • Certified Block is not prepopulated for Staff
            • Certified Block is prepopulated for public user
      4. AGM Location Change
        • Public Users, Staff should be able to file an AGM Location Change
          • TEST: Conduct AGM Location change as Staff, Conduct AGM location change as public user
          • ACCEPTANCE CRITERIA:
            • Complete AGM location change successfully as staff
            • Complete AGM location change successfully as public user
        • The 'certified by' name should be editable for staff.
        • The 'certified by' name should not be editable by Public Users.
          • TEST 2: Attempt to edit the 'certified by' text.
          • ACCEPTANCE CRITERIA 2:
            • 'Certified by' can be edited as staff.
            • 'Certified by' cannot be edited by public user.
        • Certified block should not be prepopulated with user name for Staff
        • Certified block should be prepoulated with user name for public user
          • TEST 3: Initiate an AGM Extension filing
          • ACCEPTANCE CRITERIA 3:
            • Certified Block is not prepopulated for Staff
            • Certified Block is prepopulated for public user
      5. Address Change
        • All users should be able to do a Address Change (Stand alone and during an Annual Report as long as AGMDate does not predate)
          • TEST: When doing an Annual Report, change address as Staff. When doing an Annual Report, change an address as Public User.
          • ACCEPTANCE CRITERIA:
            • Complete address change successfully as public user.
            • Complete address change successfully as staff.
          • TEST 2: Complete stand alone address change as Staff. Complete stand alone address change as Public user
          • ACCEPTANCE CRITERIA 2:
            • Address changes are successful as public user.
            • Address changes are successful as staff.
        • Standalone address change filings show staff payment dialog
          • TEST 3: Complete standalone address change filing
          • ACCEPTANCE CRITERIA 3:
            • See staff payment dialog as staff
            • Do not see staff payment dialog as public user
      6. Amalgamation (Appears to be mostly done in CREATE UI, not sure exactly what part filings plays, but testing anyways)
        • Public Users and Staff should be able to conduct amalgamation filings
          • TEST: Conduct an amalgamation filing
          • ACCEPTANCE CRITERIA:
            • Amalgamation successfully completed as Staff
            • Amalgamation successfully completed as public user
      7. Amalgamation Out
        • Staff only filing
          • TEST: Conduct an amalgamation out filing
          • ACCEPTANCE CRITERIA:
            • Amalgamation Out successfully completed as Staff
            • Amalgamation Out not allowed by regular user.
        • The 'completing party' name should be editable for staff.
          • TEST 2: Initiate an amalgamation out, try to edit completing party field.
          • ACCEPTANCE CRITERIA 2:
            • Completing party field is editable by Staff
      8. Director Change
        • All users should be able to do a Director Change (Stand alone and during an Annual Report as long as AGMDate does not predate)
          • TEST: When doing an Annual Report, change Director as Staff. When doing an Annual Report, change Director as Public User.
          • ACCEPTANCE CRITERIA:
            • Complete director change successfully as public user.
            • Complete director change successfully as staff.
          • TEST 2: Complete stand alone change of director as Staff. Complete stand alone change of director as Public user
          • ACCEPTANCE CRITERIA 2:
            • COD filings are successful for public user.
            • COD filings are successful for staff.
        • Standalone director filings show staff payment dialog
          • TEST 3: Complete standalone change of director filing
          • ACCEPTANCE CRITERIA 3:
            • See staff payment dialog as staff
            • Do not see staff payment dialog as public user
      9. Consent for Amal Out
        • Public Users and Staff should be able to complete a consent for amalgamation out filing.
          • TEST: Complete a consent for amalgamation out filing
          • ACCEPTANCE CRITERIA:
            • Consent for amalgamation out filing successful as Staff
            • Consent for amalgamation out filing successful as Public User
        • The 'certified by' name should be editable for staff.
        • The 'certified by' name should not be editable by Public Users.
          • TEST 2: Attempt to edit the 'certified by' text.
          • ACCEPTANCE CRITERIA 2:
            • 'Certified by' can be edited as staff.
            • 'Certified by' cannot be edited by public user.
        • Certified block should not be prepopulated with user name for Staff
        • Certified block should be prepoulated with user name for public user
          • TEST 3: Initiate an consent for amalgamation out filing
          • ACCEPTANCE CRITERIA 3:
            • Certified Block is not prepopulated for Staff
            • Certified Block is prepopulated for public user
        • The show court order/POA section should be accessible to Staff
        • The show court order/POA section should not be accessible for public users
          • TEST 4: Initiate a consent for amalgamation out filing
          • ACCEPTANCE CRITERIA 4:
            • Court order/POA section is available for staff
            • Court order/POA section not available for public user
        • The staff payment dialog should show for Staff
          • TEST 5: Complete a consent to amalgamate out filing
          • ACCEPTANCE CRITERIA 5:
            • payment dialog shows for Staff
            • payment dialog does not show for public user
      10. Consent for Cont Out
        • Public Users and Staff should be able to complete a consent for continuation out filing.
          • TEST: Complete a consent for continuation out filing
          • ACCEPTANCE CRITERIA:
            • Consent for continuation out filing successful as Staff
            • Consent for continuation out filing successful as Public User
        • The 'certified by' name should be editable for staff.
        • The 'certified by' name should not be editable by Public Users.
          • TEST 2: Attempt to edit the 'certified by' text.
          • ACCEPTANCE CRITERIA 2:
            • 'Certified by' can be edited as staff.
            • 'Certified by' cannot be edited by public user.
        • Certified block should not be prepopulated with user name for Staff
        • Certified block should be prepoulated with user name for public user
          • TEST 3: Initiate an consent for continuation out filing
          • ACCEPTANCE CRITERIA 3:
            • Certified Block is not prepopulated for Staff
            • Certified Block is prepopulated for public user
        • The show court order/POA section should be accessible to Staff
        • The show court order/POA section should not be accessible for public users
          • TEST 4: Initiate a consent for continuation out filing
          • ACCEPTANCE CRITERIA 4:
            • Court order/POA section is available for staff
            • Court order/POA section not available for public user
        • The staff payment dialog should show for Staff
          • TEST 5: Complete a consent to continuation out filing
          • ACCEPTANCE CRITERIA 5:
            • payment dialog shows for Staff
            • payment dialog does not show for public user
      11. Continuation Out
        • Staff only filing
          • TEST: Conduct an continuation out filing
          • ACCEPTANCE CRITERIA:
            • continuation Out successfully completed as Staff
            • continuation Out not allowed by regular user.
        • The 'completing party' name should be editable for staff.
          • TEST 2: Initiate an continuation out, try to edit completing party field.
          • ACCEPTANCE CRITERIA 2:
            • Completing party field is editable by Staff
      12. Court Order
        • A REGI staff only filing
          • TEST: Add a court order to a business (dialog)
          • ACCEPTANCE CRITERIA:
            • Court Order can be completed by Staff
            • Court ordder cannot be completed by public user
      13. Court Order POA
        • A staff only filing
          • TEST: Access a court order (POA)
          • ACCEPTANCE CRITERIA:
            • Court Order (POA) completed by Staff
            • Court Order (POA) cannot be accessed by public user
      14. Digital Credentials
        • A Public User only filing
          • TEST: Get digital credentials for a sole prop
          • ACCEPTANCE CRITERIA:
            • Public User can access and add digital credentials successfully
            • Staff cannot access or add digital credentials.
      15. Notice of Withdrawl - /does not seem to take place in Filings UI directly.
        • Staff only filing
          • TEST: Complete a Notice of Withdrawl
          • ACCEPTANCE CRITERIA:
            • Successfully complete a notice of Withdrawl as staff
            • Public user cannot initiate or complete a notice of withdrawl.
      16. Voluntary Dissolution
        • All users should be able to complete this filing (pop-up on dashboard)
          • TEST: Create numbered company, complete a voluntary dissolution
          • ACCEPTANCE CRITERIA:
            • Complete voluntary dissolution as Public user
            • Complete voluntary dissolution as Staff
      17. Hide contact info on dialogues for staff (payment, business auth, delete error, fetch error, load correction, nae request error, not eligible extension, resume error, save error, technical error
        • Staff should not see contact info in various dialogues
        • Public Users should see contact info in various dialogues.
          • TEST: Double check any dialogues that pop up during testing other pieces.
          • ACCEPTANCE CRITERIA:
            • Contact info shows for Public Users
            • Contact info does not show for staff.
      18. Not In Good Standing Override
        • Staff should be able to conduct some filings on a business that is not in good standing.
        • Public users should not be able to conduct some filings on a business that is not in good standing.
          • TEST: Attempt to conduct a filing on business that is not in good standing.
          • ACCEPTANCE CRITERIA:
            • Staff is able to make filings while business is not in good Standing
            • Public user is not able to make filings if business not in good standing.
        • Staff should not see Not In Good Standing dialog when attempting changes to business that is not in good standing.
        • Public users should receive not in good standing dialog when attempting changes to business that is not in good standing.
          • TEST 2: Initiate a change business info action on a business that is not in good standing.
          • ACCEPTANCE CRITERIA 2:
            • Staff user should not see Not in Good Standing dialog
            • Public user should receive Not in good standing dialog
        • Staff should be able to perform dissolve action on a business that is not in good standing.
        • Public users should not be able to perform dissolve action on a business that is not in good standing.
          • TEST: Attempt to perform dissolve action on business that is not in good standing.
          • ACCEPTANCE CRITERIA:
            • Staff is able to perform dissolve action while business is not in good Standing
            • Public user is not able to perform dissolve action if business not in good standing.
  6. severinbeauvais commented on Jun 16, 2025

    @severinbeauvais
    CollaboratorAuthor

    I increased the estimate to 8 as it was decided to do a little extra work in this ticket, which turned out to be a lot of extra work.

  7. severinbeauvais commented on Jun 16, 2025

    @severinbeauvais
    CollaboratorAuthor

    ^^ Amazing testing notes! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions