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
[HOLD for payment 2024-01-24] CRITICAL: [$750] Default new rooms to your primary workspace #32435
What changes do you think we should make in order to solve the problem?
We should create a useEffect to set the default value for policyID, we can set policy the first workspace in policies or the special workspace that we want to display by default
What alternative solutions did you explore? (Optional)
What alternative solutions did you explore? (Optional)
Currently we don't have the activeWorkspace logic on newDot which is present on oldDot. In this issue, we are going to add a new Onyx key ACTIVE_WORKSPACE_ID which is exactly the use case for this.
After the implementation of the issue mentioned above, we can just access the ACTIVE_WORKSPACE_ID using the withOnyx HOC and initialise the state of the policyID to the passed prop.
Therefore, I think we can hold this issue until the ActiveWorkspace logic is implemented.
changed the title [-]Feature Request: When creating a Room, workspace should default to primary workspace[/-][+]HIGH: Default new rooms to your primary workspace[/+]on Dec 4, 2023
changed the title [-]HIGH: Default new rooms to your primary workspace[/-][+][$500] HIGH: Default new rooms to your primary workspace[/+]on Dec 5, 2023
changed the title [-]CRITICAL: [$750] Default new rooms to your primary workspace[/-][+][HOLD for payment 2024-01-24] CRITICAL: [$750] Default new rooms to your primary workspace[/+]on Jan 17, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.25-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@alitoshmatov] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
[@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon Dec 4, 2023
Triggered auto assignment to @dylanexpensify (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details.dukenv0307 commentedon Dec 4, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
When creating a Room, workspace should default to primary workspace
What is the root cause of that problem?
This is a feature request
We set a default value for
policyIDasnullwhich makes the workspace field is blankApp/src/pages/workspace/WorkspaceNewRoomPage.js
Line 103 in 93121be
What changes do you think we should make in order to solve the problem?
We should create a
useEffectto set the default value forpolicyID, we can setpolicythe first workspace inpoliciesor the special workspace that we want to display by defaultWhat alternative solutions did you explore? (Optional)
esh-g commentedon Dec 4, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
When creating a Room, workspace should default to primary workspace
What is the root cause of that problem?
Feature request. N/A
What changes do you think we should make in order to solve the problem?
We should do the following changes:
value={policyID}attribute to it here:App/src/pages/workspace/WorkspaceNewRoomPage.js
Lines 272 to 277 in 6dbaa4a
nullvalue from causing an error here by using optional chaining(value?.length):App/src/components/ValuePicker/index.js
Line 65 in 6dbaa4a
useEffecttoWorkspaceNewRoomPageto set thepolicyIDto the first workspace:What alternative solutions did you explore? (Optional)
Currently we don't have the
activeWorkspacelogic onnewDotwhich is present onoldDot. In this issue, we are going to add a new Onyx keyACTIVE_WORKSPACE_IDwhich is exactly the use case for this.After the implementation of the issue mentioned above, we can just access the
ACTIVE_WORKSPACE_IDusing thewithOnyxHOC and initialise the state of thepolicyIDto the passed prop.Therefore, I think we can hold this issue until the
ActiveWorkspacelogic is implemented.[-]Feature Request: When creating a Room, workspace should default to primary workspace[/-][+]HIGH: Default new rooms to your primary workspace[/+][-]HIGH: Default new rooms to your primary workspace[/-][+][$500] HIGH: Default new rooms to your primary workspace[/+]melvin-bot commentedon Dec 5, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01b604efe47660d3a4
97 remaining items
roryabraham commentedon Jan 14, 2024
Yeah, I think no additional tests necessary for now
[-]CRITICAL: [$750] Default new rooms to your primary workspace[/-][+][HOLD for payment 2024-01-24] CRITICAL: [$750] Default new rooms to your primary workspace[/+]melvin-bot commentedon Jan 17, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 17, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.25-10 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-01-24. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 17, 2024
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
dylanexpensify commentedon Jan 17, 2024
coming up!
dylanexpensify commentedon Jan 23, 2024
tomorrow!
alitoshmatov commentedon Jan 24, 2024
Regression Test Proposal
Start chatRoomtabDo we agree 👍 or 👎
dylanexpensify commentedon Jan 29, 2024
Payment summary:
Please apply or request!
dylanexpensify commentedon Jan 29, 2024
done