[jira] [Commented] (ATLAS-3815) Failed to execute bulk Elasticsearch mutation

2022-03-17 Thread Marcelo Baratela (Jira)


[ 
https://issues.apache.org/jira/browse/ATLAS-3815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508443#comment-17508443
 ] 

Marcelo Baratela commented on ATLAS-3815:
-

Hello,

We also experienced this issue a few times now. We tried using Gremlin to 
delete the attributes but with no success.

(We are using version 2.1.0)

> Failed to execute bulk Elasticsearch mutation
> -
>
> Key: ATLAS-3815
> URL: https://issues.apache.org/jira/browse/ATLAS-3815
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 2.0.0
>Reporter: Gaurav Sehgal
>Priority: Major
>
> Hi, I'm new to Atlas and getting this error while creating an entity. Not 
> sure if it is something to do with my setup. It will be great if someone can 
> help me with this.
> {code:java}
> 2020-05-27 11:21:56,775 ERROR - [pool-2-thread-4 - 
> f868b26e-f7b4-4159-8c6d-4e18e5b685b3:] ~ Failed to execute bulk Elasticsearch 
> mutation (ElasticSearchIndex:736)2020-05-27 11:21:56,775 ERROR - 
> [pool-2-thread-4 - f868b26e-f7b4-4159-8c6d-4e18e5b685b3:] ~ Failed to execute 
> bulk Elasticsearch mutation 
> (ElasticSearchIndex:736)java.lang.IllegalArgumentException: Multiple entries 
> with same key: 
> Action.className=org.janusgraph.diskstorage.indexing.StandardKeyInformation@4fc64277
>  and 
> Action.className=org.janusgraph.diskstorage.indexing.StandardKeyInformation@24f6faf8
>  at 
> com.google.common.collect.ImmutableMap.conflictException(ImmutableMap.java:215)
>  at 
> com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:209) 
> at 
> com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:147)
>  at 
> com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:110)
>  at 
> com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:393) 
> at 
> org.janusgraph.graphdb.database.IndexSerializer$IndexInfoRetriever$1.get(IndexSerializer.java:162)
>  at 
> org.janusgraph.diskstorage.es.ElasticSearchIndex.mutate(ElasticSearchIndex.java:703)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:155)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:152)
>  at 
> org.janusgraph.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:68)
>  at 
> org.janusgraph.diskstorage.util.BackendOperation.execute(BackendOperation.java:54)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction.flushInternal(IndexTransaction.java:152)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction.commit(IndexTransaction.java:133)
>  at 
> org.janusgraph.diskstorage.BackendTransaction.commitIndexes(BackendTransaction.java:141)
>  at 
> org.janusgraph.graphdb.database.StandardJanusGraph.commit(StandardJanusGraph.java:747)
>  at 
> org.janusgraph.graphdb.transaction.StandardJanusGraphTx.commit(StandardJanusGraphTx.java:1379)
>  at 
> org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph$GraphTransaction.doCommit(JanusGraphBlueprintsGraph.java:298)
>  at 
> org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.commit(AbstractTransaction.java:104)
>  at 
> org.apache.atlas.repository.graphdb.janus.AtlasJanusGraph.commit(AtlasJanusGraph.java:202)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.doCommit(GraphTransactionInterceptor.java:155)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.doCommitOrRollback(GraphTransactionInterceptor.java:150)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:89)
>  at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>  at 
> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
>  at 
> org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$EnhancerBySpringCGLIB$$660f9428.createOrUpdate()
>  at org.apache.atlas.web.rest.EntityREST.createOrUpdate(EntityREST.java:293) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>  at 
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
>  at 
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>  at 
> 

Re: Review Request 73836: ATLAS-4551: Add maven jacoco plugin for code coverage

2022-03-17 Thread Ashutosh Mestry

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73836/#review224173
---


Ship it!




Ship It!

- Ashutosh Mestry


On Feb. 9, 2022, 2:58 p.m., Pinal Shah wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73836/
> ---
> 
> (Updated Feb. 9, 2022, 2:58 p.m.)
> 
> 
> Review request for atlas, Jayendra Parab and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-4551
> https://issues.apache.org/jira/browse/ATLAS-4551
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> Jacoco maven plugin generates test coverage report by measuring lines of code 
> exercised during the tests
> 
> *Step*
> mvn clean install
> 
> *Report*
> report will be generated in /target/site/jacoco directory of each module.
> 
> For more Graphical interface, import the generated reports of jacoco to 
> SonarQube
> sonar plugin will just look at the above path for the xml.
>  
> mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -DskipTests 
> -Dsonar.projectKey=Atlas -Dsonar.projectName=Atlas 
> -Drat.numUnapprovedLicenses=1 
> -Dsonar.login=bc6e210c3f4c1873eee82e31059215a9deeff526
> 
> 
> Diffs
> -
> 
>   pom.xml 2f7b00af3 
> 
> 
> Diff: https://reviews.apache.org/r/73836/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Pinal Shah
> 
>



[jira] [Commented] (ATLAS-3815) Failed to execute bulk Elasticsearch mutation

2022-03-17 Thread Rafael Augusto Monteiro (Jira)


[ 
https://issues.apache.org/jira/browse/ATLAS-3815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508434#comment-17508434
 ] 

Rafael Augusto Monteiro commented on ATLAS-3815:


Hi,

We had the same issue. Using Gremlin to delete the typedef vertex yields the 
same error as well.

The same issue does not seems to happen in the docker environment (using hbase 
and solr) but happens in a deployed env (using elastic and cassandra)

Any updates on this? Is there any way to "force delete" those vertices manually 
in Elastic or Cassandra?

> Failed to execute bulk Elasticsearch mutation
> -
>
> Key: ATLAS-3815
> URL: https://issues.apache.org/jira/browse/ATLAS-3815
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 2.0.0
>Reporter: Gaurav Sehgal
>Priority: Major
>
> Hi, I'm new to Atlas and getting this error while creating an entity. Not 
> sure if it is something to do with my setup. It will be great if someone can 
> help me with this.
> {code:java}
> 2020-05-27 11:21:56,775 ERROR - [pool-2-thread-4 - 
> f868b26e-f7b4-4159-8c6d-4e18e5b685b3:] ~ Failed to execute bulk Elasticsearch 
> mutation (ElasticSearchIndex:736)2020-05-27 11:21:56,775 ERROR - 
> [pool-2-thread-4 - f868b26e-f7b4-4159-8c6d-4e18e5b685b3:] ~ Failed to execute 
> bulk Elasticsearch mutation 
> (ElasticSearchIndex:736)java.lang.IllegalArgumentException: Multiple entries 
> with same key: 
> Action.className=org.janusgraph.diskstorage.indexing.StandardKeyInformation@4fc64277
>  and 
> Action.className=org.janusgraph.diskstorage.indexing.StandardKeyInformation@24f6faf8
>  at 
> com.google.common.collect.ImmutableMap.conflictException(ImmutableMap.java:215)
>  at 
> com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:209) 
> at 
> com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:147)
>  at 
> com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:110)
>  at 
> com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:393) 
> at 
> org.janusgraph.graphdb.database.IndexSerializer$IndexInfoRetriever$1.get(IndexSerializer.java:162)
>  at 
> org.janusgraph.diskstorage.es.ElasticSearchIndex.mutate(ElasticSearchIndex.java:703)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:155)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:152)
>  at 
> org.janusgraph.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:68)
>  at 
> org.janusgraph.diskstorage.util.BackendOperation.execute(BackendOperation.java:54)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction.flushInternal(IndexTransaction.java:152)
>  at 
> org.janusgraph.diskstorage.indexing.IndexTransaction.commit(IndexTransaction.java:133)
>  at 
> org.janusgraph.diskstorage.BackendTransaction.commitIndexes(BackendTransaction.java:141)
>  at 
> org.janusgraph.graphdb.database.StandardJanusGraph.commit(StandardJanusGraph.java:747)
>  at 
> org.janusgraph.graphdb.transaction.StandardJanusGraphTx.commit(StandardJanusGraphTx.java:1379)
>  at 
> org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph$GraphTransaction.doCommit(JanusGraphBlueprintsGraph.java:298)
>  at 
> org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.commit(AbstractTransaction.java:104)
>  at 
> org.apache.atlas.repository.graphdb.janus.AtlasJanusGraph.commit(AtlasJanusGraph.java:202)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.doCommit(GraphTransactionInterceptor.java:155)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.doCommitOrRollback(GraphTransactionInterceptor.java:150)
>  at 
> org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:89)
>  at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>  at 
> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
>  at 
> org.apache.atlas.repository.store.graph.v2.AtlasEntityStoreV2$$EnhancerBySpringCGLIB$$660f9428.createOrUpdate()
>  at org.apache.atlas.web.rest.EntityREST.createOrUpdate(EntityREST.java:293) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>  at 
> 

[jira] [Commented] (ATLAS-3712) Add 'isAppendOnPartialUpdate' option in ML model to append updates

2022-03-17 Thread hongsp (Jira)


[ 
https://issues.apache.org/jira/browse/ATLAS-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508208#comment-17508208
 ] 

hongsp commented on ATLAS-3712:
---

1、springboot project,pom:
{code:java}

org.apache.atlas
atlas-client-v2
2.2.0
 {code}
 

2、which one API is Full-update?
{code:java}
atlasClientV2.updateEntity(entityWithExtInfo);{code}
 

the attribute type of array,call this APi will be appended to 
value,whether  'isAppendOnPartialUpdate' true or false.how to overwrite value?

3、which one API is partial-update API?

 
{code:java}
atlasClientV2.partialUpdateEntityByGuid();{code}
the attribute type of array,call this APi will throw exception 
 "ATLAS-400-00-027,atlasEntityTypeName.arrribute : attribute update 
not supported",whether  'isAppendOnPartialUpdate' true or false.

 

> Add 'isAppendOnPartialUpdate' option in ML model to append updates
> --
>
> Key: ATLAS-3712
> URL: https://issues.apache.org/jira/browse/ATLAS-3712
> Project: Atlas
>  Issue Type: Improvement
>  Components:  atlas-core
>Affects Versions: 3.0.0
>Reporter: Na Li
>Assignee: Na Li
>Priority: Major
> Fix For: 2.1.0, 3.0.0
>
>
> Atlas adds a new feature to allow client to append attributes during 
> partial-update operation in ATLAS-3700.
> We need to add 'isAppendOnPartialUpdate' option in ML model at 
> [https://github.com/apache/atlas/blob/master/addons/models/4000-MachineLearning/4010-ml_model.json]
>  to append updates using this new feature.
> Example:
> {code:java}
> {
> "name":"metadata",
> "typeName":"map",
> "isIndexable": false,
> "isOptional":  true,
> "isUnique":false,
> "options": {
>   "isAppendOnPartialUpdate": "true"
> }
>   } {code}
> The value specified for this attribute in partial-update API calls will be 
> appended to existing value - if present.
> Full-update API calls will overwrite the value of the attribute, as it does 
> currently; there is no change in full-update behavior.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (ATLAS-3985) Not able to assign classification with mandatory attribute of type "array"

2022-03-17 Thread Prasad P. Pawar (Jira)


 [ 
https://issues.apache.org/jira/browse/ATLAS-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prasad P. Pawar updated ATLAS-3985:
---
Attachment: (was: 
0001-ATLAS-3985-3-Not-able-to-assign-classification-with-.patch)

> Not able to assign classification with mandatory attribute of type 
> "array" 
> ---
>
> 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-3-Not-able-to-assign-classification-with-.patch, 
> 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*" 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",
>  "isOptional":false,
>  "cardinality":"LIST",
>  "valuesMinCount":1,
>  "valuesMaxCount":2147483647,
>  "isUnique":false,
>  "isIndexable":false
>  },
>  {
>  "name":"type_set",
>  "typeName":"array",
>  "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" 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)


[jira] [Updated] (ATLAS-3985) Not able to assign classification with mandatory attribute of type "array"

2022-03-17 Thread Prasad P. Pawar (Jira)


 [ 
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-3-Not-able-to-assign-classification-with-.patch

> Not able to assign classification with mandatory attribute of type 
> "array" 
> ---
>
> 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-3-Not-able-to-assign-classification-with-.patch, 
> 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*" 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",
>  "isOptional":false,
>  "cardinality":"LIST",
>  "valuesMinCount":1,
>  "valuesMaxCount":2147483647,
>  "isUnique":false,
>  "isIndexable":false
>  },
>  {
>  "name":"type_set",
>  "typeName":"array",
>  "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" 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)


[jira] [Updated] (ATLAS-3985) Not able to assign classification with mandatory attribute of type "array"

2022-03-17 Thread Prasad P. Pawar (Jira)


 [ 
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-3-Not-able-to-assign-classification-with-.patch

> Not able to assign classification with mandatory attribute of type 
> "array" 
> ---
>
> 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-3-Not-able-to-assign-classification-with-.patch, 
> 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*" 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",
>  "isOptional":false,
>  "cardinality":"LIST",
>  "valuesMinCount":1,
>  "valuesMaxCount":2147483647,
>  "isUnique":false,
>  "isIndexable":false
>  },
>  {
>  "name":"type_set",
>  "typeName":"array",
>  "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" 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)


[jira] [Updated] (ATLAS-3985) Not able to assign classification with mandatory attribute of type "array"

2022-03-17 Thread Prasad P. Pawar (Jira)


 [ 
https://issues.apache.org/jira/browse/ATLAS-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prasad P. Pawar updated ATLAS-3985:
---
Attachment: (was: 
0001-ATLAS-3985-3-Not-able-to-assign-classification-with-.patch)

> Not able to assign classification with mandatory attribute of type 
> "array" 
> ---
>
> 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-3-Not-able-to-assign-classification-with-.patch, 
> 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*" 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",
>  "isOptional":false,
>  "cardinality":"LIST",
>  "valuesMinCount":1,
>  "valuesMaxCount":2147483647,
>  "isUnique":false,
>  "isIndexable":false
>  },
>  {
>  "name":"type_set",
>  "typeName":"array",
>  "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" 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)