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 652DF200D2F for ; Wed, 1 Nov 2017 14:16:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 63BAE160BEA; Wed, 1 Nov 2017 13:16:08 +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 AA887160BE6 for ; Wed, 1 Nov 2017 14:16:07 +0100 (CET) Received: (qmail 48617 invoked by uid 500); 1 Nov 2017 13:16: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 48605 invoked by uid 99); 1 Nov 2017 13:16:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 13:16:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AF016183172; Wed, 1 Nov 2017 13:16:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id S6FDQVUoo1gO; Wed, 1 Nov 2017 13:16: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 EB3B65F36D; Wed, 1 Nov 2017 13:16:03 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 85A48E00A3; Wed, 1 Nov 2017 13:16:03 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 125BDC405F9; Wed, 1 Nov 2017 13:16:00 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8082521999671314475==" MIME-Version: 1.0 Subject: Re: Review Request 63460: ATLAS-2222 : UI, Search using entity and trait attributes - ", " in string attribute filter throws 400 Bad request. From: Nixon Rodrigues To: Ashutosh Mestry , keval bhatt , Madhan Neethiraj , Sharmadha Sainath , Nixon Rodrigues Cc: atlas , pratik pandey Date: Wed, 01 Nov 2017 13:16:00 -0000 Message-ID: <20171101131600.28996.49103@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Nixon Rodrigues X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/63460/ X-Sender: Nixon Rodrigues X-ReviewBoard-ShipIt: 1 References: <20171101110354.32367.36313@reviews-vm2.apache.org> In-Reply-To: <20171101110354.32367.36313@reviews-vm2.apache.org> X-ReviewBoard-ShipIt-Only: 1 Reply-To: Nixon Rodrigues X-ReviewRequest-Repository: atlas archived-at: Wed, 01 Nov 2017 13:16:08 -0000 --===============8082521999671314475== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63460/#review189795 ----------------------------------------------------------- Ship it! Ship It! - Nixon Rodrigues On Nov. 1, 2017, 11:03 a.m., pratik pandey wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63460/ > ----------------------------------------------------------- > > (Updated Nov. 1, 2017, 11:03 a.m.) > > > Review request for atlas, Ashutosh Mestry, keval bhatt, Madhan Neethiraj, Nixon Rodrigues, and Sharmadha Sainath. > > > Bugs: ATLAS:2222 > https://issues.apache.org/jira/browse/ATLAS:2222 > > > Repository: atlas > > > Description > ------- > > In UI , When string attribute filter contains comma , it is taken as separate attribute filter. > For example basic search : hive_table , filter : description = a , b > POST request body : > ```json > { > "excludeDeletedEntities":true, > "entityFilters":{ > "condition":"AND", > "criterion":[ > { > "attributeName":"description", > "operator":"eq", > "attributeValue":"a" > }, > { > "attributeName":"b", > "operator":"string" > } > ] > }, > "tagFilters":null, > "attributes":[ > > ], > "limit":25, > "offset":0, > "typeName":"hive_table", > "classification":null > } > ``` > > The search throws 400 Bad request with error notification "Attribute b not found for type hive_table". > > This is seen only in UI ,as when search is fired with attributeValue given as "a,b" using REST API , fetches correct results. > ```json > { > "excludeDeletedEntities":true, > "entityFilters":{ > "condition":"AND", > "criterion":[ > { > "attributeName":"description", > "operator":"eq", > "attributeValue":"a,b" > } > ] > }, > "tagFilters":null, > "attributes":[ > > ], > "limit":25, > "offset":0, > "typeName":"hdfs_path", > "classification":null > } > ``` > > > Diffs > ----- > > dashboardv2/public/js/utils/CommonViewFunction.js 37f14d5 > > > Diff: https://reviews.apache.org/r/63460/diff/1/ > > > Testing > ------- > > Done one round of sanity testing. > > > Thanks, > > pratik pandey > > --===============8082521999671314475==--