-
Notifications
You must be signed in to change notification settings - Fork 2.8k
cli: add support for multiple versions of plugin (close #4105) #4135
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
Conversation
|
Deploy preview for hasura-docs ready! Built with commit 33d41ee |
|
Review app for commit 52ed819 deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
|
Review app for commit 65c227b deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
|
Review app for commit 815ca43 deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
|
Review app for commit 0052ce6 deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
|
Review app for commit fcb4379 deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
|
Review app https://hge-ci-pull-4135.herokuapp.com is deleted |
|
Review app for commit cc4463b deployed to Heroku: https://hge-ci-pull-4135.herokuapp.com |
Description
This PR adds support for handling multiple versions of a plugin.
Commands changed:
hasura plugins installnow takesversionflag.hasura plugins upgradenow takesversionflag.Changelog
CHANGELOG.mdis updated with user-facing content relevant to this PR.Affected components
Related Issues
Solution and Design
Instead of handling a single version of a plugin,
pluginswill store the list of versions in an index and respective manifest in a map. On every append to the index and map, the versions will be sorted.By doing this, we can retrieve the latest version from the last item in the index. Also, we can retrieve a particular version from the index.
Plugins Repo can handle both file or folder-based structure.
Steps to test and verify
Limitations, known bugs & workarounds