-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2024-05-08] [Simplified Collect][CLEAN UP][LOW] Standardize on Workspace wrapper #37898
Comments
Triggered auto assignment to @JmillsExpensify ( |
@JmillsExpensify, @luacmartins Eep! 4 days overdue now. Issues have feelings too... |
Added a weekly here since this is low and in the polish bucket. |
Polish item |
A new wrapper I've consulted it internally, and someone from SWM will take care of this issue. |
Hey, I'm an engineer from SWM, I'll be taking over this issue 👋 |
Nice! Excited for this one! @BrtqKr would you mind sharing the general approach you're thinking of taking before we dive deep into the code? |
@luacmartins the code is literally identical in most of those wrappers, so the idea is to:
|
Sounds good. Could we add
|
hello hello 👋 There are some PRs that add another set of new screens that should be limited to admin users. Depending on when the unified wrapper that is suggested here is ready, we might use that one or create temporary wrappers. I'd appreciate it if you could share the rough ETA for it if you could, @BrtqKr 🙇 |
@hayata-suenaga, we'll be sending a PR with those changes this evening at the latest |
In general, this was unnecessarily increasing complexity, so I ended up treating feature flags as a separate case. Overall, the main problem is the fact that those conditions can happen simultaneously, so we would need to somehow determine which one of them is more important. There might be different cases with a different priority, so I'd just make the feature flag the more important variant since it was able to cover all existing cases and there have been a lot of them. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.68-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 2024-05-08. 🎊 For reference, here are some details about the assignees on this 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:
|
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
@JmillsExpensify, @luacmartins, @BrtqKr Huh... This is 4 days overdue. Who can take care of this? |
It was merged some time ago #40598, not sure why Melvin is still mentioning us. Would you mind closing this issue, or is there anything left to do? |
It seems like we need to payout C+ @ahmedGaber93 for the PR review. |
@JmillsExpensify, @luacmartins, @ahmedGaber93, @BrtqKr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Payment summary: @ahmedGaber93 $500 for pr review and testing. |
Offer sent via Upwork |
Offer paid out, so closing out this issue. |
Problem
Coming from here, we have a few wrappers we use in Workspace pages, i.e.
WorkspacePageWithSections
,AdminPolicyAccessOrNotFoundWrapper
andPaidPolicyAccessOrNotFoundWrapper
. We should standardize on using a single one for all our pages.Those wrappers also break the not-found views.
Going to e.g. https://staging.new.expensify.com/workspace/dssaddssdaads/categories` we see duplicated not found (that's what is the scope of the other issue) and after pressing the back button we see another ones...
Why is this important
DRYs code and makes it more maintainable
Solution
Investigate how to combine them and update all usages.
cc @kosmydel
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: