Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@gooddata/sdk-ui-all",
"comment": "sdk-backend-base: CacheControl now exposes resetAutomations to invalidate the workspace automations cache, and resetAll clears it together with the other caches.",
"type": "none"
}
],
"packageName": "@gooddata/sdk-ui-all"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@gooddata/sdk-ui-all",
"comment": "sdk-ui-kit: Fix the message component being squeezed below its own content when it is a flex item, which collapsed a message to a few pixels and clipped its text next to a scrollable list in a dialog.",
"type": "none"
}
],
"packageName": "@gooddata/sdk-ui-all"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@gooddata/sdk-ui-all",
"comment": "sdk-ui-gen-ai: Update design of references in ai assistant.",
"type": "none"
}
],
"packageName": "@gooddata/sdk-ui-all"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@gooddata/sdk-ui-all",
"comment": "sdk-ui-all: Visual exports (PDF, PPTX) keep the filters applied on screen even when a default saved filter view exists",
"type": "none"
}
],
"packageName": "@gooddata/sdk-ui-all"
}
4 changes: 2 additions & 2 deletions common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{
"definitionName": "lockStepVersion",
"policyName": "sdk",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"nextBump": "prerelease",
"mainProject": "@gooddata/sdk-ui-all"
},
{
"definitionName": "lockStepVersion",
"policyName": "sdk-not-npm-publish",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"nextBump": "prerelease",
"mainProject": "@gooddata/sdk-ui-all"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/playground",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": true,
"description": "GoodData.UI SDK - Developer Playground",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-examples-template",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "GoodData interactive example template",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-attributefilter",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example demonstrates how to use the AttributeFilter component to filter data in a visualization.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-chartconfig",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This interactive example demonstrates how to manipulate the chart config.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-columnchart",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example demonstrates the usage of the ColumnChart component with the viewBy and stackBy properties.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-combochart",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "Example demonstrates ComboChart secondaryMeasures definition. ",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-dashboard",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example shows how to use the Dashboard component.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-datefilter",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "Example demonstrates usage of Date Filter component.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-dependentfilters",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example demonstrates how to use multiple attribute filters linked together to filter data in a visualization.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-execute",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example demonstrates using Execute component and build custom visualization.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-granularity",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example exmplains DateFilter granularity ",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-headline",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example shows how to use the Headline component.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-pivottable",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "Basic PivotTable manipulation.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-relativedatefilter",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "Example demonstrates how to set relative DateFilter for visualization.",
"license": "LicenseRef-LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-example-repeater",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "This example demonstrates how to use Repeater component.",
"license": "LicenseRef-LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion examples/sdk-interactive-examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-interactive-examples",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"private": false,
"description": "GoodData React interactive examples",
"license": "LicenseRef-LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion libs/api-client-tiger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/api-client-tiger",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"description": "API Client for GoodData Cloud and GoodData.CN",
"license": "MIT",
"author": "GoodData",
Expand Down
1 change: 1 addition & 0 deletions libs/sdk-backend-base/api/sdk-backend-base.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export type CacheControl = {
resetExportTemplates: () => void;
resetInsights: () => void;
resetMeasures: () => void;
resetAutomations: () => void;
resetAll: () => void;
};

Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-backend-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-backend-base",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"description": "GoodData.UI SDK - Base for backend implementations",
"license": "MIT",
"author": "GoodData",
Expand Down
10 changes: 10 additions & 0 deletions libs/sdk-backend-base/src/cachingBackend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2910,6 +2910,10 @@ function cacheControl(ctx: CachingContext): CacheControl {
ctx.caches.workspaceMeasures?.clear();
},

resetAutomations: () => {
ctx.caches.workspaceAutomations?.clear();
},

resetAll: () => {
control.resetExecutions();
control.resetCatalogs();
Expand All @@ -2922,6 +2926,7 @@ function cacheControl(ctx: CachingContext): CacheControl {
control.resetExportTemplates();
control.resetInsights();
control.resetMeasures();
control.resetAutomations();
},
};

Expand Down Expand Up @@ -2997,6 +3002,11 @@ export type CacheControl = {
*/
resetMeasures: () => void;

/**
* Resets all workspace automation caches.
*/
resetAutomations: () => void;

/**
* Convenience method to reset all caches (calls all the particular resets).
*/
Expand Down
45 changes: 45 additions & 0 deletions libs/sdk-backend-base/src/cachingBackend/tests/withCaching.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,51 @@ describe("withCaching", () => {
expect(second).not.toBe(first);
});

it("resets workspace automations list cache", () => {
let cacheControl: CacheControl | undefined;

const backend = withCachingForTests(defaultBackend, (cc) => (cacheControl = cc));
const first = backend.workspace("test").automations().getAutomations();
cacheControl?.resetAutomations();
const second = backend.workspace("test").automations().getAutomations();

expect(second).not.toBe(first);
});

it("resets workspace automations query cache", () => {
let cacheControl: CacheControl | undefined;

const backend = withCachingForTests(defaultBackend, (cc) => (cacheControl = cc));
const first = backend
.workspace("test")
.automations()
.getAutomationsQuery()
.withPage(2)
.withSize(5)
.query();
cacheControl?.resetAutomations();
const second = backend
.workspace("test")
.automations()
.getAutomationsQuery()
.withPage(2)
.withSize(5)
.query();

expect(second).not.toBe(first);
});

it("resets workspace automations cache as part of resetAll", () => {
let cacheControl: CacheControl | undefined;

const backend = withCachingForTests(defaultBackend, (cc) => (cacheControl = cc));
const first = backend.workspace("test").automations().getAutomations();
cacheControl?.resetAll();
const second = backend.workspace("test").automations().getAutomations();

expect(second).not.toBe(first);
});

describe("collection items caching", () => {
const collectionBaseConfig = {
collectionId: "geo-collection",
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-backend-mockingbird/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-backend-mockingbird",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"description": "Mock GoodData Backend SPI implementation",
"license": "MIT",
"author": "GoodData",
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-backend-spi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-backend-spi",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"description": "GoodData Backend SPI abstraction interfaces",
"license": "MIT",
"author": "GoodData",
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-backend-tiger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gooddata/sdk-backend-tiger",
"version": "11.54.0-alpha.2",
"version": "11.54.0-alpha.3",
"description": "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN",
"license": "MIT",
"author": "GoodData",
Expand Down
Loading