Task #8164

Make tools:update-publication-status more user friendly

Added by Mike Gale about 7 years ago. Updated about 7 years ago.

Status:VerifiedStart date:03/30/2015
Priority:LowDue date:
Assignee:Dan Gillean% Done:

0%

Category:CLI tools
Target version:Release 2.2.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

Currently it requires the user to know the database term id to specify which publication status to use. It'd be much better if the user could input something like "draft" or "published".

History

#1 Updated by Mike Gale about 7 years ago

  • Status changed from New to Code Review
  • Assignee changed from Mike Gale to Mike Cantelon

#2 Updated by Mike Gale about 7 years ago

  • Requires documentation set to Yes

#3 Updated by Mike Gale about 7 years ago

New usage:

php symfony tools:update-publication-status <status> <slug>

e.g.: php symfony tools:update-publication-status published my-slug-here

#4 Updated by Dan Gillean about 7 years ago

new usage example, where you can input if you want it to be draft or published - updating a record with the slug "my-slug" to be published:

php symfony tools:update-publication-status published my-slug

If custom publication status terms have been added to Publication status taxonomy, these can be invoked in the CLI task as well. You cannot create new terms by calling the task, however.

#5 Updated by Mike Cantelon about 7 years ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Mike Cantelon to Mike Gale

Looks good, only one ultra-minor nitpick that can probably be ignored.

#6 Updated by Mike Gale about 7 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Mike Gale to Dan Gillean

#7 Updated by Dan Gillean about 7 years ago

  • Status changed from QA/Review to Verified
  • Requires documentation deleted (Yes)

Also available in: Atom PDF