-
Notifications
You must be signed in to change notification settings - Fork 1
feature/admin-gitdrs #40
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,27 @@ | |||||
| ## Granting user access to a project | ||||||
|
|
||||||
| Once a project has been created you will have full access to it. | ||||||
| The project owner can add additional users to the project using the `g3t collaborator` commands. | ||||||
| The project owner can add additional users to the project using the `calypr_admin collaborators` commands. | ||||||
|
|
||||||
| ```bash | ||||||
| $ calypr_admin collaborators add --help | ||||||
| Usage: calypr_admin collaborators add [OPTIONS] USERNAME [RESOURCE_PATH] | ||||||
|
|
||||||
| Add user to project. | ||||||
|
|
||||||
| Options: | ||||||
| -w, --write / --no-write Give user write privileges [default: no- | ||||||
| write] | ||||||
| -a, --approve Approve the addition (privileged) | ||||||
| --dry-run Dry run | ||||||
| --debug Enable debug mode | ||||||
| --format [yaml|json|text] Result format. CALYPR_FORMAT [default: | ||||||
| yaml] | ||||||
| --project_id TEXT Gen3 program-project | ||||||
| --profile TEXT Connection name. CALYPR_PROFILE See | ||||||
| https://bit.ly/3NbKGi4 | ||||||
|
|
||||||
| ``` | ||||||
|
|
||||||
| There are two ways to request the addition additional users to the project: | ||||||
|
|
||||||
|
|
@@ -12,15 +32,15 @@ There are two ways to request the addition additional users to the project: | |||||
| To give another user full access to the project, run the following: | ||||||
|
|
||||||
| ```sh | ||||||
| g3t collaborator add --write user-can-write@example.com | ||||||
| calypr_admin collaborators add --write user-can-write@example.com | ||||||
| ``` | ||||||
|
|
||||||
| Alternatively, to give another user read access only (without the ability to upload to the project), run the following: | ||||||
| ```sh | ||||||
| g3t collaborator add user-read-only@example.com | ||||||
| calypr_admin collaborator add user-read-only@example.com | ||||||
|
||||||
| calypr_admin collaborator add user-read-only@example.com | |
| calypr_admin collaborators add user-read-only@example.com |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,7 @@ Note: This example uses the ohsu program, but the same process applies to all pr | |||||
|
|
||||||
| ```text | ||||||
| ## As an admin, I need to grant data steward privileges add the requester reader and updater role on a program to an un-privileged user | ||||||
| g3t collaborator add add data_steward_example@<institution>.edu --resource_path /programs/<program_name>/projects --steward | ||||||
| calypr_admin collaborator add add data_steward_example@<institution>.edu --resource_path /programs/<program_name>/projects --steward | ||||||
|
||||||
| calypr_admin collaborator add add data_steward_example@<institution>.edu --resource_path /programs/<program_name>/projects --steward | |
| calypr_admin collaborator add data_steward_example@<institution>.edu --resource_path /programs/<program_name>/projects --steward |
Copilot
AI
Dec 23, 2025
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.
The command uses collaborator (singular) but should use collaborators (plural) to be consistent with the update on line 43 in this file and with the naming convention used throughout the codebase.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,8 @@ title: Creating a Project | |
|
|
||
| ## CLI | ||
|
|
||
| `TODO - rewrite for git-drs` | ||
|
|
||
| ```bash | ||
| $ g3t init --help | ||
|
|
||
|
|
||
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.
The TODO marker format is inconsistent with other TODO markers in the codebase. Other TODO markers use the format
TODO - rewrite for git-drs(without the colon), while this one usesTODO: - rewrite for git-drs(with a colon). Remove the colon for consistency.