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

Add correlation refactor migration plugin #89

Merged
merged 4 commits into from
Apr 26, 2024
Merged

Conversation

dmgaldi
Copy link
Contributor

@dmgaldi dmgaldi commented Apr 23, 2024

Overview

@dmgaldi dmgaldi requested a review from ryanrdoherty April 23, 2024 18:41
@dmgaldi dmgaldi self-assigned this Apr 23, 2024
JSONObject configuration = descriptor.getJSONObject("configuration");
descriptor.put("type", "correlation");

configuration.put("data1", configuration.getJSONObject("collectionVariable"));
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't match Danielle's description. Should be

data1: {
    dataType: "collection",
    collectionSpec: <the value previously in collectionVariable>
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Careless mistake :( thanks!

descriptor.put("type", "correlation");

configuration.put("data1", configuration.getJSONObject("collectionVariable1"));
configuration.getJSONObject("data1").put("dataType", "collection");
Copy link
Member

Choose a reason for hiding this comment

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

Same problem as above. The collection spec needs to be nested a layer down in "collectionSpec" under "data1"

configuration.getJSONObject("data1").put("dataType", "collection");
configuration.remove("collectionVariable1");

configuration.put("data2", configuration.getJSONObject("collectionVariable2"));
Copy link
Member

Choose a reason for hiding this comment

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

Same issue. Needs "collectionSpec" subprop.

@dmgaldi dmgaldi requested a review from ryanrdoherty April 25, 2024 21:42
@dmgaldi dmgaldi merged commit f3f30ee into master Apr 26, 2024
1 check passed
@dmgaldi dmgaldi deleted the correlation-migration branch April 26, 2024 15:19
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.

migrate saved analyses for correlations api update
2 participants