Closed demetriusfeijoo closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
plugin-sandbox | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 26, 2024 5:10pm |
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite.
Also, could you test to make sure --skipPrompts parameter works well with all the scenarios?
Also, could you test to make sure --skipPrompts parameter works well with all the scenarios?
Oh, nice point @eunjae-lee, thanks! 💯
It was breaking when --skipPrompts
was informed and there was a name collision. Fixed it here.
What?
It allows our CLI to handle duplicated name errors when deploying new field plugins.
Why?
JIRA: EXT-2053
As we don't have an ENDPOINT to check globally (from all users and scopes) whether a plugin with the same name, already exists in someone's account or in a different scope, naming collisions can happen during creation time.
The idea then is to not check it before trying to create a new plugin (because we don't have an endpoint for doing it globally) but a failing first approach, meaning that if we are not sure if a plugin with the same name exists or not we first try to create it and if it fails due
name collision
error, we prompt the user to rename it and try again with the new name. The user is going to be prompted about providing a new name until a unique name is provided or he/she doesn't quit the deployment routine.Changing the update flow wasn't necessary since the duplicated name error is raised only during creation time, but as I did some refactoring I think is worth to check also the update flow.
How to test?
I think the easiest way to test it out maybe by, from the root of the repository, running:
The test scenarios I thought were:
no
when prompted the first time.no
when prompted the first time.