-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
JSONObject configuration = descriptor.getJSONObject("configuration"); | ||
descriptor.put("type", "correlation"); | ||
|
||
configuration.put("data1", configuration.getJSONObject("collectionVariable")); |
There was a problem hiding this comment.
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>
}
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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")); |
There was a problem hiding this comment.
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.
Overview