Skip to content

Commit

Permalink
Updated attributes definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 21, 2021
1 parent 2c76e50 commit d064f0a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
13 changes: 13 additions & 0 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,17 @@ value.template=Template
value.string=String
value.boolean=Boolean
value.list=List
value.long=Long
value.double=Double
value.duration=Duration
value.spring-bean-id=Spring Bean ID
value.BOOLEAN=Boolean
value.SELECTION_LIST=List
value.STRING=String
value.LONG=Long
value.DOUBLE=Double
value.DURATION=Duration
value.SPRING_BEAN_ID=Spring Bean ID

brand.header.title=Source Management
brand.logo-link-label=Shibboleth
Expand Down Expand Up @@ -147,6 +155,11 @@ tooltip.entity-attribute-attr-name=This is normally a uri or urn
label.entity-attribute-display-name=Display name
tooltip.entity-attribute-display-name=Display name

label.entity-attribute-persist-friendly-name=Persist Friendly Name
label.entity-attribute-persist-type=Persist Type
tooltip.entity-attribute-persist-friendly-name=Persist Friendly Name
tooltip.entity-attribute-persist-type=Persist Type

label.entity-attributes=Entity Attributes
label.custom-entity-attributes=Custom Entity Attributes
label.help-text=Help text
Expand Down
8 changes: 4 additions & 4 deletions ui/public/assets/schema/attribute/attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
},
"persistFriendlyName": {
"type": "string",
"title": "label.entity-attribute-friendly-name",
"description": "tooltip.entity-attribute-friendly-name",
"title": "label.entity-attribute-persist-friendly-name",
"description": "tooltip.entity-attribute-persist-friendly-name",
"minLength": 1,
"maxLength": 255
},
"persistType": {
"type": "string",
"title": "label.entity-attribute-attr-name",
"description": "tooltip.entity-attribute-attr-name",
"title": "label.entity-attribute-persist-type",
"description": "tooltip.entity-attribute-persist-type",
"minLength": 1,
"maxLength": 255,
"enum": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const CustomAttributeDefinition = {
'attributeName',
'attributeFriendlyName',
'displayName',
'persistFriendlyName',
'persistType',
'helpText'
]
},
Expand Down
4 changes: 3 additions & 1 deletion ui/src/app/metadata/editor/MetadataAttributeEditor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { MetadataFormContext, setFormDataAction, setFormErrorAction } from '../hoc/MetadataFormContext';
import { MetadataDefinitionContext, MetadataSchemaContext } from '../hoc/MetadataSchema';
import { transformErrors } from '../domain/transform';

import Form from '@rjsf/bootstrap-4';

Expand Down Expand Up @@ -44,7 +45,8 @@ export function MetadataAttributeEditor({ children }) {
fields={fields}
widgets={widgets}
liveValidate={true}
ErrorList={ErrorListTemplate}>
ErrorList={ErrorListTemplate}
transformErrors={transformErrors}>
<></>
</Form>
</div>
Expand Down

0 comments on commit d064f0a

Please sign in to comment.