Feature #13103

Add '--attach-only' option to the digitalobject:load CLI task

Added by Steve Breker 4 months ago. Updated about 1 month ago.

Status:VerifiedStart date:07/04/2019
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:CLI tools
Target version:Release 2.6.0
Google Code Legacy ID: Tested version:1.2
Sponsored:Yes Requires documentation:Yes

Description

Add new option to the CLI digitalobject:load CLI task: --attach-only

When set, this option will force all digital objects in the import CSV file to be attached via their own information object record.

Prior to this option being added, the import task had two different behaviours:
1) in the import spreadsheet, if there were only one digital object to be imported to a description, then the digital object would be 'linked' to the information object. If a second csv load attempted to load a second single digital object to this description, the digital object would not be loaded and an error would be generated stating that this description already had an object linked.

2) in the import spreadsheet, if there is more than one digital object to be imported to a description, then the digital objects would be 'attached' to the information object via their own information object records. If more digital objects were loaded in a second CSV, these objects would also be attached in the same way.

Effectively when this option is ON, all imported digital objects will be imported as in (2) above - all digital objects will be attached regardless of how many are in the import file.

History

#1 Updated by Steve Breker 4 months ago

  • Status changed from In progress to Code Review

#3 Updated by Mike Cantelon 4 months ago

  • Status changed from Code Review to Feedback

Hi Steve... the PR looks good!

#4 Updated by Steve Breker 3 months ago

  • Status changed from Feedback to QA/Review

merged to qa/2.6.x.

#5 Updated by Steve Breker 3 months ago

  • Status changed from QA/Review to Code Review
  • Assignee changed from Steve Breker to Mike Cantelon

Hi Mike - discovered an issue with the $options not being passed correctly:

https://github.com/artefactual/atom/pull/943

#6 Updated by Mike Cantelon 3 months ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Mike Cantelon to Steve Breker

Hi Steve.. the PR looks good!

#7 Updated by Dan Gillean 2 months ago

  • Category set to CLI tools

#8 Updated by Dan Gillean 2 months ago

  • Sponsored changed from No to Yes
  • Requires documentation set to Yes
  • Tested version 1.2 added

#9 Updated by Steve Breker about 1 month ago

  • Status changed from Feedback to QA/Review
  • Assignee deleted (Steve Breker)

Merged. Ready for QA in qq/2.6.x.

#10 Updated by Dan Gillean about 1 month ago

  • Status changed from QA/Review to Verified

Also available in: Atom PDF