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

DD-1564 Implement Dataverse collection level commands in dd-dataverse-cli #1

Merged

Conversation

aliassheikh
Copy link
Contributor

Fixes DD-1564 Implement Dataverse collection level commands in dd-dataverse-cli

Description of changes

  • /git/dans-core-systems/modules/dd-dataverse-cli > start.sh collection --help
    • Usage: dataverse collection [-hV] alias [COMMAND]
    • Manage Dataverse collections (i.e. 'dataverses')
      alias The alias of the dataverse collection (default: root)
    • -h, --help Show this help message and exit.
    • -V, --version Print version information and exit.
      Commands:
    • assign-role Assign a role to a user in a Dataverse collection.
    • create-dataset Create a dataset in a dataverse collection.
    • delete Delete a Dataverse collection.
    • get-contents Show contents of a dataverse collection.
    • import-dataset Import a JSON dataset into a dataverse collection.
    • is-metadata-blocks-root Determine if a dataverse collection inherits its
      metadata blocks from its parent.
    • list-metadata-blocks Get a list of metadata blocks defined on a
      dataverse collection.
    • list-roles Get a list of roles defined in a dataverse
      collection.
    • publish Publish a dataverse collection.
    • set-metadata-blocks-root Configure a dataverse collection to inherit its
      metadata blocks from its parent.
    • view Get the information of a Dataverse collection.

How to test

  • In terminal:
    • go to dd-dataverse-cli folder
    • run start-env.sh
    • run en test commands like:
      • start.sh collection --help
      • start.sh collection view
      • start.sh collection import-dataset -h
  • In vagrant ssh environment
    • run en test commands like:
      • [vagrant@archaeology ~]$ dataverse collection list-metadata-blocks | jq

Related PRs

(Add links)
*

Notify

@DANS-KNAW/core-systems

@aliassheikh aliassheikh requested a review from a team as a code owner June 14, 2024 15:00
@janvanmansum janvanmansum merged commit ed3e838 into DANS-KNAW:master Jun 18, 2024
2 checks passed
@aliassheikh aliassheikh deleted the DD-1564-collection-level-commands branch July 17, 2024 13:12
janvanmansum pushed a commit to janvanmansum/dd-dataverse-cli that referenced this pull request Sep 25, 2024
generic AbstractAssignmentRole
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