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
Timestring is not being properly set on Refreshing the tab when the Language is English #4404
changed the title [-]Timestring is not being properly set for English on Refreshing the tab[/-][+]Timestring is not being properly set on Refreshing the tab when the Language is English[/+]on Aug 4, 2021
@parasharrajat It's the same PR that caused #4352. The issue it solved is #4268.
The last PR also couldn't fix it.
I have mentioned commits here #4404 (comment) for a better understanding
Yeah, that's why to fix this regression another PR should be made by the original author. Don't you think so?
There're many instances when regressions are fixed as Separate issues when found out later after the PR is merged.
But I don't think that I'm eligible to answer that question. Someone will surely clarify later.
Could you please mention/tag the respective persons who found the original issue?
I've already provided context in the ticket itself.
@parasharrajat is correct in saying this should be fixed by the original author. We always wait 7 days to pay our contributors so that we can find regressions like this one. The PR we've been linking to is actually another regression fix from this original one, which was only merged 5 days ago.
Thus I think @kidroca should make this change (it's a tiny one-liner change but that's our process).
@aman-atg
Thanks for the info, I'll submit another PR
I've missed that previously preferredLocale was along the ...props spread
I've only passed locale to trigger re-render when it changes, I had no idea it was actually used in the child components...
This issue has not been updated in over 15 days. @Luke9389 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Activity
MelvinBot commentedon Aug 4, 2021
Triggered auto assignment to @lschurr (
AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.aman-atg commentedon Aug 4, 2021
Proposal
Explaination
preferredLocaleinsidepropswhen we usedwithLocalizebut after the abovecommitthis.props.preferredLocalebecameundefinedlocalewas passed inside props forchild comps.instead ofpreferredLocaleafter this 69fd992moment.localeto takeundefinedas anargumenthere which wasdefinedearlier to these commitsApp/src/pages/home/report/ParticipantLocalTime.js
Line 44 in f772837
Solution
localetopreferredLocaleon this lineApp/src/components/withLocalize.js
Line 59 in f772837
[-]Timestring is not being properly set for English on Refreshing the tab[/-][+]Timestring is not being properly set on Refreshing the tab when the Language is English[/+]parasharrajat commentedon Aug 4, 2021
@aman-atg would you mind commenting of the PR that caused the regression? It will help everyone.
Thanks for taking the time to find the issue and creating a ticket for it
aman-atg commentedon Aug 4, 2021
@parasharrajat It's the same PR that caused #4352. The issue it solved is #4268.
The last PR also couldn't fix it.
I have mentioned
commitshere #4404 (comment) for a better understandingparasharrajat commentedon Aug 4, 2021
Yeah, that's why to fix this regression another PR should be made by the original author. Don't you think so?
Could you please mention/tag the respective persons who found the original issue?
arpitdeveloper commentedon Aug 4, 2021
In this case we update "locale: this.props.preferredLocale"
to "preferredLocale: this.props.preferredLocale"
in "App/src/components/withLocalize.js"
aman-atg commentedon Aug 4, 2021
There're many instances when regressions are fixed as Separate issues when found out later after the PR is merged.
But I don't think that I'm eligible to answer that question. Someone will surely clarify later.
I've already provided context in the ticket itself.
lschurr commentedon Aug 4, 2021
Is this a duplicate of this one then? #4218
aman-atg commentedon Aug 4, 2021
No. In that issue we were not showing
Spanishversion at all.And currently the
Englishversion is being updated with a delay in this Issue.parasharrajat commentedon Aug 4, 2021
@lschurr I see that Changes here #4366 caused this issue.
As @aman-atg mentioned #4404 (comment).
That prop name was renamed in that PR to
locale.1 remaining item
MelvinBot commentedon Aug 4, 2021
Triggered auto assignment to @Luke9389 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.lschurr commentedon Aug 4, 2021
Tagging Eng for another set of eyes.
Luke9389 commentedon Aug 4, 2021
@parasharrajat is correct in saying this should be fixed by the original author. We always wait 7 days to pay our contributors so that we can find regressions like this one. The PR we've been linking to is actually another regression fix from this original one, which was only merged 5 days ago.
Thus I think @kidroca should make this change (it's a tiny one-liner change but that's our process).
kidroca commentedon Aug 5, 2021
@aman-atg
Thanks for the info, I'll submit another PR
I've missed that previously
preferredLocalewas along the...propsspreadI've only passed
localeto trigger re-render when it changes, I had no idea it was actually used in the child components...aman-atg commentedon Aug 5, 2021
@kidroca
No problem mate!
MelvinBot commentedon Sep 2, 2021
This issue has not been updated in over 15 days. @Luke9389 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!