Repository navigation
[Rules Engine Release 1] Use the new SetRule and DeleteRule commands - #102106
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…-setrule Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@Krishna2323 based on the title of this PR, whats the difference between this and #100389? The issue linked here was created as reference for the already existing PR |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
Sorry, my mistake, I confused myself with the sub-issues. This PR originally had the To clarify the split: #100389 is the read side (#102273, |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
Ah nice, thanks! |
…ngine-setrule # Conflicts: # src/libs/actions/Policy/Rules.ts # tests/unit/WorkflowUtilsTest.ts
|
The holding PR is merged. We can resume work here |
JS00001
left a comment
There was a problem hiding this comment.
The code looks good, but I think that we want SetRule to be broader/not as scoped to merchant rules. This way, we can easily use it in the future for other rules
I am not sure about this test step. |
|
Tests well. |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
One leftover |
JS00001
left a comment
There was a problem hiding this comment.
Nice! Let's hold on the minimum version PR getting to production. Its merged, but will take 2 days to deploy
|
|
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.6-0 🚀
|
|
No help site update needed. This PR switches merchant rule saves and deletes to the new |
|
Hi @Krishna2323. Could you please clarify where exactly the Rules count should be displayed in the Home or Workspaces list? Is the Duplicate/Copy Workspace flow an acceptable place to verify it?
|
|
Deploy Blocker #103555 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.6-6 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Fixed Issues
$ #102275
$ #100300
PROPOSAL:
Tests
Same as QA steps
Verify that no errors appear in the JS console
Offline tests
hang on a loading spinner.
pending.
QA Steps
Setup: on https://staging.new.expensify.com, use a Control workspace with
Rules, Taxes and Approvals enabled. Create two merchant rules and one approval
workflow.
paste it into a brand new tab and load it. Verify the rule's editor opens.
It may briefly show a loading spinner, but it must never show
"Hmm... it's not here".
few characters in the rule ID. Verify it now does show the not-found page.
page, and verify every approval workflow is still there. Then edit an
approval workflow, refresh, and verify the remaining merchant rules are
still there.
there. Edit it, refresh, verify the edit stuck and no duplicate appeared.
Delete it, refresh, verify it stays deleted.
list, verify the workspace's Rules row shows the correct number of merchant
rules without opening the workspace first.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web_chrome.mp4