You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[OldDot Rules Migration] [Polish] [$250] Editing Approver offline does not gray out category but grays out Approver for other categories #49009
Note that Approver field is grayed out when it is not edited.
Expected Result:
In Step 8. the edited category should be grayed out after modifying Approver field offline.
In Step 10, the Approver field for other categories should not gray out when the categories are untouched.
Actual Result:
In Step 8. the edited category is not grayed out after modifying Approver field offline.
In Step 10, the Approver field for other categories is gray out when the categories are untouched.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Edited by proposal-police: This proposal was edited at 2024-09-11 18:47:38 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 8. the edited category is not grayed out after modifying Approver field offline.
In Step 10, the Approver field for other categories is gray out when the categories are untouched.
What is the root cause of that problem?
We have 2 bugs in here
The edited category is not grayed out after modifying Approver field offline.
In here we show grayed out when we have pending action of policy category and we not update it when set policy category approver
changed the title [-][$250] Editing Approver offline does not gray out category but grays out Approver for other categories[/-][+][OldDot Rules Migration] [Polish] [$250] Editing Approver offline does not gray out category but grays out Approver for other categories[/+]on Sep 11, 2024
Activity
melvin-bot commentedon Sep 11, 2024
Triggered auto assignment to @luacmartins (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Sep 11, 2024
Triggered auto assignment to @dylanexpensify (
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.github-actions commentedon Sep 11, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
luacmartins commentedon Sep 11, 2024
Might be related to #48171. cc @WojtekBoman @dukenv0307 @marcaaron
nkdengineer commentedon Sep 11, 2024
Edited by proposal-police: This proposal was edited at 2024-09-11 18:47:38 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 8. the edited category is not grayed out after modifying Approver field offline.
In Step 10, the Approver field for other categories is gray out when the categories are untouched.
What is the root cause of that problem?
We have 2 bugs in here
In here we show grayed out when we have pending action of policy category and we not update it when set policy category approver
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Line 279 in 1e8e4f4
In here we show grayed out when we have pending fields
approvalRulesand use this variable for all category when set policy category approverApp/src/pages/workspace/categories/CategorySettingsPage.tsx
Line 260 in 1e8e4f4
What changes do you think we should make in order to solve the problem?
We should update pending action of policy category in
optimisticDatawhen we set policy category approver hereAnd we can do the same with all fields in category setting.
We should update the format
pendingFieldsofapprovalRuleshere likedo the same with
failureDateandsuccessDataAnd update
pendingActionhere to show grayed out with each value of category nameWhat alternative solutions did you explore? (Optional)
luacmartins commentedon Sep 11, 2024
@nkdengineer is this a regression from a recent PR?
luacmartins commentedon Sep 11, 2024
I'm gonna demote this from being a blocker since it's a minor issue.
12 remaining items
[-][$250] Editing Approver offline does not gray out category but grays out Approver for other categories[/-][+][OldDot Rules Migration] [Polish] [$250] Editing Approver offline does not gray out category but grays out Approver for other categories[/+]WojtekBoman commentedon Sep 12, 2024
Hi! I can fix that as I'm the author of the PR that caused this regression
dylanexpensify commentedon Sep 18, 2024
Nice! Merged
dylanexpensify commentedon Oct 7, 2024
Payment summary:
Contributor+: @eh2077 $250 via NewDot
Please apply/request!
eh2077 commentedon Oct 10, 2024
Requested in NewDot
JmillsExpensify commentedon Oct 11, 2024
$250 approved for @eh2077