-
Notifications
You must be signed in to change notification settings - Fork 0
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
Only update language if a field is edited in Edit view and is not empty when saved #1394
Comments
@SyamBabu-M here is another ticket for you. Please go ahead and estimate and start work when you have time. |
@troughc Looks good. |
@SyamBabu-M 'Dismiss' should not enable the fallback languages to be the active value which is then saved (the fallback languages as the actual values). Dismiss is used by a user to close the banner only. The big idea/goal is that the user intentionally sets (chooses) the fallback language as the active value. Let me know if you need any further clarification. |
@dev-aravind Please do a round of peer review. |
@SyamBabu-M This looks good to me but the regression tests for places is failing. Please look into this. You can find the screenshots here. |
@troughc Please test this in staging |
Tested starting with Events. 1. Saving (publishing) an entity will only create a literal in a field that a user explicitly touched (edited) and has something in it (a text string). It will not create a literal in a field that is untouched: PLEASE CHECKIt looks like it is partially working. I tried it again in this event: 2. the fallback language in the read-only page is not the same as the fallback language in the Edit page for both test events.In read only, it looks like it is FRENCH I think this is because I changed the order of languages in settings before creating my events. I change the order from having FRENCH first to haviing ENGLISH first (which changed the fallback language from French to English). wrong fallback language in read onlyright fallback language in edit view3. Tested in Organizations with 2freresTo set it up, I removed the text from the Name and the Description fields. |
I have not changed anything on the read-only pages as this was not within the scope of this ticket. Should we address this issue before this goes live? Or we can work on that as a separate issue.
This is an issue with tesx editor. I'll fix this asap. |
@troughc I have fixed the bug with editors unusual behavior. please test this in the linked PR. |
Tested the text editor behaviour: PASSED. |
@SyamBabu-M I just found a minor bug - the ticketing fields in the Edit view are not displaying fallback languages and the literal tag when they are empty. See this event Example: empty field in Japanese@SyamBabu-M This is a minor bug so please decide if you want to deploy this update as is or fix this first. Either way, I will add this minor bug to the other ticket I am creating. Please remove the to be deployed Label if you do not want to deploy it. |
Reference user story: #1371
Current behaviour - to be replaced with new behaviour
Events: Publishing an entity creates literals in a language field based on the displayed fallback language when the field was not touched
Events: Saving an event entity does NOT create a literal in a language field based on the fallback language when the field is not touched
Place/Person/Org: Saving an entity creates a literal in a language field based on a displayed fallback language when the field was not touched
New behaviour
Tasks
The text was updated successfully, but these errors were encountered: