Skip to content

Commit 03c534d

Browse files
authored
Merge pull request #7394 from opsmill/pog-schema-display-label
Add display_label and deprecate display_labels in schema view
2 parents 376d8bb + 7c9a8af commit 03c534d

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

frontend/app/src/entities/schema/ui/schema-viewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ const Properties = ({ schema }: { schema: ModelSchema }) => {
174174
<PropertyRow title="Label" value={schema.label} />
175175
<PropertyRow title="Kind" value={schema.kind} />
176176
<PropertyRow title="Human Friendly ID" value={schema.human_friendly_id} />
177-
<PropertyRow title="Display labels" value={schema.display_labels} />
177+
<PropertyRow title="Display label" value={schema.display_label} />
178+
<PropertyRow title="Display labels (deprecated)" value={schema.display_labels} />
178179
<PropertyRow title="Description" value={schema.description} />
179180
</div>
180181

frontend/app/src/shared/api/rest/types.generated.ts

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,14 @@ export interface components {
518518
* @description Human friendly and unique identifier for the object.
519519
*/
520520
human_friendly_id?: string[] | null;
521+
/**
522+
* Display Label
523+
* @description Attribute or Jinja2 template to use to generate the display label
524+
*/
525+
display_label?: string | null;
521526
/**
522527
* Display Labels
523-
* @description List of attributes to use to generate the display label
528+
* @description List of attributes to use to generate the display label (deprecated)
524529
*/
525530
display_labels?: string[] | null;
526531
/**
@@ -638,9 +643,14 @@ export interface components {
638643
* @description Human friendly and unique identifier for the object.
639644
*/
640645
human_friendly_id?: string[] | null;
646+
/**
647+
* Display Label
648+
* @description Attribute or Jinja2 template to use to generate the display label
649+
*/
650+
display_label?: string | null;
641651
/**
642652
* Display Labels
643-
* @description List of attributes to use to generate the display label
653+
* @description List of attributes to use to generate the display label (deprecated)
644654
*/
645655
display_labels?: string[] | null;
646656
/**
@@ -767,9 +777,14 @@ export interface components {
767777
* @description Human friendly and unique identifier for the object.
768778
*/
769779
human_friendly_id?: string[] | null;
780+
/**
781+
* Display Label
782+
* @description Attribute or Jinja2 template to use to generate the display label
783+
*/
784+
display_label?: string | null;
770785
/**
771786
* Display Labels
772-
* @description List of attributes to use to generate the display label
787+
* @description List of attributes to use to generate the display label (deprecated)
773788
*/
774789
display_labels?: string[] | null;
775790
/**
@@ -869,9 +884,14 @@ export interface components {
869884
* @description Human friendly and unique identifier for the object.
870885
*/
871886
human_friendly_id?: string[] | null;
887+
/**
888+
* Display Label
889+
* @description Attribute or Jinja2 template to use to generate the display label
890+
*/
891+
display_label?: string | null;
872892
/**
873893
* Display Labels
874-
* @description List of attributes to use to generate the display label
894+
* @description List of attributes to use to generate the display label (deprecated)
875895
*/
876896
display_labels?: string[] | null;
877897
/**
@@ -1367,9 +1387,14 @@ export interface components {
13671387
* @description Human friendly and unique identifier for the object.
13681388
*/
13691389
human_friendly_id?: string[] | null;
1390+
/**
1391+
* Display Label
1392+
* @description Attribute or Jinja2 template to use to generate the display label
1393+
*/
1394+
display_label?: string | null;
13701395
/**
13711396
* Display Labels
1372-
* @description List of attributes to use to generate the display label
1397+
* @description List of attributes to use to generate the display label (deprecated)
13731398
*/
13741399
display_labels?: string[] | null;
13751400
/**
@@ -1710,9 +1735,14 @@ export interface components {
17101735
* @description Human friendly and unique identifier for the object.
17111736
*/
17121737
human_friendly_id?: string[] | null;
1738+
/**
1739+
* Display Label
1740+
* @description Attribute or Jinja2 template to use to generate the display label
1741+
*/
1742+
display_label?: string | null;
17131743
/**
17141744
* Display Labels
1715-
* @description List of attributes to use to generate the display label
1745+
* @description List of attributes to use to generate the display label (deprecated)
17161746
*/
17171747
display_labels?: string[] | null;
17181748
/**
@@ -1865,9 +1895,7 @@ export interface components {
18651895
/** QueryPayload */
18661896
QueryPayload: {
18671897
/** Variables */
1868-
variables?: {
1869-
[key: string]: string;
1870-
};
1898+
variables?: Record<string, never>;
18711899
};
18721900
/**
18731901
* RelationshipCardinality

0 commit comments

Comments
 (0)