Return tags in the order of their orderWeight#37471
Conversation
|
@alitoshmatov Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
3cff1e7 to
c3b3147
Compare
|
|
||
| /** Index by which the tag appears in the hierarchy of tags */ | ||
| orderWeight: number; |
There was a problem hiding this comment.
NAB: I'm confused why this looks like a change if #37468 was merged 🤯
There was a problem hiding this comment.
Oh, I was branching off that first branch. If I pull I believe it will go away one sec.
orderWeightorderWeight
|
This is no longer on HOLD! |
Reviewer Checklist
Screenshots/VideosiOS: Native |
|
@arosiclair Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
All yours @aldo-expensify |
|
@yuwenmemon you got some conflicts |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.4.48-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|






@aldo-expensify please review
HOLD ON https://github.com/Expensify/Auth/pull/10053Details
Returns tags in order of their
orderWeightby sorting tags on that property before returning them in the form of an array of values.Fixed Issues
$ #37054
Tests/QA
On a collect policy that has a workspace chat or is otherwise connected to NewDot, upload a list of multi level tags:
uploads_1618929581886-Independent+with+GL+codes+format+-+Sheet1.csv
Rearrange the tag lists in the policy editor, so that they are not in alphabetical order:

Open up NewDot, and create a request on that policy
Make sure that the tags show up in the order you had specified in the policy editor before:

Finish creating the request, setting values for all the tags. Make sure that when you open the expense, you see the tag levels in that same order:

PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
MacOS: Desktop