Skip to content

feat(experiment): create new scicat experiments with default keywords - #723

Merged
yoganandaness merged 1 commit into
developfrom
update-experiment
Sep 28, 2026
Merged

yoganandaness merged 1 commit into
developfrom
update-experiment

Conversation

@Junjiequan

Copy link
Copy Markdown
Contributor

Description

Set keywords on new SciCat experiments

New experiments created in SciCat by the connector now get keywords, configurable with SCICAT_NEW_EXPERIMENT_KEYWORDS (comma separated). When the variable is unset or empty, they get WF_01_00, which puts every new experiment into the ESS experiment data publication workflow.

  • Keywords are sent on create only. SciCat replaces the whole keyword list on update, so sending them on every User Office update would wipe the labels the workflow sets later (WF_01_01, …).
  • validateEnv.ts and sample.env document the new variable.

Tests

  • The configured keyword is set, and a comma-separated list is split and trimmed.
  • Falls back to WF_01_00 when the variable is unset or empty.
  • Update DTOs never include keywords.
  • The create-DTO snapshots now include keywords.

🤖 Generated with Claude Code

Motivation and Context

How Has This Been Tested

Fixes

Changes

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@yoganandaness
yoganandaness merged commit bd95628 into develop Sep 28, 2026
9 checks passed
@yoganandaness
yoganandaness deleted the update-experiment branch September 28, 2026 10:01
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.

3 participants