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
[$125] Workspace - System message changes in the #admins room after changing WS description #53534
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Version Number: 9.0.71-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/5296387&group_by=cases:section_id&group_id=229065&group_order=asc Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team
Replace the default description with a few letters
Navigate to the #admins room of the workspace
Expected Result:
System message should be "updated the description of this workspace to".
Actual Result:
System message changes in the #admins room after changing WS description. "updated the description of this workspace from "" to" message is briefly visible before it changes to "updated the description of this workspace to".
Please re-state the problem that we are trying to solve in this issue.
System message changes in the #admins room after changing WS description. "updated the description of this workspace from "" to" message is briefly visible before it changes to "updated the description of this workspace to".
What is the root cause of that problem?
We don't have a translation for POLICYCHANGELOG_UPDATE_DESCRIPTION action and it displays the message[0]?.html by default. After we change the workspace's description, the backend returns the message updated the description of this workspace from "" to. But it's changed to updated the description of this workspace to ... after OpenReport API is called
What changes do you think we should make in order to solve the problem?
We need to define a new translation for POLICYCHANGELOG_UPDATE_DESCRIPTION action. It is updated the description of this workspace from "${oldDescription}" to "${newDescription}" if oldDescription is not empty. If not, it is updated the description of this workspace to "${newDescription}" if oldDescription is empty
updateDescription: ({oldDescription, newDescription}: {oldDescription: string; newDescription: string}) =>
`updated the description of this workspace ${oldDescription ? `"from ${oldDescription} "` : ''}to "${newDescription}"`,
Add CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_DESCRIPTION as an old dot action
Add a case for this action in getMessageOfOldDotReportAction function so it can work in all places like LHN, ReportActionItem, thread name header, copy to clipboard
OPTIONAL: When we update workspace description we can generate this action in optimistic data and send the reportActionID to backend to generate this action
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
changed the title [-]Workspace - System message changes in the #admins room after changing WS description[/-][+][$250] Workspace - System message changes in the #admins room after changing WS description[/+]on Dec 4, 2024
Add a translation for this one here to round out this issue.
Create a new issue for translating workspace change logs overall such that they'e consistently translated. Though I would still like the input of @sakluger & @JmillsExpensify on why that isn't the case.
Workspace change logs are super old, so I wouldn't be surprised if the entirety of them are not translated. In fact, workspace description would only added more recently right, as part of simplified collect? So maybe we didn't add the right translation at that point.
Hm yeah, it's strange that apparently only the workspace change logs for invite/remove workspace members and updating the workspace name are translated.
changed the title [-][$250] Workspace - System message changes in the #admins room after changing WS description[/-][+][$125] Workspace - System message changes in the #admins room after changing WS description[/+]on Jan 7, 2025
Sorry for the late response - it doesn't look like we discussed translations at all in the original Workspace Change Logs design doc, so I'm not surprised that the functionality isn't really there for most changes.
I agree that we should create a separate issue to translating workspace change logs overall.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Activity
melvin-bot commentedon Dec 4, 2024
Triggered auto assignment to @trjExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nkdengineer commentedon Dec 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
System message changes in the #admins room after changing WS description. "updated the description of this workspace from "" to" message is briefly visible before it changes to "updated the description of this workspace to".
What is the root cause of that problem?
We don't have a translation for
POLICYCHANGELOG_UPDATE_DESCRIPTIONaction and it displays themessage[0]?.htmlby default. After we change the workspace's description, the backend returns the messageupdated the description of this workspace from "" to. But it's changed toupdated the description of this workspace to ...afterOpenReportAPI is calledWhat changes do you think we should make in order to solve the problem?
POLICYCHANGELOG_UPDATE_DESCRIPTIONaction. It isupdated the description of this workspace from "${oldDescription}" to "${newDescription}"ifoldDescriptionis not empty. If not, it isupdated the description of this workspace to "${newDescription}"ifoldDescriptionis emptyCONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_DESCRIPTIONas an old dot actionApp/src/libs/ReportActionsUtils.ts
Line 1245 in 00f0dee
getMessageOfOldDotReportActionfunction so it can work in all places like LHN,ReportActionItem, thread name header, copy to clipboardApp/src/libs/ReportActionsUtils.ts
Line 1289 in 00f0dee
OPTIONAL: When we update workspace description we can generate this action in optimistic data and send the reportActionID to backend to generate this action
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
[-]Workspace - System message changes in the #admins room after changing WS description[/-][+][$250] Workspace - System message changes in the #admins room after changing WS description[/+]melvin-bot commentedon Dec 4, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021864276008252275164
melvin-bot commentedon Dec 4, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)jjcoffee commentedon Dec 4, 2024
@nkdengineer's proposal LGTM. I think a unit test might be appropriate here though?
jjcoffee commentedon Dec 4, 2024
🎀👀🎀 C+ reviewed
33 remaining items
trjExpensify commentedon Jan 3, 2025
Yeah, seems like we should do the following:
JmillsExpensify commentedon Jan 3, 2025
Workspace change logs are super old, so I wouldn't be surprised if the entirety of them are not translated. In fact, workspace description would only added more recently right, as part of simplified collect? So maybe we didn't add the right translation at that point.
trjExpensify commentedon Jan 6, 2025
Hm yeah, it's strange that apparently only the workspace change logs for invite/remove workspace members and updating the workspace name are translated.
melvin-bot commentedon Jan 7, 2025
@trjExpensify, @jjcoffee, @mountiny Eep! 4 days overdue now. Issues have feelings too...
[-][$250] Workspace - System message changes in the #admins room after changing WS description[/-][+][$125] Workspace - System message changes in the #admins room after changing WS description[/+]melvin-bot commentedon Jan 7, 2025
Upwork job price has been updated to $125
mountiny commentedon Jan 7, 2025
@nkdengineer do you want to add the translations here for 125?
nkdengineer commentedon Jan 7, 2025
@mountiny Yeah I can do this.
Krishna2323 commentedon Jan 7, 2025
@mountiny, I'm updating all the translations in this PR.
sakluger commentedon Jan 8, 2025
Sorry for the late response - it doesn't look like we discussed translations at all in the original Workspace Change Logs design doc, so I'm not surprised that the functionality isn't really there for most changes.
I agree that we should create a separate issue to translating workspace change logs overall.
trjExpensify commentedon Jan 8, 2025
Oh nice, so this is already in progress.
mountiny commentedon Jan 8, 2025
Nice so i think we can close this one
trjExpensify commentedon Jan 8, 2025
Yup, thanks everyone!