Skip to content

Conversation

@sbliven
Copy link
Member

@sbliven sbliven commented Mar 25, 2025

Description

Adds a new 'switch' job action allowing logical control of the actions

Motivation

This is needed by PSI to support multiple archive systems as part of #1405

Fixes

Changes:

  • Add switch action

Tests included

  • Included for each change/fix?
  • Passing?

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

official documentation info

SciCatProject/documentation#68

@sbliven sbliven self-assigned this Mar 25, 2025
@sbliven sbliven added feature New feature Release Jobs Jobs migration labels Mar 25, 2025
@sbliven sbliven changed the title feat: 'switch' job action feat: switch job action Mar 25, 2025
@sbliven sbliven changed the title feat: switch job action feat: add 'switch' job action Mar 25, 2025
@sbliven
Copy link
Member Author

sbliven commented Mar 25, 2025

This is mostly done. Remaining items:

  • documentation
  • Resolve scope question (see Job Action: Switch #1658 )
  • Test handling of dataset properties when multiple datasets are present

sbliven added 7 commits April 14, 2025 18:56
- Change the HTTP error to be thrown before database operations.
- Add docstring
- Load creators via a moduleref at runtime
- Add test (previous version was copy-pasted)
- validate scope
Add tests for all case types
It is clearer to use separate keywords for these rather than relying
on parsing. It also allows matching non-string literals.
- Improve tests
- Support matching to multiple datasets as long as the property
  resolves to a single value
@sbliven sbliven marked this pull request as ready for review April 14, 2025 17:29
@sbliven sbliven requested a review from despadam April 14, 2025 18:14
@sbliven sbliven enabled auto-merge April 17, 2025 13:56
@sbliven sbliven merged commit 3a695de into SciCatProject:master Apr 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature Release Jobs Jobs migration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants