Task #8708

Change the --single-id option in export:bulk and csv:export to be --single-slug instead

Added by Mike Gale almost 7 years ago. Updated over 6 years ago.

Status:VerifiedStart date:07/15/2015
Priority:LowDue date:
Assignee:Dan Gillean% Done:

0%

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

Description

--single-id isn't very useful because:
  • you can just do the exactly same thing with --criteria="i.id=<id>" anyway
  • most users aren't experienced enough to go look up record ids in mysql

I propose we just make it --single-slug instead.

export-bulk-cli.png (18 KB) Dan Gillean, 09/02/2015 07:50 PM


Related issues

Related to Access to Memory (AtoM) - Bug #8905: export:bulk task does not give warning or error message w... Verified 09/02/2015

History

#1 Updated by Mike Gale almost 7 years ago

Note: must not forget to change this in finding aid generation too (which is calling --single-id from exec())

#2 Updated by Mike Gale almost 7 years ago

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

#3 Updated by Mike Cantelon almost 7 years ago

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

This PR looks good... good change to make.

#4 Updated by Mike Gale almost 7 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Mike Gale to Dan Gillean
  • Requires documentation set to Yes

#5 Updated by Mike Gale almost 7 years ago

  • Category set to CLI tools
  • Target version set to Release 2.3.0

#6 Updated by Dan Gillean over 6 years ago

Looks good!

Note for documentation: unless we address #8905 before I get around to the documentation, this task requires slightly different parameters - the user MUST specify a file name, not just a target directory, for the task to complete successfully when run using --single-slug.

For example:

php symfony export:bulk --single-slug="test-export" /path/to/my/directory

Will fail

php symfony export:bulk --single-slug="test-export" /path/to/my/directory/test-export.xml

Will succeed.

Also attaching updated screenshot of task description/help, for documentation

#7 Updated by Dan Gillean over 6 years ago

  • Related to Bug #8905: export:bulk task does not give warning or error message when export run for single description without target filename added

#8 Updated by Dan Gillean over 6 years ago

  • Requires documentation deleted (Yes)

Also available in: Atom PDF