Skip to content
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

Add a workflow for syncing a plugin from a git repository or file upload #646

Open
9 tasks
Tracked by #586
keithmanville opened this issue Sep 25, 2024 · 0 comments
Open
9 tasks
Tracked by #586

Comments

@keithmanville
Copy link
Collaborator

keithmanville commented Sep 25, 2024

We want to support the importing of plugins from external sources. This allows for:

  • External development of plugins
  • Sharing of plugins between deployments
  • Management and automatic registration of Dioptra built-in plugins
  • Automated registration of plugins (instead of manually uploading each file via a client)

To improve the import functionality, we need a way of tracking and updating externally managed plugins. This will be accomplished via a sync workflow in the restAPI, syncResources.

A new database table to track import source will be needed. It should include: id, name, source_type, url, hash, and timestamp(s).

Tasks:

  • Design the schemas and endpoint(s) for the resourcesSync workflow in the REST API design doc on google drive
  • Add the design to this issue once finalized
  • Add new database table for tracking import source
  • Implement the schema(s) and controller(s) for the workflow
  • Implement the service layer with a single database commit

Definition of Done:

  • Plugins can be synced from a file upload or git repository via a workflow
  • New integration tests that cover plugin sync functionality are implemented
  • All tests pass
  • The feature is merged into dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant