Skip to content
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

allow default_locale to be set/updated via the addon api #18235

Closed
eviljeff opened this issue Nov 1, 2021 · 5 comments · Fixed by #19290
Closed

allow default_locale to be set/updated via the addon api #18235

eviljeff opened this issue Nov 1, 2021 · 5 comments · Fixed by #19290

Comments

@eviljeff
Copy link
Member

eviljeff commented Nov 1, 2021

split from #18036

We'd like to be able to set during create, and update later, the default locale for the addon's translated strings. This will probably need a lot of validation because it's easy to end up with an add-on with (apparently) entirely missing metadata because those strings aren't present in the newly selected default locale.

@AlexandraMoga
Copy link

I'm moving this to the following milestone since we won't push next week.

@ioanarusiczki
Copy link

@eviljeff I've been testing on -dev :

@ioanarusiczki
Copy link

@eviljeff

I tested various scenarios so I won't detail everything:

  • with multiple locales declared in the _locales folder with information about name and summary , at addon create when the JSON also includes information about "name" or "summary" -> it will override the information from the archive -> which is expected

  • a value for the default locale is required for ""description", "developer_comments", "homepage", "name", "summary", "support_email" when these are added with a default_locale . -> expected

  • when making a PATCH in order to change the default_locale, the name and summary are the mandatory fields. I've noticed that dev hub also requires the "description" (which is an old thing, I am pretty sure but I think it should work the same way as the API)

@eviljeff
Copy link
Member Author

eviljeff commented Jun 6, 2022

  • when making a PATCH in order to change the default_locale, the name and summary are the mandatory fields. I've noticed that dev hub also requires the "description" (which is an old thing, I am pretty sure but I think it should work the same way as the API)

I forget the requirements for devhub - and it's changed a few times over the years. Strictly required metadata to be approved for a listed version is name + summary + license + categories so I used that.

@ioanarusiczki
Copy link

@eviljeff

Yes, it's been a bit difficult to understand what is going on but after making a comparison on the API versus dev hub I found some issues:
#19333
#19334
#19335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants