It would be nice to to fail in such case and override the new code from the import. I will apply this workaround to not set the new code on my empty staging instance.
Thank you for confirming that it worked with the new code period reset. I tried on my side and checked the code to confirm this as well
In terms of a long-term solution, I’m more inclined to make this clear in the documentation rather than “complexifying” the feature with more checks and overriding capabilities. Something like “Don’t change any other configuration than Quality Profile and Quality Gate as it might fail the import”.
I’m suggesting this because it was the new code period here, but this can (could!) be valid for other pieces of configuration.
We are discussing/validating this internally, I’ll let you know about the decision.
I again, just to let you know that we validated the documentation change stated above, vs. improving this particular feature. We’ll make it clear that no config (except QG and QP) should be changed for the import to happen, this both on the LTS and the latest versions.