Skip to content

Delete participants automated test (plus other study related tests) #6732

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

Merged
merged 5 commits into from
Jun 11, 2025

Conversation

labkey-klum
Copy link
Contributor

@labkey-klum labkey-klum commented Jun 4, 2025

Rationale

Adding automation for recent feature or bug fixes:

@labkey-klum labkey-klum changed the title Automation for the delete participants feature Delete participants automated test (plus other study related tests) Jun 4, 2025
@labkey-klum labkey-klum marked this pull request as ready for review June 4, 2025 22:02
@labkey-klum labkey-klum requested review from labkey-bpatel, labkey-tchad and labkey-danield and removed request for labkey-bpatel June 4, 2025 22:03
Comment on lines 188 to 200
private void createDataset(Connection conn, String kindName, String datasetName, String folderName) throws Exception
{
CreateDomainCommand cmd = new CreateDomainCommand(kindName, datasetName);

cmd.getDomainDesign().setFields(List.of(
new FieldDefinition("Name", FieldDefinition.ColumnType.String),
new FieldDefinition("IntField", FieldDefinition.ColumnType.Integer),
new FieldDefinition("DoubleField", FieldDefinition.ColumnType.Double)
));
if ("Demographics".equalsIgnoreCase(datasetName))
cmd.setOptions(Map.of("demographics", true));
cmd.execute(conn, folderName);
}
Copy link
Member

Choose a reason for hiding this comment

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

Consider making a DomainProps subclass for datasets (similar to ListDefinition or SampleTypeDefinition)
Might be useful when we start adding new SDMS tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I was not aware of those classes. I'll take a look.

@labkey-klum labkey-klum merged commit 5123663 into develop Jun 11, 2025
7 checks passed
@labkey-klum labkey-klum deleted the fb_delete_participants_test branch June 11, 2025 17:57
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