Created 02-24-2017 04:04 AM
I created a subterm in Atals Web UI by selecting "Create Subterm" option under Catalogs. The message clearly displays subterm created. I can even retieve all the subterms using the api
http://host:port/api/atlas/v1/taxonomies/Catalog/terms
But they dont appear under Catalog dropdown menu.
On debugging I found Atlas to be calling an API
http://host:port/api/atlas/v1/taxonomies/Catalog/terms?hierarchy/path:.&_=1487799123750
which returns empty json
I changed this API to
http://host:port/api/atlas/v1/taxonomies/Catalog/terms?hierarchy/path:/
and this worked in my java application.
So I changed the URL building javascript TreeLayoutTerm.js to replace hierarchy/path:. -> hierarchy/path:/
Now the request that goes through web ui is something like
http://host:port/api/atlas/v1/taxonomies/Catalog/terms?hierarchy/path:/&_=1487799123750
But still it is fetching empty JSON.
Is this a bug of wrong path being sent to server or is there something I am missing like restart of depending services etc.
Any help would be highly appreciable
Created 02-28-2017 12:14 PM
treelayoutviewjs.txt@Poorvi Sachar,
Can you make this small change in fetchCollection: function(url, isParent) in Atlas server
webapp/atlas/js/views/business_catalog/TreeLayoutView.js at line 265 and try.
+ this.childCollection.fetch({ reset: true,cache:true });
Nixon
Created 02-28-2017 10:29 AM
What is HDP version or Apache Atlas release version you are using ?
Created 02-28-2017 11:27 AM
Created 02-28-2017 12:14 PM
treelayoutviewjs.txt@Poorvi Sachar,
Can you make this small change in fetchCollection: function(url, isParent) in Atlas server
webapp/atlas/js/views/business_catalog/TreeLayoutView.js at line 265 and try.
+ this.childCollection.fetch({ reset: true,cache:true });
Nixon
Created 02-28-2017 12:50 PM
@Nixon Rodrigues
Made the required changes but not able to see the taxonomy Subterms on UI.Created 02-28-2017 02:45 PM
@Nixon Rodrigues
Thanks this worked...earlier was not able to test the issue properly as was js was cached in the browser and was not fetching the updated js file..
Created 03-01-2017 12:15 PM
If my answer has resolved the issue, can you close this thread by accepting my Answers.
Created 03-01-2017 12:20 PM
@Nixon Rodrigues
Could you please explain it a bit as when I checked the TreeLayoutView.js file in hdp2.5 sandbox, the line(which you suggested me to change) in fetchCollection: function(url, isParent) is:
this.childCollection.fetch({ reset:true }); similar to what I have in my cluster but in case of hdp2.5 sandbox taxonomy terms are displayed without making the change but for the cluster the terms were not being shown earlier on UI but after the change suggested by you it worked.
Created 03-03-2017 09:54 AM
@Poorvi Sachar, can you provide version of you both the hdp (meaning working without fix and with fix) ?
Created 03-03-2017 06:55 PM
In HDP 2.5.0.0-1245, atlas version: 0.7.0.2.5 there were some IE issue which got fixed. to avoid caching issue &_=1487799123750 timestamp was appended to api url, but this introduced a regression in taxonomy.
And this bug is fixed in subsequent maint HDP releases, i provided you same fix for 2.5.3.0-37, atlas version: 0.7.0
Hope this clear the doubt.
Nixon