-
Notifications
You must be signed in to change notification settings - Fork 5
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
Pulling YML files brings outdated values #149
Comments
Hi @bernawil, uploads are processed in the background and it can take from a few seconds to a few minutes until the content is updated the project. What you could try is running |
Tried waiting more than 24 hours and it still comes outdated. Also, do note
that the simple json format does bring updated values when yml does not
suggesting it's a format specific bug.
El jue, 13 de jun de 2024, 03:45, Sönke Behrendt ***@***.***>
escribió:
… Hi @bernawil <https://github.com/bernawil>, uploads are processed in the
background and it can take from a few seconds to a few minutes until the
content is updated the project. What you could try is running phrase push
--wait. This will make the command wait until the uploads have been
processed
—
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZJZEIICVJTJ2CZRO4TAQ3ZHE52JAVCNFSM6AAAAABJHDBUDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRUGY2TMOBXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Could it be a pluralization problem? AFAIK, JSON exports show plurals as leaves ( @bernawil make sure you don't combine pluralized keys with keys named |
I doubt it, I created that example to reproduce the issue, but I've seen it happen with keys named differently too. |
The naming itself isn't wrong. It just doesn't go well when combined with pluralization and nested export/import.
There's the problem, you have two keys which result with the same part in the nested export/import file. |
Again, I'm seeing the same with other keys, this was just a test to catch it. |
@jablan just noticed this:
there's only one first_key.value.one. The simple json shows both a "first_key.value.one" and an object leaf with the same. One updated, the other not.
There's obviously something wrong the yml parsing that makes duplicated keys. |
I am seeing key values coming with outdated values after pulling yml files after a push.
To test this I created a test project
this is my .phraseapp
this is my en.yml
There, I update
first_key.value.one
Then push the changes:
Now, pull those changes and en.yml comes with the value outdated. To double, check I download the file directly.
phrase locales download --id en --project_id 1afcb9912f3e68c4777275e78cd18512 --file_format yml
Result: first_key.value.one still outdated
Now, try downloading simple_json.
phrase locales download --id en --project_id 1afcb9912f3e68c4777275e78cd18512 --file_format simple_json
first_key.value.one is now up to date!
This mirrors what happens in the Web UI: the editor shows updated values and downloading simple json format too. But downloading yml brings these outdated values.
This looks something wrong in the conversion between the data representation and yml format instead of the data persistence itself. For the record, I see similar outdated values in other formats like json (simple json is correct).
The text was updated successfully, but these errors were encountered: