-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-05-05] [$1000] Workspace list sorting order breaks if the name starts with lower case alphabet #16925
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
1 similar comment
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
I think this is more accurately a feature. Going to post in the linked thread. |
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
Based on the discussion in Slack, I'm going to add the |
Job added to Upwork: https://www.upwork.com/jobs/~01230caf1a05f03e9c |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace list sorting order breaks if the name starts with lower case alphabet What is the root cause of that problem?We are sorting workspace by the original name App/src/pages/workspace/WorkspacesListPage.js Line 134 in 56c27de
What changes do you think we should make in order to solve the problem?We should change the workspace's name to lowercase before sorting like this
Optional: For consistency, we also should update the same in here: App/src/pages/settings/InitialSettingsPage.js Line 154 in 56c27de
What alternative solutions did you explore? (Optional)NA Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace list sorting order breaks if the name starts with lower case alphabet chars. What is the root cause of that problem?Workspace render via this code block App/src/pages/workspace/WorkspacesListPage.js Lines 191 to 193 in aa1e2ed
We can see at line 192 there is not any sorting done on workspace list. This is the root cause of the problem. What changes do you think we should make in order to solve the problem?We have to sort workspace by title as shown below. <ScrollView style={styles.flex1}>
{_.map(_.sortBy(workspaces, value => value.title.toLowerCase()), (item, index) => this.getMenuItem(item, index))}
</ScrollView> It will solve problem i.e. Sort workspace by title no matter capital or small letter in title. As shown in results. What alternative solutions did you explore? (Optional)None. ResultsWorkspace.mov |
Triggered auto assignment to @madmax330 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspaces list sorting order incorrectly which places the workspaces with a small first letter at the bottom What is the root cause of that problem?Currently, the sort which is applied to the workspaces list is case-sensitive which causes this issue. App/src/pages/workspace/WorkspacesListPage.js Line 134 in 313c575
What changes do you think we should make in order to solve the problem?We should apply lowerCase( App/src/pages/workspace/WorkspacesListPage.js Line 134 in 313c575
|
@JmillsExpensify @madmax330 @eVoloshchak this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@eVoloshchak have you had a chance to look at the proposals? I think @dukenv0307's proposal is good, thoughts? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @dukenv0307 You have been assigned to this job by @madmax330! |
@eVoloshchak @madmax330 The PR is ready for review |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.7-3 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 2023-05-05. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Alright, with the PR on production, let's summarize where we're at for payments. This PR is eligible for a 50% bonus, so that means we have the following.
The Upwork link is here: https://www.upwork.com/jobs/~01230caf1a05f03e9c. @dukenv0307 would you mind applying or sharing your Upwork profile? |
Then @eVoloshchak let's get the BZ checklist kicked off ahead of the regression period passing. Thank you all! |
@JmillsExpensify I've applied, thanks! |
|
Thanks for all those. I agree with that and that a regression test doesn't seem necessary. |
Then all contributors have been hired at this point, so we're down to waiting for the regression period to end in a couple of days. I'll pay out the relevant bonuses when issuing final payment. Stay tuned until then! |
Still waiting on payment |
All contributors paid out and no regression test required. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should either auto capitalize first letter or should sort alphabetically considering both workspaces with capital first letter and workspaces with small first letter
Actual Result:
Sorting breaks if workspace list has both names with capital first letter and small first letter
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.94-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
sorting.break.issue.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680598452709389
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: