-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* debug container update * placeholders support * optional fieldErrors * cleanup * show errors in NodeRow * extract findParamDefinitonByName * replace aggregator & aggregateBy with row with editors * refactor & test fix * fixed ace editor tabindex * groupBy cleanup * fixed record parse * cleanup * fixed types error * minor things * json editor settings sync with aceWrapper * test tweak * test tweak * Updated snapshots (#6834) Co-authored-by: JulianWielga <[email protected]> * minor types fixes * fields labels * required fields * presets fixed * sort type options * review fixes * test fixes * add cypress test * Updated snapshots (#7100) Co-authored-by: JulianWielga <[email protected]> * trigger build * Updated snapshots (#7105) Co-authored-by: JulianWielga <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: JulianWielga <[email protected]> Co-authored-by: JulianWielga <[email protected]>
- Loading branch information
1 parent
0787421
commit 84657ca
Showing
59 changed files
with
1,749 additions
and
163 deletions.
There are no files selected for viewing
Binary file added
BIN
+13.6 KB
...ctron/Linux/Aggregations should display updated UI for aggregate-session #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...ctron/Linux/Aggregations should display updated UI for aggregate-sliding #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...tron/Linux/Aggregations should display updated UI for aggregate-tumbling #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+114 Bytes
(100%)
...nux/Expression suggester should display colorfull and sorted completions #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+129 Bytes
(100%)
...nux/Expression suggester should display colorfull and sorted completions #1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+166 Bytes
(100%)
...Expression suggester should display completions for second line (bugfix) #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-730 Bytes
(89%)
...age_snapshots__/electron/Linux/JSON editor should display colorfull json #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-753 Bytes
(94%)
...age_snapshots__/electron/Linux/JSON editor should display colorfull json #1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.6 KB
...ctron/Linux/aggregations should display updated UI for aggregate-session #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...ctron/Linux/aggregations should display updated UI for aggregate-sliding #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...tron/Linux/aggregations should display updated UI for aggregate-tumbling #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
describe("Aggregations", () => { | ||
const seed = "aggregations"; | ||
|
||
before(() => { | ||
cy.deleteAllTestProcesses({ | ||
filter: seed, | ||
force: true, | ||
}); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteAllTestProcesses({ filter: seed }); | ||
}); | ||
|
||
["aggregate-sliding", "aggregate-tumbling", "aggregate-session"].forEach((component) => { | ||
it(`should display updated UI for ${component}`, () => { | ||
cy.visitNewProcess(seed, "aggregations", "Default"); | ||
cy.getNode(component).dblclick(); | ||
cy.get("[data-testid=window]").should("be.visible"); | ||
cy.get("[title='Aggregations']") | ||
.parent() | ||
.should("be.visible") | ||
.matchImage({ | ||
screenshotConfig: { | ||
padding: [80, 10, 10, 10], | ||
}, | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
{ | ||
"metaData": { | ||
"id": "test", | ||
"additionalFields": { | ||
"description": null, | ||
"properties": { | ||
"parallelism": "1", | ||
"spillStateToDisk": "true", | ||
"useAsyncInterpretation": "", | ||
"checkpointIntervalInSeconds": "" | ||
}, | ||
"metaDataType": "StreamMetaData", | ||
"showDescription": false | ||
} | ||
}, | ||
"nodes": [ | ||
{ | ||
"id": "periodic", | ||
"ref": { | ||
"typ": "periodic", | ||
"parameters": [ | ||
{ | ||
"name": "period", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(java.time.Duration).parse('PT1M')" | ||
} | ||
}, | ||
{ | ||
"name": "count", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "1" | ||
} | ||
}, | ||
{ | ||
"name": "value", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "1" | ||
} | ||
} | ||
] | ||
}, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 360, | ||
"y": 0 | ||
} | ||
}, | ||
"type": "Source" | ||
}, | ||
{ | ||
"nexts": [ | ||
[ | ||
{ | ||
"id": "aggregate-session", | ||
"outputVar": "outputVar", | ||
"nodeType": "aggregate-session", | ||
"parameters": [ | ||
{ | ||
"name": "groupBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{ #input.floatValue }.toString" | ||
} | ||
}, | ||
{ | ||
"name": "aggregator", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "#AGG.map({\n count: #AGG.sum\n})" | ||
} | ||
}, | ||
{ | ||
"name": "aggregateBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{\n count: 1\n}" | ||
} | ||
}, | ||
{ | ||
"name": "endSessionCondition", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "true" | ||
} | ||
}, | ||
{ | ||
"name": "sessionTimeout", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(java.time.Duration).parse('PT1H')" | ||
} | ||
}, | ||
{ | ||
"name": "emitWhen", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(pl.touk.nussknacker.engine.flink.util.transformer.aggregate.SessionWindowTrigger).OnEvent" | ||
} | ||
} | ||
], | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 720, | ||
"y": 360 | ||
} | ||
}, | ||
"type": "CustomNode" | ||
}, | ||
{ | ||
"id": "dead-end", | ||
"ref": { | ||
"typ": "dead-end", | ||
"parameters": [] | ||
}, | ||
"endResult": null, | ||
"isDisabled": null, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 720, | ||
"y": 540 | ||
} | ||
}, | ||
"type": "Sink" | ||
} | ||
], | ||
[ | ||
{ | ||
"id": "aggregate-sliding", | ||
"outputVar": "outputVar", | ||
"nodeType": "aggregate-sliding", | ||
"parameters": [ | ||
{ | ||
"name": "groupBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{ #input.longValue }.toString" | ||
} | ||
}, | ||
{ | ||
"name": "aggregator", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "#AGG.map({\n count: #AGG.sum\n})" | ||
} | ||
}, | ||
{ | ||
"name": "aggregateBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{\n count: 1\n}" | ||
} | ||
}, | ||
{ | ||
"name": "windowLength", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(java.time.Duration).parse('PT1H')" | ||
} | ||
}, | ||
{ | ||
"name": "emitWhenEventLeft", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "false" | ||
} | ||
} | ||
], | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 0, | ||
"y": 360 | ||
} | ||
}, | ||
"type": "CustomNode" | ||
}, | ||
{ | ||
"id": "dead-end 1", | ||
"ref": { | ||
"typ": "dead-end", | ||
"parameters": [] | ||
}, | ||
"endResult": null, | ||
"isDisabled": null, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 0, | ||
"y": 540 | ||
} | ||
}, | ||
"type": "Sink" | ||
} | ||
], | ||
[ | ||
{ | ||
"id": "aggregate-tumbling", | ||
"outputVar": "outputVar", | ||
"nodeType": "aggregate-tumbling", | ||
"parameters": [ | ||
{ | ||
"name": "groupBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{ #input.longValue }.toString" | ||
} | ||
}, | ||
{ | ||
"name": "aggregator", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "#AGG.map({\n count: #AGG.sum\n})" | ||
} | ||
}, | ||
{ | ||
"name": "aggregateBy", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "{\n count: 1\n}" | ||
} | ||
}, | ||
{ | ||
"name": "windowLength", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(java.time.Duration).parse('PT1H')" | ||
} | ||
}, | ||
{ | ||
"name": "emitWhen", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "T(pl.touk.nussknacker.engine.flink.util.transformer.aggregate.TumblingWindowTrigger).OnEvent" | ||
} | ||
} | ||
], | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 360, | ||
"y": 360 | ||
} | ||
}, | ||
"type": "CustomNode" | ||
}, | ||
{ | ||
"id": "dead-end 2", | ||
"ref": { | ||
"typ": "dead-end", | ||
"parameters": [] | ||
}, | ||
"endResult": null, | ||
"isDisabled": null, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 360, | ||
"y": 540 | ||
} | ||
}, | ||
"type": "Sink" | ||
} | ||
] | ||
], | ||
"id": "split", | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 360, | ||
"y": 180 | ||
} | ||
}, | ||
"type": "Split" | ||
} | ||
], | ||
"additionalBranches": [] | ||
} |
Oops, something went wrong.