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

Release 1.17 -> staging merge #6889

Merged
merged 91 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
1dfa1d4
unOptimizedEvaluator in ProcessValidator
wrzontek Aug 27, 2024
0c70b0e
flinkMetricsDeferredReporter release fixup
raphaelsolarski Aug 27, 2024
1ccc57a
fixup to javadoc error:
raphaelsolarski Aug 28, 2024
6138a86
Setting version to 1.17.0-RC1
Aug 28, 2024
a98eacd
Setting version to 1.17.0-SNAPSHOT
Aug 28, 2024
3f4c710
NU-1785 fix input style in the Generated dialog
Dzuming Aug 30, 2024
7affb17
Revert "NU-1785 fix input style in the Generated dialog"
Dzuming Aug 30, 2024
6a09196
NU-1784 fix unhandled error when open survey
Dzuming Aug 30, 2024
6927ef7
[Nu-1744] Remove encryptionEnabled flag as logstash is ready (#6671)
ForrestFairy Aug 29, 2024
5244673
[Nu-1785] fix input style in the generated dialog (#6698)
Dzuming Sep 2, 2024
bb82d34
[Nu-1792] properties save fix when fragment is in different group tha…
Dzuming Sep 3, 2024
230c540
NU-1794 fix problem with a property fields update
Dzuming Sep 3, 2024
04c1ce3
flaky test fix next attempt
Dzuming Sep 4, 2024
5b10a3e
[NU-1752] Broken links for 1.17 (#6738)
ForrestFairy Sep 5, 2024
6b9ec28
flaky test fix next attempt
Dzuming Sep 5, 2024
15287a9
Updated snapshots
Dzuming Sep 5, 2024
8286585
Merge pull request #6762 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 5, 2024
78e823a
Determine dictionary parameter editor language when no default value …
Elmacioro Aug 28, 2024
2fcced3
flaky test fix next attempt
Dzuming Sep 5, 2024
4cfdb59
Merge remote-tracking branch 'origin/flaky-test-fix-next-attempt' int…
Dzuming Sep 5, 2024
394fca0
flaky test fix next attempt
Dzuming Sep 5, 2024
e330f0c
Cypress tests pipeline fixup for pipelines without pull requests
raphaelsolarski Sep 5, 2024
74022fa
collapsed panels fixed
JulianWielga Sep 2, 2024
8d0e954
next attempt
Dzuming Sep 6, 2024
c640e4e
Updated snapshots
Dzuming Sep 6, 2024
795437d
Merge pull request #6767 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 6, 2024
18c0791
Merge branch 'release/1.17' into flaky-test-fix-next-attempt
Dzuming Sep 6, 2024
162631b
Updated snapshots
Dzuming Sep 6, 2024
9980e64
Merge pull request #6788 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 6, 2024
218a572
Revert "Cypress tests pipeline fixup for pipelines without pull reque…
raphaelsolarski Sep 6, 2024
1b2e4e3
axios security update (#6699)
Dzuming Sep 6, 2024
a142c76
Added docsUrl to PropertiesConfig (#6578) (#6744)
Diamekod0221 Sep 6, 2024
82ac509
changelog improvements (#6794)
mk-software-pl Sep 6, 2024
a0321b1
next try
Dzuming Sep 6, 2024
d901134
next try
Dzuming Sep 6, 2024
bd28e4a
Links fixed in examples/installation/designer/application-customizati…
raphaelsolarski Sep 6, 2024
7e51355
Updated snapshots
Dzuming Sep 6, 2024
afd21f2
Merge pull request #6802 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 6, 2024
a1dd0c8
fix (#6806)
mk-software-pl Sep 6, 2024
b4449f5
Merge branch 'release/1.17' into flaky-test-fix-next-attempt
Dzuming Sep 6, 2024
86343b3
next try
Dzuming Sep 6, 2024
2b16558
Merge remote-tracking branch 'origin/flaky-test-fix-next-attempt' int…
Dzuming Sep 6, 2024
a8fed3a
next try
Dzuming Sep 9, 2024
3de0f38
Updated snapshots
Dzuming Sep 9, 2024
683b022
Merge pull request #6811 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 9, 2024
fa5efc5
Performance improvement: GenericData created once + removed not used …
arkadius Sep 9, 2024
9785a7e
Performance improvement: Optimize serializer creation in UniversalSch…
lciolecki Sep 9, 2024
364fded
next try
Dzuming Sep 9, 2024
4b56bf2
next try
Dzuming Sep 9, 2024
7f3f1e4
Updated snapshots
Dzuming Sep 9, 2024
93dbb5b
Setting version to 1.17.0-RC2
Sep 9, 2024
173206e
Merge pull request #6814 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 9, 2024
6f7fe0b
Updated snapshots
Dzuming Sep 9, 2024
f02a5c3
Merge pull request #6819 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 9, 2024
51af897
Setting version to 1.17.0-SNAPSHOT
Sep 9, 2024
a8f5484
NU-1804 TimeRangeComponent border issue
Dzuming Sep 10, 2024
492fc16
Expose NuThemeProvider using module federation mechanism
bartektartanus Sep 11, 2024
4b9741f
Docs links fixed for fragment output and decision table
raphaelsolarski Sep 11, 2024
3f2b272
Move Validation setting to the bottom in Fragment Input Definition view
bartektartanus Sep 12, 2024
33a2e76
Weaker typing for input parameters in open api enrichers (#6850)
vder Sep 12, 2024
9458229
Updated snapshots
raphaelsolarski Sep 12, 2024
e65dfd5
NU 1.17.0 changelog/migration guide release dates fixed
raphaelsolarski Sep 12, 2024
326125a
Setting version to 1.17.0
Sep 12, 2024
5016d52
Setting version to 1.17.1-SNAPSHOT
Sep 12, 2024
f97d3a5
Windows update (#6763)
JulianWielga Sep 16, 2024
a68eb8a
Merge remote-tracking branch 'origin/release/1.17' into release1.7-st…
arkadius Sep 17, 2024
0aa6bf4
Faster avro nulls (backport of #6881 to 1.17) (#6883)
piotrp Sep 17, 2024
2f157df
Merge remote-tracking branch 'origin/release/1.17' into release1.17-t…
arkadius Sep 17, 2024
b3a70b3
changelog indention fix after merge
arkadius Sep 17, 2024
ad220c6
[CI] Attempting update of pull request error fix attempt
arkadius Sep 17, 2024
7c06df6
Merge remote-tracking branch 'refs/remotes/origin/release/1.17' into …
Dzuming Sep 18, 2024
16b29ee
update changelog
Dzuming Sep 18, 2024
46d8274
Merge branch 'refs/heads/release/1.17' into flaky-test-fix-next-attempt
Dzuming Sep 18, 2024
4fcd8f0
Merge pull request #6877 from TouK/windows-update
Dzuming Sep 18, 2024
15c910a
Merge branch 'refs/heads/release/1.17' into flaky-test-fix-next-attempt
Dzuming Sep 18, 2024
fa073d6
revert viewport
Dzuming Sep 18, 2024
6a517f9
viewport
Dzuming Sep 18, 2024
50c1312
Updated snapshots
Dzuming Sep 18, 2024
218bb3e
Merge pull request #6900 from TouK/snapshots-patch/flaky-test-fix-nex…
Dzuming Sep 18, 2024
af8f5bc
Move Validation setting to the bottom in Fragment Input Definition vi…
bartektartanus Sep 18, 2024
8cf2c10
Updated snapshots
arkadius Sep 18, 2024
d864ab1
Merge pull request #6902 from TouK/snapshots-patch/move-validation-to…
arkadius Sep 18, 2024
0aa4201
Merge pull request #6756 from TouK/flaky-test-fix-next-attempt
Dzuming Sep 18, 2024
6baa486
Merge branch 'refs/heads/release/1.17' into move-validation-to-bottom…
Dzuming Sep 18, 2024
757b0ab
Merge pull request #6901 from TouK/move-validation-to-bottom-fix-rele…
arkadius Sep 18, 2024
868aa00
Merge remote-tracking branch 'origin/release/1.17' into release1.17-t…
arkadius Sep 18, 2024
6aa18f8
Merge remote-tracking branch 'origin/staging' into release1.17-to-sta…
arkadius Sep 18, 2024
ba51750
Updated snapshots
arkadius Sep 18, 2024
794f5d9
Merge pull request #6890 from TouK/snapshots-patch/release1.17-to-sta…
arkadius Sep 18, 2024
8c70bed
Updated snapshots
arkadius Sep 18, 2024
9d36b31
Merge pull request #6905 from TouK/snapshots-patch/release1.17-to-sta…
Dzuming Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ jobs:
if-no-files-found: ignore
- name: Create Pull Request
id: update_snapshots
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
if: always() && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
env:
HASH: ${{ format('#{0}', github.event.number) }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
openapi: "3.0.0"
info:
title: Simple API overview
version: 2.0.0
paths:
/customer:
post:
summary: Returns ComponentsBykeys.
requestBody:
description:
Keys of the Customers.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MultiKeys'
responses:
'201':
description:
OK
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'

components:
schemas:
MultiKeys:
type: array
minItems: 1
items:
type: object
properties:
primaryKey:
type: string
additionalKey:
type: string
validFor:
type: integer
format: int64
minimum: 1
maximum: 2592000
required:
- primaryKey
- additionalKey
Customer:
type: object
properties:
name:
type: string
category:
type: string
id:
type: integer
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import pl.touk.nussknacker.engine.api.typed.TypedMap
import pl.touk.nussknacker.engine.build.ScenarioBuilder
import pl.touk.nussknacker.engine.flink.test.FlinkSpec
import pl.touk.nussknacker.engine.graph.expression.Expression
import pl.touk.nussknacker.engine.spel
import pl.touk.nussknacker.engine.util.test.{ClassBasedTestScenarioRunner, RunResult, TestScenarioRunner}
import pl.touk.nussknacker.openapi.enrichers.SwaggerEnricher
import pl.touk.nussknacker.openapi.parser.SwaggerParser
Expand Down Expand Up @@ -53,6 +54,11 @@ class OpenApiScenarioIntegrationTest
test(prepareScenarioRunner(port, sttpBackend, _.copy(allowedMethods = List("POST"))))
}

def withRequestBody(sttpBackend: SttpBackend[Future, Any])(test: ClassBasedTestScenarioRunner => Any) =
new StubService("/enrichers-with-optional-fields.yaml").withCustomerService { port =>
test(prepareScenarioRunner(port, sttpBackend, _.copy(allowedMethods = List("POST"))))
}

val stubbedBackend: SttpBackendStub[Future, Any] = SttpBackendStub.asynchronousFuture.whenRequestMatchesPartial {
case request =>
request.headers match {
Expand Down Expand Up @@ -93,6 +99,21 @@ class OpenApiScenarioIntegrationTest
)
}

it should "call enricher with request body" in withRequestBody(stubbedBackend) { testScenarioRunner =>
// given
val data = List("10")
val scenario =
scenarioWithEnricher((SingleBodyParameter.name, """{{additionalKey:"sss", primaryKey:"dfgdf"}}""".spel))

// when
val result = testScenarioRunner.runWithData(scenario, data)

// then
result.validValue shouldBe RunResult.success(
TypedMap(Map("name" -> "Robert Wright", "id" -> 10L, "category" -> "GOLD"))
)
}

it should "call enricher returning string" in withPrimitiveReturnType(
SttpBackendStub.asynchronousFuture.whenRequestMatchesPartial { case _ =>
Response.ok((s""""justAString""""))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object ParametersExtractor {
ParameterWithBodyFlag(
Parameter(
ParameterName(propertyName),
swaggerType.typingResult,
SwaggerTyped.typingResult(swaggerType, resolveListOfObjects = false),
editor = swaggerType.editorOpt,
validators = List.empty,
defaultValue = None,
Expand Down
7 changes: 2 additions & 5 deletions defaultModel/src/main/resources/defaultModelConfig.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@
split: {
docsUrl: ${baseDocsUrl}"BasicNodes#split"
}
input {
builtin-input {
docsUrl: ${baseDocsUrl}"Fragments#inputs"
}
fragmentInputDefinition {
docsUrl: ${baseDocsUrl}"Fragments#inputs"
}
fragmentOutputDefinition {
builtin-output {
docsUrl: ${baseDocsUrl}"Fragments#outputs"
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions designer/client/cypress/e2e/counts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ describe("Counts", () => {
});

it("should be available via button and modal", () => {
// There is no other way to make this test works as expected since we cannot mock dynamic date here,
// and blackout or response mock has a little no sense in this case
const maxDiffThreshold = 0.02;
cy.viewport("macbook-15");

// Collapse toolbar to make counts button visible
Expand All @@ -20,7 +23,7 @@ describe("Counts", () => {

cy.get("[data-testid=window]").contains("Quick ranges").should("be.visible");
cy.contains(/^latest deploy$/i).should("not.exist");
cy.get("[data-testid=window]").matchImage();
cy.get("[data-testid=window]").matchImage({ maxDiffThreshold });
cy.get("[data-testid=window]")
.contains(/^cancel$/i)
.click();
Expand All @@ -29,7 +32,7 @@ describe("Counts", () => {
cy.get("@button").click();
cy.get("[data-testid=window]").contains("Quick ranges").should("be.visible");
cy.contains(/^latest deploy$/i).should("be.visible");
cy.get("[data-testid=window]").matchImage();
cy.get("[data-testid=window]").matchImage({ maxDiffThreshold });
cy.get("[data-testid=window]")
.contains(/^cancel$/i)
.click();
Expand All @@ -44,7 +47,7 @@ describe("Counts", () => {
cy.contains(/^previous deployments...$/i)
.should("be.visible")
.click();
cy.get("[data-testid=window]").matchImage();
cy.get("[data-testid=window]").matchImage({ maxDiffThreshold });
cy.get("[data-testid=window]").contains("no refresh").should("be.visible");
cy.get("[data-testid=window]").contains("Latest deploy").click();
cy.get("[data-testid=window]").contains("10 seconds").should("be.visible");
Expand Down
13 changes: 7 additions & 6 deletions designer/client/cypress/e2e/fragment.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("Fragment", () => {
});

beforeEach(() => {
cy.viewport(1440, 1200);
cy.viewport("macbook-16");
});

it("should allow adding input parameters and display used fragment graph in modal", () => {
Expand Down Expand Up @@ -424,12 +424,13 @@ describe("Fragment", () => {
},
force: true,
});

cy.viewport("macbook-16");
cy.layoutScenario();

cy.get("@sendSms")
.parent()
.matchImage({
maxmaxDiffThreshold: 0.015,
screenshotConfig: { padding: 16 } });
cy.get('[joint-selector="layers"]').matchImage({
maxmaxDiffThreshold: 0.015,
screenshotConfig: { padding: 16 },
});
});
});
5 changes: 0 additions & 5 deletions designer/client/cypress/support/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ const mockWindowDate = () => {
// let originalDate: DateConstructor;

cy.on("window:before:load", (win) => {
// originalDate = win.Date;
Object.assign(win, { Date: FakeDate });
});

// cy.on("window:before:unload", (win) => {
// Object.assign(win, { Date: originalDate });
// });
};

Cypress.Commands.add("mockWindowDate", mockWindowDate);
Expand Down
14 changes: 7 additions & 7 deletions designer/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion designer/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@touk/federated-component": "1.0.0",
"@touk/window-manager": "1.9.0",
"ace-builds": "1.34.2",
"axios": "1.7.4",
"axios": "1.7.5",
"d3-transition": "3.0.1",
"d3-zoom": "3.0.0",
"dagre": "0.8.5",
Expand Down
8 changes: 7 additions & 1 deletion designer/client/src/components/modals/SaveProcessDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ import { displayCurrentProcessVersion, displayProcessActivity, loadProcessToolba
import { PromptContent } from "../../windowManager";
import { CommentInput } from "../comment/CommentInput";
import { ThunkAction } from "../../actions/reduxTypes";
import { getScenarioGraph, getProcessName, getProcessUnsavedNewName, isProcessRenamed, getScenarioLabels } from "../../reducers/selectors/graph";
import {
getScenarioGraph,
getProcessName,
getProcessUnsavedNewName,
isProcessRenamed,
getScenarioLabels,
} from "../../reducers/selectors/graph";
import HttpService from "../../http/HttpService";
import { ActionCreators as UndoActionCreators } from "redux-undo";
import { visualizationUrl } from "../../common/VisualizationUrl";
Expand Down
16 changes: 8 additions & 8 deletions designer/submodules/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion designer/submodules/packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mui/material": "5.15.7",
"@mui/x-data-grid": "6.18.5",
"@types/chance": "1.1.3",
"axios": "1.7.4",
"axios": "1.7.5",
"chance": "1.1.8",
"copy-to-clipboard": "3.3.1",
"history": "5.3.0",
Expand Down
13 changes: 12 additions & 1 deletion docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@

(Not available yet)

### 1.17.0 (Not released yet)
### 1.17.1 (Not released yet)

* [#6880](https://github.com/TouK/nussknacker/pull/6880) Performance optimization of generating Avro messages with unions
- shorter message in logs

* [#6877](https://github.com/TouK/nussknacker/pull/6877) Fix application crash on edit node details window open

### 1.17.0 (12 September 2024)

* [#6658](https://github.com/TouK/nussknacker/pull/6658) Bump up circe-yaml lib to 0.15.2
* [#6398](https://github.com/TouK/nussknacker/pull/6398) Added possibility to define hint texts for scenario properties in config.
Expand Down Expand Up @@ -125,6 +132,10 @@
* From now on it is possible to pass an array as a parameter of type List - e.g. `T(java.lang.String).join(',', #array)`.
* Fix result type of projection (`.!`) - e.g. `#array.![#this]` returns a type array instead of a type List.
* [#6685](https://github.com/TouK/nussknacker/pull/6685) Fixed an issue with dictionary parameter editor language being set to spel when no default value was present.
* [#6797](https://github.com/TouK/nussknacker/pull/6797) [#6815](https://github.com/TouK/nussknacker/pull/6815) Performance optimization of Avro processing
* [#6578](https://github.com/TouK/nussknacker/pull/6578) Introduced support for displaying a docsUrl with an icon in scenario properties. This feature is based on the processingType and is configurable via the model.conf file.
* [#6725](https://github.com/TouK/nussknacker/pull/6725) Resolved an issue where properties were not saving when a fragment was in a different group than other fragments.
* [#6697](https://github.com/TouK/nussknacker/pull/6697) Fix unhandled error when open survey

## 1.16

Expand Down
6 changes: 5 additions & 1 deletion docs/MigrationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To see the biggest differences please consult the [changelog](Changelog.md).
are registered based on class of Serializer instead of instance of Serializer. If you have values that were
serialized by these Serializers in some state, the state won't be restored after upgrade.

## In version 1.17.0 (Not released yet)
## In version 1.17.0

### Code API changes

Expand Down Expand Up @@ -112,6 +112,10 @@ To see the biggest differences please consult the [changelog](Changelog.md).
### Configuration changes
* [#6635](https://github.com/TouK/nussknacker/pull/6635) `globalParameters.useTypingResultTypeInformation` parameter was removed.
Now we always use TypingResultTypeInformation
* [#6797](https://github.com/TouK/nussknacker/pull/6797) `AVRO_USE_STRING_FOR_STRING_TYPE` environment variable
is not supported anymore - we always use String for String type in Avro. If you didn't set up this
environment variable, no action is needed


## In version 1.16.3

Expand Down
Loading
Loading