You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Prasad P. Pawar (Jira)" <ji...@apache.org> on 2022/01/27 11:16:00 UTC
[jira] [Updated] (ATLAS-3985) Not able to assign classification with mandatory attribute of type "array"
[ https://issues.apache.org/jira/browse/ATLAS-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasad P. Pawar updated ATLAS-3985:
-----------------------------------
Attachment: 0001-ATLAS-3985-UI-2-Not-able-to-assign-classification-wi.patch
> Not able to assign classification with mandatory attribute of type "array<string>"
> -----------------------------------------------------------------------------------
>
> Key: ATLAS-3985
> URL: https://issues.apache.org/jira/browse/ATLAS-3985
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core, atlas-webui
> Reporter: Dharshana M Krishnamoorthy
> Assignee: Prasad P. Pawar
> Priority: Major
> Attachments: 0001-ATLAS-3985-UI-1-Not-able-to-assign-classification-wi.patch, 0001-ATLAS-3985-UI-2-Not-able-to-assign-classification-wi.patch, Screenshot 2020-10-07 at 1.40.43 PM.png, Screenshot 2020-10-07 at 1.41.17 PM.png
>
>
> Create a classification that has mandatory attribute of type "*array<string>*" via REST api
> {code:java|title=Create classification with payload:}
> {
> "enumDefs": [],
> "structDefs": [],
> "classificationDefs": [
> {
> "category": "CLASSIFICATION",
> "guid": "8996315b-b5fe-48c6-b9d0-4668fhkfd21af",
> "createdBy": "hrt_qa",
> "updatedBy": "hrt_qa",
> "createTime": 1602057743077,
> "updateTime": 1602057743077,
> "version": 1,
> "name": "read_auth_test_tag1",
> "description": "read_auth_test_tag1",
> "typeVersion": "1.0",
> "attributeDefs": [
> {
> "name": "type_long_min",
> "typeName": "long",
> "isOptional": true,
> "cardinality": "SINGLE",
> "valuesMinCount": 0,
> "valuesMaxCount": 1,
> "isUnique": false,
> "isIndexable": false
> },
> {
> "name":"type_arr_list",
> "typeName":"array<string>",
> "isOptional":false,
> "cardinality":"LIST",
> "valuesMinCount":1,
> "valuesMaxCount":2147483647,
> "isUnique":false,
> "isIndexable":false
> },
> {
> "name":"type_set",
> "typeName":"array<string>",
> "isOptional":false,
> "cardinality":"SET",
> "valuesMinCount":1,
> "valuesMaxCount":2147483647,
> "isUnique":false,
> "isIndexable":false
> }
> ],
> "superTypes": [],
> "entityTypes": [],
> "subTypes": []
> }
> ],
> "entityDefs": [],
> "relationshipDefs": [],
> "businessMetadataDefs": []
> }
> {code}
> Assign the same to an entity.
> The assignment fails as the attributes of type "array<string>" are not visible on UI
> {code:java|title=error message}
> {"errorCode":"ATLAS-400-00-01A",
> "errorMessage":"invalid parameters: read_auth_test_tag1.type_arr_list: mandatory attribute value missing in type read_auth_test_tag1"}
> {code}
>
> The assignment fails via both UI and rest api.
> In UI creation of attribute of such a type is not allowed but via rest api it is possible.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)