-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Description
One of the nice features of this project is the ability to create custom interactions to power team processes.
Problem
Unfortunately to do this, users must essentially fork the codebase, add new actions, and then keep their branch up to date with master here. This isn't ideal for several reasons:
- It's not obvious when new features/fixes/security releases are available upstream
- It's not easy to update to only particular published versions (tags?)
- Merging changes, particularly those to do with the infrastructure stuff here (Dockerfiles, etc) may be tricky.
Solution
I propose that a good solution for this would be to make response a Python package that provides a Django app.
What would this look like?
- The existing apps:
core,pagerduty,slack, anduiwould be moved into theresponseapp. - The
responseapp would be decoupled from the Django installation currently there – removingmanage.py, changing how the settings work, etc. - A new
demosite would be created, that addsresponseto itsINSTALLED_APPS, and perhaps implements one additional command to demonstrate how the extension would work. - The Docker setup provided would be updated to launch the demo site.
- The
responsepackage would be published to PyPY, ideally with a nice CI setup in this repo for testing and publishing new versions.
This has the benefits of:
- Pending updates are now just out of date Python packages, and we can use tooling such as Dependabot/
piprotto detect, or the GitHub vulnerability alerts. - Updating to a new version is as simple as bumping the version requirements in your
requirements.inor equivalent file, again utilising existing Python tooling such aspip-tools,pipenv, etc. - Merging changes is now much easier, and only becomes an issue when the public API of the
responsepackage changes (which can be tested for) rather than happening on conflicting file diffs. - Including custom infrastructure/deployment tooling in the repo is easier as it's not co-existing with the demo tooling provided here.
I'd appreciate any feedback or discussion on the alternatives to this approach – I'm sure there are other good options here.
Metadata
Metadata
Assignees
Labels
No labels