Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B0A08200CE0 for ; Wed, 26 Jul 2017 18:36:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF42B1692BA; Wed, 26 Jul 2017 16:36:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 09FC31692BB for ; Wed, 26 Jul 2017 18:36:06 +0200 (CEST) Received: (qmail 77055 invoked by uid 500); 26 Jul 2017 16:36:06 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 76907 invoked by uid 99); 26 Jul 2017 16:36:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 16:36:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A517B1A0991 for ; Wed, 26 Jul 2017 16:36:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.001 X-Spam-Level: X-Spam-Status: No, score=-98.001 tagged_above=-999 required=6.31 tests=[KAM_BADIPHTTP=2, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6BKq5MiljqSY for ; Wed, 26 Jul 2017 16:36:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 203EB6111A for ; Wed, 26 Jul 2017 16:36:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 25A11E0E2B for ; Wed, 26 Jul 2017 16:36:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 50EE424D2F for ; Wed, 26 Jul 2017 16:36:01 +0000 (UTC) Date: Wed, 26 Jul 2017 16:36:01 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@atlas.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-1879) Updating classification removes some properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Jul 2017 16:36:07 -0000 [ https://issues.apache.org/jira/browse/ATLAS-1879?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1610= 1894#comment-16101894 ]=20 ASF GitHub Bot commented on ATLAS-1879: --------------------------------------- Github user mneethiraj commented on a diff in the pull request: https://github.com/apache/incubator-atlas/pull/39#discussion_r129626331 =20 --- Diff: repository/src/main/java/org/apache/atlas/repository/store/gr= aph/AtlasTypeDefGraphStore.java --- @@ -381,6 +381,12 @@ public AtlasTypesDef updateTypesDef(AtlasTypesDef = typesDef) throws AtlasBaseExce =20 AtlasTypesDef ret =3D updateGraphStore(typesDef, ttr); =20 + try { + ttr.updateTypesWithNoRefResolve(ret); --- End diff -- =20 Call updateTypes(), instead of updateTypesWithNoRefResolve() - "*WithNo= RefResolve()" calls will not run resolveReferences() hence will leave type = objects with no reference to other types (for example: an entity-type will = not have its references set for other entity-types references by it). > Updating classification removes some properties > ----------------------------------------------- > > Key: ATLAS-1879 > URL: https://issues.apache.org/jira/browse/ATLAS-1879 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Affects Versions: 0.8-incubating > Reporter: Laura Ngo > Assignee: P=C3=A9ter Gerg=C5=91 Barna > Attachments: Atlas-1789.postman_collection.json > > > * Created classification via POST.=20 > * Updated via PUT > * Lost properties > POST http://127.0.0.1:21000/api/atlas/v2/types/typedefs > {code} > { > "classificationDefs": [{ > "name": "test_classification_11", > "description": "", > "createdBy" : "admin", > "superTypes": [], > "attributeDefs": [{ > "name" : "test_class_11", > "typeName" : "string", > "isOptional" : true, > "isUnique" : true, > "isIndexable" : true, > "cardinality": "SINGLE", > "valuesMinCount": 0, > "valuesMaxCount": 1 > }] > }], > "entityDefs": [], > "enumDefs": [], > "structDefs": [] > } > {code} > GET http://127.0.0.1:21000/api/atlas/v2/types/classification/name/test_cl= assification_11 > {code} > { > "category": "CLASSIFICATION", > "guid": "83162fe1-4bb4-4a87-b2b8-364e751a1265", > "createdBy": "admin", > "createTime": 1497485890857, > "updateTime": 1497485890857, > "version": 1, > "name": "test_classification_11", > "description": "", > "typeVersion": "1.0", > "attributeDefs": [ > { > "name": "test_class_11", > "typeName": "string", > "isOptional": true, > "cardinality": "SINGLE", > "valuesMinCount": 0, > "valuesMaxCount": 1, > "isUnique": true, > "isIndexable": true > } > ], > "superTypes": [], > } > {code} > PUT http://127.0.0.1:21000/api/atlas/v2/types/typedefs > Update attribute. > GET http://127.0.0.1:21000/api/atlas/v2/types/classification/name/test_cl= assification_11 > {code} > { > "category": "CLASSIFICATION", > "createdBy": "admin", > "name": "test_classification_11", > "description": "", > "attributeDefs": [ > { > "name": "test_class_11", > "typeName": "string", > "isOptional": true, > "cardinality": "SINGLE", > "valuesMinCount": 0, > "valuesMaxCount": 1, > "isUnique": true, > "isIndexable": false > } > ], > "superTypes": [], > } > {code} > Some properties are missing after PUT update of attribute "isIndexable" -- This message was sent by Atlassian JIRA (v6.4.14#64029)