Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIBFCREPO-1425. Remove per-row publishing/hiding from Plastron import #310

Merged

Conversation

dsteelma-umd
Copy link
Contributor

Removed code from the
“plastron-repo/src/plastron/jobs/importjob/init.py” file where the “publish” and “hidden” fields from individual CSV rows was used to publish/hide items. This included removing code from the “create_resource” method, which set the “umdaccess.Published” and “umdaccess.Hidden” RDF type for newly created items (which was problematic because it was setting the types without doing other “publish” activities such as minting a new handle).

Updated the unit tests, and the “plastron-cli/docs/import.md” file (which had become out-of-date with the current options provided by the “import” command).

Based on the changes in this issue, the “import” command only publishes via the “--publish” flag, which published all the items in the import. There is no way to “hide” (or make visible) an item via the “import” ommand – use the “publish” and “unpublish” commands instead (via the “--hide” and “--visible” flags).

Added an ADR document, as the decision to remove the per-row use of the “PUBLISH” and “HIDDEN” fields by the “import” command seemed to rise to that level (from a philosophical/”what were we thinking” perspective).

https://umd-dit.atlassian.net/browse/LIBFCREPO-1425

Removed code from the
“plastron-repo/src/plastron/jobs/importjob/__init__.py” file where the
“publish” and “hidden” fields from individual CSV rows was used to
publish/hide items. This included removing code from the
“create_resource” method, which set the “umdaccess.Published” and
“umdaccess.Hidden” RDF type for newly created items (which was
problematic because it was setting the types without doing other
“publish” activities such as minting a new handle).

Updated the unit tests, and the “plastron-cli/docs/import.md” file
(which had become out-of-date with the current options provided by the
“import” command).

Based on the changes in this issue, the “import” command only publishes
via the “--publish” flag, which published all the items in the import.
There is no way to “hide” (or make visible) an item via the “import”
ommand – use the “publish” and “unpublish” commands instead (via the
“--hide” and “--visible” flags).

Added an ADR document, as the decision to remove the per-row use of the
“PUBLISH” and “HIDDEN” fields by the “import” command seemed to rise to
that level (from a philosophical/”what were we thinking” perspective).

https://umd-dit.atlassian.net/browse/LIBFCREPO-1425
@peichman-umd peichman-umd merged commit b905a91 into umd-lib:release/4.3 Jun 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants