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

fix(start): validate endpoint parameters (#689) #689

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

mdonadoni
Copy link
Member

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jun 25, 2024
@mdonadoni mdonadoni force-pushed the parameters-start-workflow branch from 8c11e2d to a7cb1d7 Compare June 25, 2024 15:13
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.18%. Comparing base (fbf6ba1) to head (2199256).
Report is 1 commits behind head on maint-0.9.

Current head 2199256 differs from pull request most recent head 90fb451

Please upload reports for the commit 90fb451 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##           maint-0.9     #689      +/-   ##
=============================================
+ Coverage      59.46%   60.18%   +0.72%     
=============================================
  Files             32       32              
  Lines           3298     3320      +22     
=============================================
+ Hits            1961     1998      +37     
+ Misses          1337     1322      -15     
Files Coverage Δ
reana_server/rest/workflows.py 53.83% <100.00%> (+0.28%) ⬆️

... and 3 files with indirect coverage changes

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jun 26, 2024
@mdonadoni mdonadoni force-pushed the parameters-start-workflow branch from a7cb1d7 to 4df0591 Compare June 26, 2024 10:10
@mdonadoni mdonadoni marked this pull request as ready for review June 26, 2024 10:21
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 2, 2024
@mdonadoni mdonadoni force-pushed the parameters-start-workflow branch from 4df0591 to 2199256 Compare July 2, 2024 08:01
@mdonadoni mdonadoni changed the base branch from master to maint-0.9 July 2, 2024 08:01
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 2, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Jul 2, 2024
@mdonadoni mdonadoni force-pushed the parameters-start-workflow branch from 6d094a7 to 90fb451 Compare July 2, 2024 10:18
@@ -3198,15 +3198,19 @@
"schema": {
"properties": {
"input_parameters": {
"description": "Optional. Additional input parameters that override the ones in the workflow specification.",
Copy link
Member

Choose a reason for hiding this comment

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

Optional. Additional input parameters that override the ones from the workflow specification.

"type": "object"
},
"operational_options": {
"description": "Optional. Operational options for workflow execution.",
Copy link
Member

Choose a reason for hiding this comment

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

Optional. Additional operational options for workflow execution.

type: object
input_parameters:
description: >-
Copy link
Member

Choose a reason for hiding this comment

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

See description verbiage comments above.

@@ -56,15 +56,25 @@ check_commitlint () {
npx commitlint --from="$from" --to="$to"
found=0
while IFS= read -r line; do
if echo "$line" | grep -qP "\(\#$pr\)$"; then
commit_hash=$(echo "$line" | cut -d ' ' -f 1)
Copy link
Member

@tiborsimko tiborsimko Jul 3, 2024

Choose a reason for hiding this comment

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

Instead of the commit message saying in a negatively-worded tense:

ci(commitlint): do not check merge commit's ancestors 

What about putting a positively-worded message:

ci(commitlint): improve checking of merge commits

As we did in several other PRs such as merge-0.9-to-master ones?

@mdonadoni mdonadoni force-pushed the parameters-start-workflow branch from 90fb451 to 69f45fc Compare July 3, 2024 10:47
@mdonadoni mdonadoni merged commit 69f45fc into reanahub:maint-0.9 Jul 3, 2024
12 checks passed
@mdonadoni mdonadoni deleted the parameters-start-workflow branch July 3, 2024 13:34
tiborsimko added a commit to tiborsimko/reana-server that referenced this pull request Dec 4, 2024
chore(maint-0.9): release 0.9.4 (reanahub#666)
build(python): bump shared REANA packages as of 2024-11-28 (reanahub#714)
feat(ext): improve error message for db decryption error (reanahub#713)
feat(config): make ACCOUNTS_USERINFO_HEADERS customisable (reanahub#713)
feat(config): make APP_DEFAULT_SECURE_HEADERS customisable (reanahub#713)
feat(config): make PROXYFIX_CONFIG customisable (reanahub#713)
fix(config): do not set DEBUG programmatically (reanahub#713)
feat(config): support password-protected redis (reanahub#713)
fix(config): read secret key from env (reanahub#713)
chore(docker): pin setuptools 70 (reanahub#700)
fix(set_workflow_status): publish workflows to submission queue (reanahub#691)
ci(commitlint): improve checking of merge commits (reanahub#689)
fix(get_workflow_specification): avoid returning null parameters (reanahub#689)
fix(start): validate endpoint parameters (reanahub#689)
fix(reana-admin): respect service domain when cleaning sessions (reanahub#687)

Note: The merge commit removes the changes related to pinning
`setuptools` to version 70, because this was only necessary for the
`maint-0.9` branches, as well as other 0.9.4 release-related changes.
tiborsimko added a commit to tiborsimko/reana-server that referenced this pull request Dec 4, 2024
chore(maint-0.9): release 0.9.4 (reanahub#666)
build(python): bump shared REANA packages as of 2024-11-28 (reanahub#714)
feat(ext): improve error message for db decryption error (reanahub#713)
feat(config): make ACCOUNTS_USERINFO_HEADERS customisable (reanahub#713)
feat(config): make APP_DEFAULT_SECURE_HEADERS customisable (reanahub#713)
feat(config): make PROXYFIX_CONFIG customisable (reanahub#713)
fix(config): do not set DEBUG programmatically (reanahub#713)
feat(config): support password-protected redis (reanahub#713)
fix(config): read secret key from env (reanahub#713)
chore(docker): pin setuptools 70 (reanahub#700)
fix(set_workflow_status): publish workflows to submission queue (reanahub#691)
ci(commitlint): improve checking of merge commits (reanahub#689)
fix(get_workflow_specification): avoid returning null parameters (reanahub#689)
fix(start): validate endpoint parameters (reanahub#689)
fix(reana-admin): respect service domain when cleaning sessions (reanahub#687)

Note: The merge commit removes the changes related to pinning
`setuptools` to version 70, because this was only necessary for the
`maint-0.9` branches, as well as other 0.9.4 release-related changes.
tiborsimko added a commit to tiborsimko/reana-server that referenced this pull request Dec 4, 2024
chore(maint-0.9): release 0.9.4 (reanahub#666)
build(python): bump shared REANA packages as of 2024-11-28 (reanahub#714)
feat(ext): improve error message for db decryption error (reanahub#713)
feat(config): make ACCOUNTS_USERINFO_HEADERS customisable (reanahub#713)
feat(config): make APP_DEFAULT_SECURE_HEADERS customisable (reanahub#713)
feat(config): make PROXYFIX_CONFIG customisable (reanahub#713)
fix(config): do not set DEBUG programmatically (reanahub#713)
feat(config): support password-protected redis (reanahub#713)
fix(config): read secret key from env (reanahub#713)
chore(docker): pin setuptools 70 (reanahub#700)
fix(set_workflow_status): publish workflows to submission queue (reanahub#691)
ci(commitlint): improve checking of merge commits (reanahub#689)
fix(get_workflow_specification): avoid returning null parameters (reanahub#689)
fix(start): validate endpoint parameters (reanahub#689)
fix(reana-admin): respect service domain when cleaning sessions (reanahub#687)

Note: The merge commit removes the changes related to pinning
`setuptools` to version 70, because this was only necessary for the
`maint-0.9` branches, as well as other 0.9.4 release-related 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
Development

Successfully merging this pull request may close these issues.

reana-client download fails for workflows with files as None is not of type 'object'
2 participants