Skip to content

[HOLD for payment 2024-10-11] [$250] Invoicing verify that the user has the feature enabled on the page #49842

Closed

Description

@rezkiy37

Part of the Invoicing payments project

Main issue: https://github.com/Expensify/Expensify/issues/382977
Project: [#whatsnext] #billpay (view)

Feature Description

To wrap WorkspacePageWithSections with AccessOrNotFoundWrapper to avoid giving access of the Invoice page to the user where areInvoicesEnabled is false.

Manual Test Steps

Automated Tests

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021839691254986841972
  • Upwork Job ID: 1839691254986841972
  • Last Price Increase: 2024-09-27
Issue OwnerCurrent Issue Owner: @twisterdotcom

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 27, 2024
  2. melvin-bot commented on Sep 27, 2024

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. rezkiy37 commented on Sep 27, 2024

    @rezkiy37
    ContributorAuthor

    Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 27, 2024
  5. changed the title [-]Invoicing verify that the user has the feature enabled on the page[/-] [+][$250] Invoicing verify that the user has the feature enabled on the page[/+] on Sep 27, 2024
  6. melvin-bot commented on Sep 27, 2024

    @melvin-bot
  7. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 27, 2024
  8. melvin-bot commented on Sep 27, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah (External)

  9. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 27, 2024
  10. Pujan92 commented on Sep 27, 2024

    @Pujan92
    Contributor

    Not sure whether I need to review this PR or not as it has been noticed here while reviewing other PR.

  11. ChavdaSachin commented on Sep 28, 2024

    @ChavdaSachin
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    To wrap WorkspacePageWithSections with AccessOrNotFoundWrapper to avoid giving access of the Invoice page to the user where areInvoicesEnabled is false.

    What is the root cause of that problem?

    What changes do you think we should make in order to solve the problem?

            <AccessOrNotFoundWrapper
                accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN, CONST.POLICY.ACCESS_VARIANTS.PAID]}
                policyID={route.params.policyID}
                featureName={CONST.POLICY.MORE_FEATURES.ARE_INVOICES_ENABLED}
            >
                <WorkspacePageWithSections
                    ...
                </WorkspacePageWithSections>
            </AccessOrNotFoundWrapper>

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  12. 3 remaining items

  13. melvin-bot commented on Oct 1, 2024

    @melvin-bot

    Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Oct 4, 2024
  15. changed the title [-][$250] Invoicing verify that the user has the feature enabled on the page[/-] [+][HOLD for payment 2024-10-11] [$250] Invoicing verify that the user has the feature enabled on the page[/+] on Oct 4, 2024
  16. melvin-bot commented on Oct 4, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Oct 4, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2024-10-11. 🎊

    For reference, here are some details about the assignees on this issue:

  18. melvin-bot commented on Oct 4, 2024

    @melvin-bot

    BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

    • [@rayane-djouah] The PR that introduced the bug has been identified. Link to the PR:
    • [@rayane-djouah] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
    • [@rayane-djouah] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
    • [@rayane-djouah] Determine if we should create a regression test for this bug.
    • [@rayane-djouah] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
    • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  19. rayane-d commented on Oct 6, 2024

    @rayane-d
    Contributor

    BugZero Checklist

    • The PR that introduced the bug has been identified. Link to the PR: Invoicing bank accounts section #47218
    • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: The author and reviewers are aware
    • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
    • Determine if we should create a regression test for this bug. Yes
    • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

    Regression Test Proposal

    1. Create an account
    2. Create a workspace
    3. Go to workspace settings > more features
    4. Disable the invoices feature.
    5. Verify that you cannot access the invoices page.
    6. Enable the invoices feature.
    7. Verify that you can access the invoices page.

    Do we agree 👍 or 👎

  20. twisterdotcom commented on Oct 11, 2024

    @twisterdotcom
    Contributor

    Payment Summary:

  21. rayane-d commented on Oct 11, 2024

    @rayane-d
    Contributor

    @twisterdotcom - Offer accepted

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions