Skip to content

Don't allow datasets to be created from regex capture groups.#7668

Merged
labkey-klum merged 2 commits into
developfrom
fb_restrict_dataset_filewatcher
May 18, 2026
Merged

Don't allow datasets to be created from regex capture groups.#7668
labkey-klum merged 2 commits into
developfrom
fb_restrict_dataset_filewatcher

Conversation

@labkey-klum
Copy link
Copy Markdown
Contributor

Rationale

tracking issue : https://github.com/LabKey/internal-issues/issues/905

This change implements the desired behavior for the name or id capture groups for a dataset file watcher. In either case if the name or id can't be resolved to an existing dataset, we want to error out. Currently, the behavior is that a new dataset with a name of either the name or id value gets created.

This change is intended to bring the file watcher into alignment with the sample type file watcher.

@labkey-klum labkey-klum requested review from a team and labkey-danield and removed request for a team and labkey-danield May 15, 2026 17:03
Copy link
Copy Markdown
Contributor

@labkey-adam labkey-adam left a comment

Choose a reason for hiding this comment

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

Should we add a test?

@labkey-klum
Copy link
Copy Markdown
Contributor Author

@labkey-klum labkey-klum merged commit d5dfe44 into develop May 18, 2026
10 checks passed
@labkey-klum labkey-klum deleted the fb_restrict_dataset_filewatcher branch May 18, 2026 23:08
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.

2 participants