-
Notifications
You must be signed in to change notification settings - Fork 159
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
Error on export when keyword preservation is enabled #763
Comments
Appreciate you reporting this. Can you report which resource types you have keyword replacement enabled for? If I had to guess which I'd say at least hooks or actions. Looking at the code it appears that there could be certain theoretical scenarios the Could you perhaps provide an example of how you're performing these replacements in your configuration so I can better reproduce and patch? Thanks. |
Thanks for a quick reply @willvedd , these are the fields where I use keyword replacements:
Example config in tenant.yaml for pages:
Then setting up the mappings with:
Will also investigate on my end to see if issue happens only with specific resources. |
Looks like the issue is not related to a resource, but to a specific keyword. If I replace that keyword in tenant.yaml (which is used in several resources) with a static value, then the export goes through. However, none of the other keywords are preserved, except |
Additional investigation:
|
Seems the error happens in |
@jcerjak Really appreciate your help with this one. I have finally been able to reproduce under certain conditions and can confirm that the issue stems from |
@jcerjak I'm not certain, but I suspect that this issue is the same as #770 . The issue there is that keywords are being used in a resource's identifier field (de facto id in absence of literal id). I've released a fix to enable this type of preservation with v7.17.2. Can you update and see if it fixes your issue? |
I believe this is fixed in the aforementioned release, so going to close. However, feel empowered to open a new ticket if you're continuing to have issues with preservation. |
Checklist
Description
I have existing Auth0 config which was exported with the
7.15.1
version of this tool. I'm now trying to run the export again with the latest version (7.17.0
), to try out the awesome new keyword preservation feature implemented in #688.But if I set
"AUTH0_PRESERVE_KEYWORDS": true
in myconfig.json
and run:I get an error:
I have all keyword mappings defined with
AUTH0_KEYWORD_REPLACE_MAPPINGS
(in env variable). The mappings should be correct, since I previously successfully ran import with this config.If I remove the
AUTH0_PRESERVE_KEYWORDS
setting from my config, export finishes successfully (but without the desired keyword preservation).Expectation
I would like export to finish successfully, when
AUTH0_PRESERVE_KEYWORDS
is enabled.Reproduction
See Description above, issue can be reproduced consistently.
Deploy CLI version
7.17.0
Node version
v18.12.1
The text was updated successfully, but these errors were encountered: