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

utils: add permission error for getting workflows #216

Merged

Conversation

DaanRosendal
Copy link
Member

@DaanRosendal DaanRosendal commented Dec 15, 2023

@DaanRosendal DaanRosendal force-pushed the feature/shared-workflow-details branch from 142a09a to 91c557a Compare December 15, 2023 11:15
@DaanRosendal DaanRosendal force-pushed the feature/shared-workflow-details branch 5 times, most recently from 6c9ec6c to 0a7888a Compare March 14, 2024 13:20
DaanRosendal added a commit to DaanRosendal/reana-db that referenced this pull request Mar 14, 2024
Adds a table and an enum to the database. The `user_workflow` table
makes it possible to verify whether a specific workflow has been shared
with a user. The `accesstype` enum defines the different access types
that can be granted to a user. For now, only `read` access is supported.

Closes reanahub#206
DaanRosendal added a commit to DaanRosendal/reana-db that referenced this pull request Mar 14, 2024
Adds new `include_shared_workflows` parameter to optionally retrieve
unowned workflows that are shared with the user.

Closes reanahub/reana-client#687
@DaanRosendal DaanRosendal force-pushed the feature/shared-workflow-details branch from 0a7888a to d0793d9 Compare March 14, 2024 13:54
DaanRosendal added a commit to DaanRosendal/reana-db that referenced this pull request Mar 18, 2024
Adds a table and an enum to the database. The `user_workflow` table
makes it possible to verify whether a specific workflow has been shared
with a user. The `accesstype` enum defines the different access types
that can be granted to a user. For now, only `read` access is supported.

Closes reanahub#206
DaanRosendal added a commit to DaanRosendal/reana-db that referenced this pull request Mar 18, 2024
Adds new `include_shared_workflows` parameter to optionally retrieve
unowned workflows that are shared with the user.

Closes reanahub/reana-client#687
@DaanRosendal DaanRosendal force-pushed the feature/shared-workflow-details branch from d0793d9 to a5726ff Compare March 18, 2024 10:48
@mdonadoni mdonadoni force-pushed the feature/shared-workflow-details branch from a5726ff to c5b70c7 Compare August 20, 2024 12:26
mdonadoni pushed a commit to DaanRosendal/reana-db that referenced this pull request Aug 20, 2024
Adds a table and an enum to the database. The `user_workflow` table
makes it possible to verify whether a specific workflow has been shared
with a user. The `accesstype` enum defines the different access types
that can be granted to a user. For now, only `read` access is supported.

Closes reanahub#206
mdonadoni pushed a commit to DaanRosendal/reana-db that referenced this pull request Aug 20, 2024
Adds new `include_shared_workflows` parameter to optionally retrieve
unowned workflows that are shared with the user.

Closes reanahub/reana-client#687
@mdonadoni
Copy link
Member

mdonadoni commented Aug 20, 2024

Latest version before rebase is a5726ff

Two things left:

mdonadoni pushed a commit to DaanRosendal/reana-db that referenced this pull request Aug 20, 2024
Adds a table and an enum to the database. The `user_workflow` table
makes it possible to verify whether a specific workflow has been shared
with a user. The `accesstype` enum defines the different access types
that can be granted to a user. For now, only `read` access is supported.

Closes reanahub#206
mdonadoni pushed a commit to DaanRosendal/reana-db that referenced this pull request Aug 20, 2024
Adds new `include_shared_workflows` parameter to optionally retrieve
unowned workflows that are shared with the user.

Closes reanahub/reana-client#687
@mdonadoni mdonadoni force-pushed the feature/shared-workflow-details branch from c5b70c7 to bbbe345 Compare August 20, 2024 12:42
Adds a table and an enum to the database. The `user_workflow` table
makes it possible to verify whether a specific workflow has been shared
with a user. The `accesstype` enum defines the different access types
that can be granted to a user. For now, only `read` access is supported.

Closes reanahub#206
Adds new `include_shared_workflows` parameter to optionally retrieve
unowned workflows that are shared with the user.

Closes reanahub/reana-client#687
@mdonadoni mdonadoni force-pushed the feature/shared-workflow-details branch from bbbe345 to 3b73082 Compare August 29, 2024 09:32
@mdonadoni
Copy link
Member

Ready to be reviewed, squashed and merged

@tiborsimko tiborsimko force-pushed the feature/shared-workflow-details branch from 3b73082 to 0f3c091 Compare September 4, 2024 16:00
@tiborsimko
Copy link
Member

Should we revert the last commit that adds PermissionError?

Agreed, I'll remove it for now before merging. (Kept local copy just in case.)

Copy link
Member

@tiborsimko tiborsimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely 👍 with

- r-client #692
- r-client-go #153
- r-ui #375
- r-server #658
- r-workflow-controller #552
- r-commons #429
- r-db #216

Removed the PermissionError commit and kept it locally.

@tiborsimko tiborsimko merged commit 05a34ba into reanahub:master Sep 4, 2024
13 checks passed
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 68.29268% with 13 lines in your changes missing coverage. Please review.

Project coverage is 73.76%. Comparing base (5b41246) to head (05a34ba).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
reana_db/utils.py 52.17% 11 Missing ⚠️
reana_db/models.py 94.11% 1 Missing ⚠️
reana_db/version.py 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
+ Coverage   73.31%   73.76%   +0.45%     
==========================================
  Files           7        7              
  Lines         918      930      +12     
==========================================
+ Hits          673      686      +13     
+ Misses        245      244       -1     
Files with missing lines Coverage Δ
reana_db/models.py 90.38% <94.11%> (+0.02%) ⬆️
reana_db/version.py 0.00% <0.00%> (ø)
reana_db/utils.py 75.94% <52.17%> (-0.35%) ⬇️

... and 4 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants