|
@@ -316,6 +316,17 @@ var DataCatalog = (function () {
|
|
|
mergeAttribute('navOptPopularity', CACHEABLE_TTL.optimizer);
|
|
mergeAttribute('navOptPopularity', CACHEABLE_TTL.optimizer);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param {Object} options
|
|
|
|
|
+ * @param {string|string[]} options.path
|
|
|
|
|
+ * @return {DataCatalogEntry}
|
|
|
|
|
+ */
|
|
|
|
|
+ DataCatalog.prototype.getKnownEntry = function (options) {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+ var identifier = typeof options.path === 'string' ? options.path : options.path.join('.');
|
|
|
|
|
+ return self.entries[identifier];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @param {Object} options
|
|
* @param {Object} options
|
|
|
* @param {string|string[]} options.path
|
|
* @param {string|string[]} options.path
|
|
@@ -615,6 +626,14 @@ var DataCatalog = (function () {
|
|
|
self.navOptPopularityForChildrenPromise = undefined;
|
|
self.navOptPopularityForChildrenPromise = undefined;
|
|
|
|
|
|
|
|
self.childrenPromise = undefined;
|
|
self.childrenPromise = undefined;
|
|
|
|
|
+
|
|
|
|
|
+ if (self.path.length) {
|
|
|
|
|
+ var parent = self.dataCatalog.getKnownEntry({ path: self.path.slice(0, self.path.length - 1) });
|
|
|
|
|
+ if (parent) {
|
|
|
|
|
+ parent.navigatorMetaForChildrenPromise = undefined;
|
|
|
|
|
+ parent.navOptPopularityForChildrenPromise = undefined;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -864,6 +883,7 @@ var DataCatalog = (function () {
|
|
|
var matchingChildEntry = childEntryIndex[(entity.original_name || entity.originalName).toLowerCase()];
|
|
var matchingChildEntry = childEntryIndex[(entity.original_name || entity.originalName).toLowerCase()];
|
|
|
if (matchingChildEntry) {
|
|
if (matchingChildEntry) {
|
|
|
matchingChildEntry.navigatorMeta = entity;
|
|
matchingChildEntry.navigatorMeta = entity;
|
|
|
|
|
+ entity.hueTimestamp = Date.now();
|
|
|
matchingChildEntry.navigatorMetaPromise = $.Deferred().resolve(matchingChildEntry.navigatorMeta).promise();
|
|
matchingChildEntry.navigatorMetaPromise = $.Deferred().resolve(matchingChildEntry.navigatorMeta).promise();
|
|
|
if (entity && matchingChildEntry.commentObservable) {
|
|
if (entity && matchingChildEntry.commentObservable) {
|
|
|
matchingChildEntry.commentObservable(matchingChildEntry.getResolvedComment());
|
|
matchingChildEntry.commentObservable(matchingChildEntry.getResolvedComment());
|