Skip to content

Category rules - "Approver" is enabled when "Add approvals" is still disabled in Workflows #48977

@IuliiaHerets

Description

@IuliiaHerets

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.32-0
Reproducible in staging?: Y
Reproducible in production?: N/A
Issue was found when executing this PR: #48171
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Rules feature is enabled.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Categories.
  3. Click on any category.
  4. Note that the message under Approver says that "add approvals to unlock this feature".
  5. Go to Rules.
  6. Note that the same message is also said for "Prevent self-approvals".
  7. Go to workspace settings.
  8. Enable workflows, but do not enable Add approvals in Workflows page.
  9. Go back to Rules.
  10. Note that "Prevent self-approvals" is disabled because Add approvals feature is not enabled so the feature remains locked.
  11. Go back to the same category in Step 3.
  12. Note that Approver feature is unlocked even though Add approvals feature is not enabled.

Expected Result:

In Step 12, Approver feature should remain locked until Add approvals feature is enabled on Workflows page.

Actual Result:

In Step 12, Approver feature is unlocked when Add approvals feature is disabled on Workflows page, which is inconsistent with the behavior with "Prevent self-approvals" feature in Rules in Step 10.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • [x ] MacOS: Desktop

Screenshots/Videos

Bug6599647_1726041745900.20240911_155552.mp4

View all open jobs on GitHub

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions