Skip to content

Commit 2f656af

Browse files
feat(platform-objects): the System Overview datasets carry synonyms and a description on their seven members (#34992)
🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz Fixes #34921 repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Clause-②: no Metadata-protocol: none ## 维护者速读 - **改了什么**:平台自带的“系统概览”五个数据集(用户、组织、会话、安装包、审计日志)里的七个指标/维度,现在都有了中英文同义词和一句业务定义;业务定义在 11 种语言包里都有翻译。 - **为什么改**:管理员问“有多少用户”/ "how many users" 时,问数工具只能靠指标名或当前语言的标签去匹配,平台自己的指标反而查不到;现在这些问法能直接命中 `user_count`。 - **风险与回滚**:只改元数据和语言包,不动 spec、规则和运行时代码;最坏情况是某个同义词选得不准,回滚就是还原 `system.datasets.ts` 和语言包这一个 PR。 - **先看**:① `packages/platform-objects/src/apps/dashboards/system.datasets.ts`(七组同义词,看措辞准不准、有没有两个指标抢同一个词);② `packages/rest/src/system-overview-dataset-vocabulary.test.ts`(真实数据集走真实 `list_datasets` 的钉子);③ `packages/platform-objects/src/apps/translations/zh-CN.ts` 的 `datasets` 段。 - **两分钟验证**:`pnpm --filter @objectstack/rest exec vitest run src/system-overview-dataset-vocabulary.test.ts`(需先构建 platform-objects),预期 8 个用例全绿。 - **需要你做的**:无,席位落地。 ## What changes The five System Overview datasets (`packages/platform-objects/src/apps/dashboards/system.datasets.ts`) gain ADR-0149 D1 vocabulary on all seven members: | Dataset | Member | Synonyms (one authored array, never bundled) | |---|---|---| | `sys_user_metrics` | measure `user_count` | 用户, 用户数, 用户数量, 用户总数, 有多少用户, users, user count, number of users, total users, how many users | | `sys_organization_metrics` | measure `org_count` | 组织, 组织数, 组织数量, 组织总数, 有多少组织, organizations, orgs, organization count, number of organizations, how many organizations | | `sys_session_metrics` | measure `session_count` | 会话, 会话数, 会话数量, 登录会话, 有多少会话, sessions, session count, number of sessions, login sessions, how many sessions | | `sys_package_installation_metrics` | measure `package_count` | 已安装的包, 安装的包数, 包安装数, 装了多少包, installations, installed packages, package installations, package count, number of installed packages, how many packages are installed | | `sys_audit_log_metrics` | dimension `action` | 操作类型, 动作, 审计动作, action type, operation, audit action | | `sys_audit_log_metrics` | dimension `user_id` | 操作人, 操作者, 执行人, 操作用户, actor, performed by, acting user | | `sys_audit_log_metrics` | measure `event_count` | 事件, 事件数, 审计事件, 审计事件数, 审计日志条数, 有多少审计事件, events, event count, audit events, audit log entries, how many audit events | Each member also gets a one-sentence `description`. That text is display copy, so it has a bundle entry at `datasets.NAME.{measures,dimensions}.MEMBER.description` in all eleven Setup bundle locales (en mirrors the source verbatim; zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, pt-BR, de, ru and ar are hand-translated, as the existing `datasets.*.label` rows are). Each translated locale records the new paths' source digests in its hand-maintained `LOCALE.source-hashes.ts`, written the same way the label rows were (`collectSourceHashes(en)`; the existing label digests reproduce byte-for-byte). No `*.generated.ts` file changes, and no generator output moves. **How the matcher treats these words.** `matchDatasetTerms` (service-analytics) compares a term with a member's name, label and synonyms by EQUALITY after `normalizeDatasetTerm`. It never matches a substring or a single word inside a phrase. So a multi-word term such as "how many users" resolves only where a member writes that exact phrase as one synonym. I chose to write the administrator's phrasing (`how many users`, `有多少用户`) as synonyms, plus the term forms a model lifts from a question (`user count`, `用户数`). A longer question with no exact hit, such as "how many users do we have", still gets only near `candidates` (containment, two code points or more), which means a clarifying question. That behaviour is unchanged. **Collisions.** Within one dataset, the schema's vocabulary refinement judges collisions (full `DatasetSchema.safeParse` is green for all five). Across the five datasets, no synonym is a word of another *measure* in any locale, and a new test pins that. The one cross-member equality is 「用户」: it is a `user_count` synonym and also the existing zh-CN label of the `user_id` dimension. In zh-CN the two labels already met before this PR. A dimension match picks no number, so the word still answers with `user_count`. In other locales the synonym adds the only match. The other language's bare label is listed on purpose (`users` beside 「用户」). The label a caller is matched against is the one served in the caller's locale, so under zh-CN the English label `Users` is not a match target. No spec, schema, protocol or vocabulary-rule change. The rule's module note ("It answers to no synonym unless its source writes one") stays true; the source now writes them. ## Tests - `packages/rest/src/system-overview-dataset-vocabulary.test.ts` (new) puts the pin where these datasets meet the dataset tools without new wiring: `@objectstack/rest` already depends on both `@objectstack/platform-objects` and `@objectstack/service-analytics`. It feeds the REAL datasets, localized by the REAL Setup bundle through `translateDataset`, to the REAL `list_datasets` of an `AnalyticsServicePlugin`-booted service. The objects behind the datasets are declaration doubles. Under `en` and `zh-CN`: - `terms: ['用户数']` matches exactly `sys_user_metrics.measures.user_count`, on `synonym`, and has no `candidates`; - `terms: ['how many users']` matches the same member the same way; - the control `terms: ['营收', 'revenue']` matches nothing and has no `candidates`; - under zh-CN, the catalogue lists `user_count`'s description from the bundle. - `system-overview-dataset-translations.test.ts` gains a top-level `describe` in the existing harness file: - all seven members declare a Chinese and an English synonym and a description; - each dataset survives a full parse; - no synonym is another measure's word in any locale; - the en bundle copies each description verbatim; - no translated locale serves the English description. <details><summary>Test runs (head 82b53be)</summary> ``` pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/system-overview-dataset-vocabulary.test.ts Test Files 1 passed (1) Tests 8 passed (8) pnpm --filter @objectstack/platform-objects test Test Files 123 passed (123) Tests 2060 passed (2060) pnpm --filter @objectstack/platform-objects typecheck -> exit 0 pnpm --filter @objectstack/rest typecheck -> exit 0 (test layer: 0 files / 0 errors held) ``` </details> <details><summary>Ablation: drop user_count's synonyms, the pin goes red</summary> The ablation ran through `scripts/ablation-replace.mjs`, which deleted the `user_count` `synonyms` array. Then `pnpm --filter @objectstack/platform-objects build`, then `node scripts/ablation-dist-preflight.mjs @objectstack/platform-objects "total users" --absent` (exit 0: the marker is gone from `dist/`). ``` MUTANT test exit=1 × en: 「用户数」 resolves to user_count alone, by its declared synonym × en: "how many users" resolves to user_count alone, by its declared synonym × zh-CN: 「用户数」 resolves to user_count alone, by its declared synonym × zh-CN: "how many users" resolves to user_count alone, by its declared synonym Tests 4 failed | 4 passed (8) ``` The 4 that stayed green are the listing, the two controls and the description case, which is what you would expect. Restore: `ablation-replace: ok restored: blob == HEAD (b3d4784) and git diff HEAD is empty`. After a rebuild the preflight found the marker present in 4 built files with a clean tree, and the suite went back to `Tests 8 passed (8)`. </details> ## Acceptance notes - **i18n baseline moved by 0.** `scripts/i18n-coverage-baseline.json` holds `packages/platform-objects/scripts/i18n-extract.config.ts: 0` before and after, and `node scripts/check-i18n-coverage.mjs` reports `OK (14 config(s), 423 baselined untranslated string(s), none new)`. The extract config declares no `datasets`, so the ratchet's population does not include these rows in either direction. The new strings are held instead by the translation test above (every locale translated, en verbatim). - The synonyms are Simplified Chinese and English only. `normalizeDatasetTerm` does not fold Traditional to Simplified, so a zh-Hant administrator typing 「使用者數」 matches only the zh-Hant label 「使用者」, and only in that locale. This is noted here, not filed. - `sys_package_installation` is cloud-only. Where the object is absent, its dataset is left out of `list_datasets`, and the synonyms are harmless there. ## Verification <details><summary>Derived gate families (63) and reconciliation</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 63 families from merge base fb5c42d, tree 82b53be. All 63 ran locally. Three exited 3 (PREREQUISITE NOT MET) on the first pass and were re-run once the prerequisite held, each exit 0: - `pnpm check:i18n`, after the CLI and extract-closure build: `OK (10 package(s) — all bundles in sync, no undeclared authoring keys)`; - `pnpm check:dual-build-cjs-loads`, after a full workspace build: `124 published require entry point(s) across 72 package(s) load`; - `node scripts/check-plugin-teardown-shape.mjs --self-test`, after fetching its pinned fixture commit into the shallow clone: `48 cases pass`. The dist-reading gates were re-run after the full build, all exit 0: `check:dts-closure`, `check:published-files`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`, `check-dts-emitted --self-test`. ``` Run reconciliation — 63 derived, 63 run, 0 NOT-MEASURED, 0 UNRUN. ✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 63 run, 0 NOT-MEASURED ``` `overlap-check` before each push: `VERDICT clean exit 0` against origin/main and #34799, which shares the locale bundles and merges cleanly. </details> The rest of the `@objectstack/rest` suite was not re-run locally: this PR adds one test file there and changes no rest source. CI's `Test Core` runs it. <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 38a1433 commit 2f656af

25 files changed

Lines changed: 907 additions & 78 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
feat(platform-objects): the System Overview datasets give their seven members synonyms and a description
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The five System Overview datasets (`sys_user_metrics`, `sys_organization_metrics`, `sys_session_metrics`, `sys_package_installation_metrics`, `sys_audit_log_metrics`) had no business words on their seven members. A question asked in an administrator's own words therefore found only a member's name or its label in the caller's locale. Each member now declares ADR-0149 D1 `synonyms`, Chinese and English in one array, and a one-sentence `description`:
11+
12+
- measures `user_count`, `org_count`, `session_count`, `package_count`, `event_count`;
13+
- dimensions `action` and `user_id` on `sys_audit_log_metrics`.
14+
15+
Synonyms are match input, so no bundle translates them. Each description has a bundle entry at `datasets.<name>.{measures,dimensions}.<member>.description` in all eleven Setup bundle locales, and a recorded source digest in each translated locale.
16+
17+
`list_datasets` compares a term by equality after normalization. So `list_datasets({ terms: ['用户数'] })` and `list_datasets({ terms: ['how many users'] })` now each match `sys_user_metrics.measures.user_count` on a synonym, and nothing else. A word that no member declares still matches nothing. No synonym is a word of another measure in any of the five datasets, in any locale.

‎packages/platform-objects/src/apps/dashboards/system-overview-dataset-translations.test.ts‎

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616

1717
import { describe, it, expect } from 'vitest';
1818
import { translateDataset } from '@objectstack/spec/system';
19+
import { DatasetSchema, normalizeDatasetTerm } from '@objectstack/spec/ui';
1920
import { SystemOverviewDashboard } from './system_overview.dashboard.js';
2021
import { SystemOverviewDatasets } from './system.datasets.js';
2122
import { SetupAppTranslations } from '../translations/index.js';
2223
import { en } from '../translations/en.js';
2324

24-
type Member = { name: string; label?: unknown };
25+
type Member = { name: string; label?: unknown; description?: unknown; synonyms?: readonly string[] };
2526
type Group = 'measures' | 'dimensions';
2627

2728
const datasetsByName = new Map(SystemOverviewDatasets.map((d) => [d.name, d]));
@@ -107,3 +108,82 @@ describe('System Overview: every dataset label the board draws is translated', (
107108
});
108109
}
109110
});
111+
112+
// ADR-0149 D1: each of the seven members carries the words an administrator
113+
// asks for it in (`synonyms`, every language in one authored array, never
114+
// bundled) and a one-sentence business definition (`description`, display
115+
// copy, translated beside the label). What `list_datasets` then answers for
116+
// those words is pinned where these datasets meet the dataset tools:
117+
// `packages/rest/src/system-overview-dataset-vocabulary.test.ts`.
118+
describe('System Overview: every dataset member carries its business vocabulary', () => {
119+
const members = SystemOverviewDatasets.flatMap((d) =>
120+
(['dimensions', 'measures'] as const).flatMap((group) =>
121+
((d[group] ?? []) as Member[]).map((m) => ({ dataset: d.name, group, member: m }))));
122+
123+
it('the seven members each declare synonyms in Chinese and English, and a description', () => {
124+
expect(members.map(({ dataset, group, member }) => `${dataset}.${group}.${member.name}`)).toHaveLength(7);
125+
for (const { dataset, group, member } of members) {
126+
const at = `${dataset}.${group}.${member.name}`;
127+
expect(member.description, at).toBeTypeOf('string');
128+
const synonyms = member.synonyms ?? [];
129+
expect(synonyms.some((s) => /\p{Script=Han}/u.test(s)), `${at}: a Chinese synonym`).toBe(true);
130+
expect(synonyms.some((s) => /^[a-z ]+$/.test(s)), `${at}: an English synonym`).toBe(true);
131+
}
132+
});
133+
134+
it('each dataset survives a full parse, vocabulary rules included', () => {
135+
for (const dataset of SystemOverviewDatasets) {
136+
const parsed = DatasetSchema.safeParse(dataset);
137+
expect(parsed.success, `${dataset.name}: ${parsed.success ? '' : parsed.error.message}`).toBe(true);
138+
}
139+
});
140+
141+
it('no synonym is a word of another measure in any of the five datasets, in any locale', () => {
142+
// Two measures answering to one word make the tools ask which one is meant.
143+
// The schema judges collisions within one dataset; this holds the five
144+
// together, against the label each locale serves.
145+
const collisions: string[] = [];
146+
for (const locale of Object.keys(SetupAppTranslations)) {
147+
const served = SystemOverviewDatasets.map((d) => translateDataset(d, SetupAppTranslations, { locale }));
148+
const measureWords = served.flatMap((d) => ((d.measures ?? []) as Member[]).map((m) => ({
149+
owner: `${d.name}.measures.${m.name}`,
150+
words: [m.name, ...(typeof m.label === 'string' ? [m.label] : []), ...(m.synonyms ?? [])].map(normalizeDatasetTerm),
151+
})));
152+
for (const { dataset, group, member } of members) {
153+
const owner = `${dataset}.${group}.${member.name}`;
154+
for (const synonym of member.synonyms ?? []) {
155+
for (const other of measureWords) {
156+
if (other.owner !== owner && other.words.includes(normalizeDatasetTerm(synonym))) {
157+
collisions.push(`${locale}: "${synonym}" of ${owner} is a word of ${other.owner}`);
158+
}
159+
}
160+
}
161+
}
162+
}
163+
expect(collisions).toEqual([]);
164+
});
165+
166+
it('en: the bundle copies each member description from the declared source verbatim', () => {
167+
const drift: string[] = [];
168+
for (const { dataset, group, member } of members) {
169+
const served = (en.datasets?.[dataset]?.[group] as Record<string, { description?: string }> | undefined)?.[member.name]?.description;
170+
if (served !== member.description) {
171+
drift.push(`datasets.${dataset}.${group}.${member.name}.description: ${JSON.stringify(served)} ≠ ${JSON.stringify(member.description)}`);
172+
}
173+
}
174+
expect(drift).toEqual([]);
175+
});
176+
177+
for (const locale of TRANSLATED_LOCALES) {
178+
it(`${locale}: no member description resolves to the English source`, () => {
179+
const english: string[] = [];
180+
for (const { dataset, group, member } of members) {
181+
const doc = datasetsByName.get(dataset)!;
182+
const served = translateDataset(doc, SetupAppTranslations, { locale });
183+
const description = ((served[group] ?? []) as Member[]).find((m) => m.name === member.name)?.description;
184+
if (description === member.description) english.push(`datasets.${dataset}.${group}.${member.name}.description`);
185+
}
186+
expect(english, `untranslated dataset member descriptions under ${locale}`).toEqual([]);
187+
});
188+
}
189+
});

‎packages/platform-objects/src/apps/dashboards/system.datasets.ts‎

Lines changed: 83 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,110 @@ import { defineDataset } from '@objectstack/spec/ui';
99
* datasets reference objects BY NAME, so co-locating them with the dashboard
1010
* (registered by plugin-auth) is fine; the widgets that target absent objects
1111
* are runtime-gated via `requiresObject`.
12+
*
13+
* Each member carries its business vocabulary (ADR-0149 D1): `synonyms`, the
14+
* words an administrator types for it in a question, Chinese and English in
15+
* the one authored array (a synonym is match input, never translated, so no
16+
* bundle carries it), and a one-sentence `description`, which is display copy
17+
* and is translated at `datasets.<name>.{measures,dimensions}.<member>.description`.
18+
* These datasets reach the dataset AI tools through plugin-auth's runtime
19+
* manifest, where the vocabulary advisory never reads them, so nothing but
20+
* this file gives them words.
21+
*
22+
* The dataset tools match a term by EQUALITY after `normalizeDatasetTerm`, so
23+
* a phrase an administrator asks in ("how many users", 「有多少用户」) answers
24+
* only where it is written as one synonym. No synonym below is a word of
25+
* another measure in any of the five datasets, in any locale: a word on two
26+
* measures makes the tools ask which one is meant. The other language's label
27+
* is listed too (`users` beside 「用户」), because the label a caller is matched
28+
* against is the one served in the caller's locale. 「用户」 is also the zh-CN
29+
* label of the audit log's `user_id` dimension; a dimension match alone picks
30+
* no number, so the word still answers with `user_count`.
1231
*/
1332

1433
export const SysUserDataset = defineDataset({
1534
name: 'sys_user_metrics',
1635
label: 'User Metrics',
1736
object: 'sys_user',
1837
dimensions: [],
19-
measures: [{ name: 'user_count', label: 'Users', aggregate: 'count' }],
38+
measures: [{
39+
name: 'user_count',
40+
label: 'Users',
41+
aggregate: 'count',
42+
description: 'The number of user accounts on record, active or not.',
43+
synonyms: [
44+
'用户', '用户数', '用户数量', '用户总数', '有多少用户',
45+
'users', 'user count', 'number of users', 'total users', 'how many users',
46+
],
47+
}],
2048
});
2149

2250
export const SysOrganizationDataset = defineDataset({
2351
name: 'sys_organization_metrics',
2452
label: 'Organization Metrics',
2553
object: 'sys_organization',
2654
dimensions: [],
27-
measures: [{ name: 'org_count', label: 'Organizations', aggregate: 'count' }],
55+
measures: [{
56+
name: 'org_count',
57+
label: 'Organizations',
58+
aggregate: 'count',
59+
description: 'The number of organizations on record; each one keeps its own members, data and settings.',
60+
synonyms: [
61+
'组织', '组织数', '组织数量', '组织总数', '有多少组织',
62+
'organizations', 'orgs', 'organization count', 'number of organizations', 'how many organizations',
63+
],
64+
}],
2865
});
2966

3067
export const SysSessionDataset = defineDataset({
3168
name: 'sys_session_metrics',
3269
label: 'Session Metrics',
3370
object: 'sys_session',
3471
dimensions: [],
35-
measures: [{ name: 'session_count', label: 'Sessions', aggregate: 'count' }],
72+
measures: [{
73+
name: 'session_count',
74+
label: 'Sessions',
75+
aggregate: 'count',
76+
description: 'The number of sign-in sessions on record, one per sign-in from a browser or device.',
77+
synonyms: [
78+
'会话', '会话数', '会话数量', '登录会话', '有多少会话',
79+
'sessions', 'session count', 'number of sessions', 'login sessions', 'how many sessions',
80+
],
81+
}],
3682
});
3783

3884
export const SysPackageInstallationDataset = defineDataset({
3985
name: 'sys_package_installation_metrics',
4086
label: 'Package Installation Metrics',
4187
object: 'sys_package_installation',
4288
dimensions: [],
43-
measures: [{ name: 'package_count', label: 'Installations', aggregate: 'count' }],
89+
measures: [{
90+
name: 'package_count',
91+
label: 'Installations',
92+
aggregate: 'count',
93+
description: 'The number of package installations on record, one per package installed.',
94+
synonyms: [
95+
'已安装的包', '安装的包数', '包安装数', '装了多少包',
96+
'installations', 'installed packages', 'package installations', 'package count',
97+
'number of installed packages', 'how many packages are installed',
98+
],
99+
}],
44100
});
45101

46102
export const SysAuditLogDataset = defineDataset({
47103
name: 'sys_audit_log_metrics',
48104
label: 'Audit Log Metrics',
49105
object: 'sys_audit_log',
50106
dimensions: [
51-
{ name: 'action', label: 'Action', field: 'action', type: 'string' },
107+
{
108+
name: 'action',
109+
label: 'Action',
110+
field: 'action',
111+
type: 'string',
112+
description:
113+
'The kind of action an audit log entry records, such as create, update, delete, login or a configuration change.',
114+
synonyms: ['操作类型', '动作', '审计动作', 'action type', 'operation', 'audit action'],
115+
},
52116
// Rows the platform writes itself carry no `user_id`; their bucket reads
53117
// "System", not the renderer's default "(None)". An inline locale map:
54118
// the translation bundles have no slot for a dimension's null label.
@@ -57,10 +121,23 @@ export const SysAuditLogDataset = defineDataset({
57121
label: 'User',
58122
field: 'user_id',
59123
type: 'lookup',
124+
description:
125+
'The user who performed the audited action; entries the platform writes itself are grouped under System.',
126+
synonyms: ['操作人', '操作者', '执行人', '操作用户', 'actor', 'performed by', 'acting user'],
60127
nullLabel: { en: 'System', 'zh-CN': '系统', 'ja-JP': 'システム', 'es-ES': 'Sistema', 'zh-Hant': '系統', ar: 'النظام', fr: 'Système', 'pt-BR': 'Sistema', ru: 'Система', de: 'System', ko: '시스템' },
61128
},
62129
],
63-
measures: [{ name: 'event_count', label: 'Events', aggregate: 'count' }],
130+
measures: [{
131+
name: 'event_count',
132+
label: 'Events',
133+
aggregate: 'count',
134+
description:
135+
'The number of audit log entries; each records one action taken in the system, by a user or by the platform itself.',
136+
synonyms: [
137+
'事件', '事件数', '审计事件', '审计事件数', '审计日志条数', '有多少审计事件',
138+
'events', 'event count', 'audit events', 'audit log entries', 'how many audit events',
139+
],
140+
}],
64141
});
65142

66143
export const SystemOverviewDatasets = [

‎packages/platform-objects/src/apps/translations/ar.source-hashes.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,19 @@ export const arSourceHashes: Readonly<Record<string, string>> = {
182182
'dashboards.system_overview.widgets.widget_recent_events.description': '5b9ce7479f6c178c',
183183
'dashboards.system_overview.globalFilters.created_at.label': 'dcba3619736cb533',
184184
'datasets.sys_user_metrics.measures.user_count.label': 'eee81f7307a66c40',
185+
'datasets.sys_user_metrics.measures.user_count.description': '51488331523a478a',
185186
'datasets.sys_organization_metrics.measures.org_count.label': '07488357631b973d',
187+
'datasets.sys_organization_metrics.measures.org_count.description': 'bccb13ceedcde9a6',
186188
'datasets.sys_session_metrics.measures.session_count.label': '673bde6e0c8a3ef9',
189+
'datasets.sys_session_metrics.measures.session_count.description': '2f16ee1a53845763',
187190
'datasets.sys_package_installation_metrics.measures.package_count.label': 'bd7a67c9d5b3ac44',
191+
'datasets.sys_package_installation_metrics.measures.package_count.description': 'a7df1b2983457515',
188192
'datasets.sys_audit_log_metrics.dimensions.action.label': 'a36bba313a7aa9ab',
193+
'datasets.sys_audit_log_metrics.dimensions.action.description': '427e65dc65d1ec06',
189194
'datasets.sys_audit_log_metrics.dimensions.user_id.label': '6c0d22a931e235bd',
195+
'datasets.sys_audit_log_metrics.dimensions.user_id.description': '6e107d34eb914730',
190196
'datasets.sys_audit_log_metrics.measures.event_count.label': '41e7c95aaa871569',
197+
'datasets.sys_audit_log_metrics.measures.event_count.description': '9d8081ef53838a60',
191198
'pages.cloud_connection_settings.label': '3a7caad0cb98e71d',
192199
'pages.cloud_connection_settings.subtitle': 'f5cdd253e8ffef9f',
193200
'pages.connect_agent.label': 'a4542422fb5e8a68',

‎packages/platform-objects/src/apps/translations/ar.ts‎

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,55 @@ export const ar: TranslationData = {
187187
},
188188

189189
datasets: {
190-
sys_user_metrics: { measures: { user_count: { label: 'المستخدمون' } } },
191-
sys_organization_metrics: { measures: { org_count: { label: 'المؤسسات' } } },
192-
sys_session_metrics: { measures: { session_count: { label: 'الجلسات' } } },
193-
sys_package_installation_metrics: { measures: { package_count: { label: 'عمليات التثبيت' } } },
190+
sys_user_metrics: {
191+
measures: {
192+
user_count: {
193+
label: 'المستخدمون',
194+
description: 'عدد حسابات المستخدمين المسجلة، النشطة وغير النشطة.',
195+
},
196+
},
197+
},
198+
sys_organization_metrics: {
199+
measures: {
200+
org_count: {
201+
label: 'المؤسسات',
202+
description: 'عدد المؤسسات المسجلة؛ لكل مؤسسة أعضاؤها وبياناتها وإعداداتها الخاصة.',
203+
},
204+
},
205+
},
206+
sys_session_metrics: {
207+
measures: {
208+
session_count: {
209+
label: 'الجلسات',
210+
description: 'عدد جلسات تسجيل الدخول المسجلة، جلسة واحدة لكل تسجيل دخول من متصفح أو جهاز.',
211+
},
212+
},
213+
},
214+
sys_package_installation_metrics: {
215+
measures: {
216+
package_count: {
217+
label: 'عمليات التثبيت',
218+
description: 'عدد عمليات تثبيت الحزم المسجلة، عملية واحدة لكل حزمة مثبتة.',
219+
},
220+
},
221+
},
194222
sys_audit_log_metrics: {
195-
dimensions: { action: { label: 'الإجراء' }, user_id: { label: 'المستخدم' } },
196-
measures: { event_count: { label: 'الأحداث' } },
223+
dimensions: {
224+
action: {
225+
label: 'الإجراء',
226+
description: 'نوع الإجراء الذي يسجله إدخال سجل التدقيق، مثل الإنشاء أو التحديث أو الحذف أو تسجيل الدخول أو تغيير الإعدادات.',
227+
},
228+
user_id: {
229+
label: 'المستخدم',
230+
description: 'المستخدم الذي نفّذ الإجراء الخاضع للتدقيق؛ تُجمع الإدخالات التي تكتبها المنصة بنفسها تحت «النظام».',
231+
},
232+
},
233+
measures: {
234+
event_count: {
235+
label: 'الأحداث',
236+
description: 'عدد إدخالات سجل التدقيق؛ يسجل كل إدخال إجراءً واحدًا نُفّذ في النظام من قِبل مستخدم أو من قِبل المنصة نفسها.',
237+
},
238+
},
197239
},
198240
},
199241

‎packages/platform-objects/src/apps/translations/de.source-hashes.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,19 @@ export const deSourceHashes: Readonly<Record<string, string>> = {
183183
'dashboards.system_overview.widgets.widget_recent_events.description': '5b9ce7479f6c178c',
184184
'dashboards.system_overview.globalFilters.created_at.label': 'dcba3619736cb533',
185185
'datasets.sys_user_metrics.measures.user_count.label': 'eee81f7307a66c40',
186+
'datasets.sys_user_metrics.measures.user_count.description': '51488331523a478a',
186187
'datasets.sys_organization_metrics.measures.org_count.label': '07488357631b973d',
188+
'datasets.sys_organization_metrics.measures.org_count.description': 'bccb13ceedcde9a6',
187189
'datasets.sys_session_metrics.measures.session_count.label': '673bde6e0c8a3ef9',
190+
'datasets.sys_session_metrics.measures.session_count.description': '2f16ee1a53845763',
188191
'datasets.sys_package_installation_metrics.measures.package_count.label': 'bd7a67c9d5b3ac44',
192+
'datasets.sys_package_installation_metrics.measures.package_count.description': 'a7df1b2983457515',
189193
'datasets.sys_audit_log_metrics.dimensions.action.label': 'a36bba313a7aa9ab',
194+
'datasets.sys_audit_log_metrics.dimensions.action.description': '427e65dc65d1ec06',
190195
'datasets.sys_audit_log_metrics.dimensions.user_id.label': '6c0d22a931e235bd',
196+
'datasets.sys_audit_log_metrics.dimensions.user_id.description': '6e107d34eb914730',
191197
'datasets.sys_audit_log_metrics.measures.event_count.label': '41e7c95aaa871569',
198+
'datasets.sys_audit_log_metrics.measures.event_count.description': '9d8081ef53838a60',
192199
'pages.cloud_connection_settings.label': '3a7caad0cb98e71d',
193200
'pages.cloud_connection_settings.subtitle': 'f5cdd253e8ffef9f',
194201
'pages.connect_agent.label': 'a4542422fb5e8a68',

0 commit comments

Comments
 (0)