- Mar 30, 2021
-
-
Moser, Maximilian authored
-
- Mar 03, 2021
-
-
Moser, Maximilian authored
* per default, try the more modern approach of updating the draft that is associated with the record's recid (service.update_draft() followed by service.publish()), and only in case of error fall back to service.update() * add a "direct" variant of updating metadata, which circumvents the record service and directly modifies the record's metadata * this is not recommended, but can come in handy when more direct access is required than the record service allows
-
- Mar 02, 2021
-
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* this new option allows dumping of the JSON data as stored in the database, rather than the record/draft projection
-
Moser, Maximilian authored
* make --as-user option not required anymore, use system identity per default
-
- Feb 06, 2021
-
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* use the new metadata schema for owners in the owner-setting feature when creating new records
-
- Jan 29, 2021
-
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* as fallback, the parameter --as-user/-u now reads its value from the environment variable INVENIO_UTILITIES_TUW_USER (if it is set) * thus, the --as-user/-u parameter doesn't have to be specified for each command anymore * the value is still required, s.t. either the env var or the CLI option have to be specified
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* note: this is *not* recommended, but can come in handy if the assignment of a specific PID is a requirement
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* ignore E731 for flake8, which is a waning about using lambda vs def
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* allow draft/record owners to be set explicitly when creating/updating drafts/records * if specified, the owners will override the "access.owned_by" section in the record's JSON * the implementation assumes that the record's JSON structure follows invenio-rdm-records
-
Moser, Maximilian authored
* get the DraftMetadata class from the record service instead of directly importing it from invenio-rdm-records * prevents issues with renaming of the metadata class, etc.
-
- Jan 22, 2021
-
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* apply Black formatting * use plural for sub-commands, for consistency * fix convert_to_recid() to always fetch the first PID of type 'recid' * add command to reindex all (or some) records * update method for instantiating RecordServices: allow the configuration of a factory function that creates a RecordService as desired (default: fetches services from current_rdm_records)
-
- Dec 14, 2020
-
-
Moser, Maximilian authored
* add command for listing soft-deleted files * add command for listing all files of a record
-
- Dec 11, 2020
-
-
Moser, Maximilian authored
-
Moser, Maximilian authored
-
Moser, Maximilian authored
* previously, the 'any_user' need wasn't added to a known user's identity
-
- Dec 10, 2020
-
-
Moser, Maximilian authored
* add further commands for managing drafts * add command for listing users
-
Moser, Maximilian authored
* add commands for listing/adding/removing files from drafts * add commands for listing/deleting drafts
-
- Dec 03, 2020
-
-
Moser, Maximilian authored
-