~cjohnston/uci-engine/1318774

« back to all changes in this revision

Viewing changes to cli/ci_cli/ticket.py

  • Committer: Ubuntu CI Bot
  • Author(s): Andy Doan
  • Date: 2014-05-12 15:49:28 UTC
  • mfrom: (466.2.4 ts-model)
  • Revision ID: ubuntu_ci_bot-20140512154928-ng6cll5viw6ylgji
[r=PS Jenkins bot, Chris Johnston] ticket-api: simplify status values

Simplifies the TicketWorkflowStepStatus values to be consistent
and let the user infer the workflow-step using the "current_workflow_step"
attribute of a ticket.  from Andy Doan

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        """
145
145
        data = {
146
146
            "current_workflow_step": TicketWorkflowStep.QUEUED.value,
147
 
            "status": TicketWorkflowStepStatus.PENDING.value,
 
147
            "status": TicketWorkflowStepStatus.QUEUED.value,
148
148
        }
149
149
        urlbase = utils.CI_URL + utils.API_URL + 'updateticketstatus/'
150
150
        utils.patch(urlbase + self.ticket_id + '/', data=data)