Actions
Story #4045
closedAs a plugin writer, I'd like for auto-distribute to work with my distribution.
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Easy Fix
Sprint:
Sprint 44
Quarter:
Description
The Publication context manager support for auto-distribute only works with Distribution. Plugin can now have custom distribution models. At the very least, the code in exit() could be refactored and made more accessible to plugin writers.
For example:
def __exit__(self):
self.update_distributions():
...
def update_distributions(model=Distribution):
....
Plugin writers could then do:
with Publication.create(..) as publication:
publication.update_distributions(model=DockerDistribution):
Actions
Better support for auto-distribution. closes #4045