| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
also update docopts
|
@almartino thanks for taking the time to work on this! This is pretty much the idea I had in mind when I opened the issue (and executed way better than I would have been able to). I just tested it on the openserverless tutorial and I encountered just a small issue: error: Unable to delete package 'contact': Package not empty (contains 2 entities).
Set force param or delete package contents.The 2 entities are the sequences: submit-write and submit-notify. Maybe sequences should be added too to deployment.json? Regarding your questions:
I think .ops dir should be version controlled 🤔. Imagine a CICD pipeline running either ops ide deploy / undeploy. What would happen if it didn't have access to deployment.json?
I wouldn't bother: the deployment.json file can be generated on an existing project by running ops ide deploy once, which will just update the current packages and actions AND generate the file. I didn't encounter other issues (albeit, I tested it on a simple deployment). |
Sorry, something went wrong.
added a process.exit inside undeploy. Added missing license header on info.js and syncDeployInfo.js. Added icons on error messages
| Back | FazBrowse Home | New Git URL |
The solution implements a project-specific undeployment mechanism that:
Implementation Details
1. Improved Structure for Deployment Information
When ops ide deploy is executed, the system now saves information about deployed packages and actions in a file with an improved structure:
Example:
{ "packages": ["foo", "bar", "baz"], "packageActions": { "foo": ["hello", "world"], "bar": ["some_action"], "baz": [] } }Sidenote 1: could be useful to automatically add the .ops dir to the .gitignore file when creating a project?
Sidenote 2: should we make this retro compatible for projects prior to this fix?
2. Project-Specific Undeployment
When ops ide undeploy is executed without arguments:
3. Single Action Undeployment
When ops ide undeploy contact/index is executed:
references apache/openserverless#117