@camunda/ccma-saas-frontend 0.35.14 → 0.35.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/runtime/c4-console-data-store.js +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.js +4 -4
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +1 -1
- package/package.json +3 -3
|
@@ -815,7 +815,7 @@ export const ConsoleDataStore = types
|
|
|
815
815
|
// Fetch capacity for all clusters in a single batched request.
|
|
816
816
|
// The HDP `latest` operation accepts the full `clusterIds` array and
|
|
817
817
|
// returns one data point per cluster, each tagged with its `clusterId`
|
|
818
|
-
// (see accounts-
|
|
818
|
+
// (see accounts-ng getLatestCapacity). This replaces the previous
|
|
819
819
|
// per-cluster serial loop, which issued one HTTP round-trip per cluster.
|
|
820
820
|
const latest = yield HdpService.getClusterCapacity({
|
|
821
821
|
params: {
|
|
@@ -28,7 +28,7 @@ export declare const useC4ConsoleStage: () => ConsoleStage | undefined;
|
|
|
28
28
|
* The value comes from one of two places. A host that gives
|
|
29
29
|
* `config.featureFlags` answers it itself. Every other host gets the flags
|
|
30
30
|
* that `C4ConsoleRuntimeProvider` reads from control-backend, or from
|
|
31
|
-
* accounts-
|
|
31
|
+
* accounts-ng when control-backend fails. That read is a request, thus a
|
|
32
32
|
* flag is off on the first render and the component renders again when the
|
|
33
33
|
* flags arrive. Do not use this hook for a one-time effect that must not run
|
|
34
34
|
* twice.
|
|
@@ -61,7 +61,7 @@ function readFlag(flags, flagKey) {
|
|
|
61
61
|
/**
|
|
62
62
|
* Reads the flags of the caller, one time per organization and user, from
|
|
63
63
|
* `GET /api/feature-flags/evaluate` of control-backend. When that request
|
|
64
|
-
* fails, it reads `GET external/feature-flags` of accounts-
|
|
64
|
+
* fails, it reads `GET external/feature-flags` of accounts-ng. When both
|
|
65
65
|
* fail, every flag reads as off.
|
|
66
66
|
*
|
|
67
67
|
* It fetches nothing when the host gives `config.featureFlags`, thus a host
|
|
@@ -131,7 +131,7 @@ function useFetchedFeatureFlags(config) {
|
|
|
131
131
|
fetched = await ControlFeatureFlagsService.evaluate(request);
|
|
132
132
|
}
|
|
133
133
|
catch (controlError) {
|
|
134
|
-
// Control-backend can be down or limited. accounts-
|
|
134
|
+
// Control-backend can be down or limited. accounts-ng holds the
|
|
135
135
|
// same rows from its own copy in Redis, and it answers with the last
|
|
136
136
|
// rows that it knows. That is better than every flag off for a host
|
|
137
137
|
// that serves customers.
|
|
@@ -163,7 +163,7 @@ function useFetchedFeatureFlags(config) {
|
|
|
163
163
|
return flags;
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
|
-
* Reads the clickwrap config from accounts-
|
|
166
|
+
* Reads the clickwrap config from accounts-ng. The request runs on mount
|
|
167
167
|
* and runs again when the stage, the user id or the accounts URL changes. The
|
|
168
168
|
* hook keeps nothing between mounts.
|
|
169
169
|
*
|
|
@@ -295,7 +295,7 @@ export const useC4ConsoleStage = () => {
|
|
|
295
295
|
* The value comes from one of two places. A host that gives
|
|
296
296
|
* `config.featureFlags` answers it itself. Every other host gets the flags
|
|
297
297
|
* that `C4ConsoleRuntimeProvider` reads from control-backend, or from
|
|
298
|
-
* accounts-
|
|
298
|
+
* accounts-ng when control-backend fails. That read is a request, thus a
|
|
299
299
|
* flag is off on the first render and the component renders again when the
|
|
300
300
|
* flags arrive. Do not use this hook for a one-time effect that must not run
|
|
301
301
|
* twice.
|
|
@@ -64,7 +64,7 @@ export interface C4ConsoleRuntimeConfig {
|
|
|
64
64
|
*
|
|
65
65
|
* Omit it and `C4ConsoleRuntimeProvider` reads the flags from
|
|
66
66
|
* `GET /api/feature-flags/evaluate` on control-backend. When that request
|
|
67
|
-
* fails, it reads `GET external/feature-flags` on accounts-
|
|
67
|
+
* fails, it reads `GET external/feature-flags` on accounts-ng. Thus the
|
|
68
68
|
* deployed backend owns the values, and the host holds no copy of the
|
|
69
69
|
* rules. This is the path for an external host such as Camunda Hub.
|
|
70
70
|
*
|
|
@@ -113,7 +113,7 @@ function getNestedBoolean(record, path) {
|
|
|
113
113
|
// and a safety margin still fit in the chart palette, and every series gets its
|
|
114
114
|
// own color (see `recharts-tokens.ts`).
|
|
115
115
|
const TOP_N_CHART_CLUSTERS = 12;
|
|
116
|
-
// Widest tenant-usage window accounts-
|
|
116
|
+
// Widest tenant-usage window accounts-ng serves (it clamps `days` to 366).
|
|
117
117
|
//
|
|
118
118
|
// Both tabs ask for all of it, on purpose:
|
|
119
119
|
// - the usage tab's table reaches back to the org's first period, so anything
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.16",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@camunda/ccma-api": "13.2.
|
|
89
|
-
"@camunda/ccma-shared-types": "18.
|
|
88
|
+
"@camunda/ccma-api": "13.2.1",
|
|
89
|
+
"@camunda/ccma-shared-types": "18.5.0",
|
|
90
90
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
91
91
|
"cron-parser": "5.10.2",
|
|
92
92
|
"mobx": "6.16.1",
|