-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clean has exceeded language limit #119
Comments
Hey @laststandjam, You are right, the code would not work, on this condition. I tried to fix it by handling the active languages first. Can you please check whether solution from #121 works for you? You would need to switch to branch Thank you. |
Hello @IvanKiral, @laststandjam , Unfortunately running the tool locally with branch But activating inactive languages is not possible: Hopefully this will provide a starting point for finding a solution. Thank you! |
Hey @csimonszuyderland, thank you for trying out the solution. Can you please try it once again? I had some uncommitted changes that might solve this so I have pushed them. Remember to pull the changes again. I'm sorry about that. |
Hi @IvanKiral , The clean command is now running successfully, but when I perform a restore from a backup I get the following error message:
(The languages are still in the environment) |
Sadly, languages cannot be deleted :/. Are the languages deactivated? |
Would it be possible for you to send me the zip you are trying to restore, so i can try it myself? |
@csimonszuyderland I think I find something, the tool is also trying to restore deactivated languages. I am considering to filter inactive languages when restoring. Is that okay for you? Other option is to add them as inactive (now the tool import all languages as active, which is not nice) but then there might be a problem with same external-id |
@IvanKiral That seems like a good option to me. |
okay I pushed that solution for now :) I was able to import with your zip, so hopefully, I didn't miss something :D Anyway, I will probably rewrite it not to skip languages, but to sort them and deal with inactive ones at first. Sorry for the inconvenience. Let me know if it is working now for you. |
Great, this works, the restore of the backup was successful! Thanks for solving the problem quickly! |
Glad to hear! :) Thank you for your collaboration, it was really helpful :) |
Brief bug description
I have an environment with the two languages, the maximum number languages allowed in my subscription. After backing up, cleaning, and restoring the environment. It becomes impossible to clean it again as I run into a Validation Error {"message":"The specified project already contains the maximum number of active languages for your subscription plan. To add a new language, deactivate an existing language first."} This is still with two active languages and one inactivate one.
Repro steps
Expected behavior
Be able to clean the environment as my active languages aren't above the limit.
Test environment
Screenshots
The text was updated successfully, but these errors were encountered: