-
Notifications
You must be signed in to change notification settings - Fork 6
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
Updates migrations with using field_unique_id as default for parse_entity_lookups #204
Conversation
field_unique_id, instead of name/title. Still a WIP and will need changes.
c5f1675
to
5046172
Compare
|
|
|
|
|
|
|
and to not fail there's an unexpected message (like a message about drupal needing updating)
|
|
(it had a typo, but I'm not sure it's needed in the first place)
|
|
|
|
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! One optional suggestion to document new argument in util.js
and rename it to accessTerm
, pointed out in four separate comments. Feel free to just merge if you make that change, and the build passes
@@ -166,7 +180,7 @@ export const download = async (uri) => { | |||
* @param {string} name Name of the repository object for whom to upload an image to | |||
* @param {string} file path of the file to upload, on disk. | |||
*/ | |||
export const uploadImageInUI = async (t, name, file) => { | |||
export const uploadImageInUI = async (t, name, file, access) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to accessTerm, add something like @param {string} accessTerm textual name of access term to use for the uploaded file
@@ -185,7 +200,7 @@ export const uploadImageInUI = async (t, name, file) => { | |||
* @param {string} name Name of the repository object for whom to upload a file to | |||
* @param {string} file path of the file to upload, on disk. | |||
*/ | |||
export const uploadFileInUI = async (t, name, file) => { | |||
export const uploadFileInUI = async (t, name, file, access) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to accessTerm, add something like @param {string} accessTerm textual name of access term to use for the uploaded file
@@ -166,7 +182,7 @@ export const download = async (uri) => { | |||
* @param {string} name Name of the repository object for whom to upload an image to | |||
* @param {string} file path of the file to upload, on disk. | |||
*/ | |||
export const uploadImageInUI = async (t, name, file) => { | |||
export const uploadImageInUI = async (t, name, file, access) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to accessTerm, add something like @param {string} accessTerm textual name of access term to use for the uploaded file
@@ -185,7 +202,7 @@ export const uploadImageInUI = async (t, name, file) => { | |||
* @param {string} name Name of the repository object for whom to upload a file to | |||
* @param {string} file path of the file to upload, on disk. | |||
*/ | |||
export const uploadFileInUI = async (t, name, file) => { | |||
export const uploadFileInUI = async (t, name, file, access) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to accessTerm, add something like @param {string} accessTerm textual name of access term to use for the uploaded file
adds a description for the parameter
|
Resovles: jhu-idc/iDC-general#388
This update migrations to have the
parse_entity_lookup
andentity_lookup
processes usefield_unique_id
instead oftitle
orname
as the default for value_key.Also update test migrations to use the
field_unique_id
field information in entity references.Adds
field_unique_id
to search index as well as to the exported information.To test this -- run the test suite or create an ingest using
field_unique_id
to reference an Entity Reference.To be clear, all the places where user manage taxonomy terms might be applied use the
parse_entity_lookup
. All the places that use a system managed taxonomy (Islandora Media Use, Islandora Display and Islandora Models) still useentity_lookup
as they don't have afield_unique_id
.