Umesh Padashetty created ATLAS-3636:
---------------------------------------

             Summary: [Namespace-UI] Issues/ambiguous error messages while 
adding a new attribute in a Namespace
                 Key: ATLAS-3636
                 URL: https://issues.apache.org/jira/browse/ATLAS-3636
             Project: Atlas
          Issue Type: Bug
            Reporter: Umesh Padashetty
            Assignee: Keval Bhatt
         Attachments: Screenshot 2020-02-25 at 4.03.16 PM.png, Screenshot 
2020-02-25 at 4.06.24 PM.png, Screenshot 2020-02-25 at 4.07.15 PM.png, 
Screenshot 2020-02-25 at 4.08.33 PM.png, Screenshot 2020-02-25 at 4.18.39 PM.png

Multiple issues have been observed when we click on add attribute in 
admin>administration>Namespaces>\{existing_namespace}
 # If the new attribute name and other parameters like Type, Max length, 
Applicable Types are the same as an existing attribute, it is going ahead and 
updating the attribute silently instead of throwing "Attribute already exists" 
error.
 # If the new attribute being added has all the parameters same except 
Applicable Types
 ## If we are adding a new applicable type without removing the old one, then 
it is silently updating the older existing attribute with the new applicable 
type
 ## If we try to remove/provide empty applicable types, then an error is being 
thrown in UI which is very ambiguous. Error is something like "Cannot remove 
applicableEntityTypes in Attribute Def: Region, defined in namespace: Customer"
 # Once you get some error while adding an attribute (like step Step 2, 
Sub-step 2 above), the same error message is being displayed for the subsequent 
additions. 
 ## For instance, I tried to add a duplicate attribute with the name Region. 
And then tried to add a duplicate attribute with the name country. But while 
adding country attribute, I am getting "Cannot remove applicableEntityTypes in 
Attribute Def: Region, defined in namespace: Customer"
 ## After this any attempt to add any new attribute with an non-duplicate 
unique attribute thorws the same old error. I tried adding a new attribute 
called Region1, but still keep getting the same error "Cannot remove 
applicableEntityTypes in Attribute Def: Region, defined in namespace: Customer"
 ## One can successfully add a new attribute only after a page refresh

Attached screenshots.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to