Project

Profile

Help

Refactor #3653

closed

Plugin Writer refer to task states for Progress reporting purposes

Added by bmbouter almost 6 years ago. Updated over 4 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

The ProgressBar and ProgressSpinner have a state that uses choices typically imported in the pulpcore codebase using:

from pulpcore.common import TASK_STATES

Currently plugins are hard coding the state names (not DRY).

Is there a recommended way to stay DRY with those task choice values? Are plugins allowed to import from pulp.common?

Also available in: Atom PDF