Skip to content

Commit

Permalink
Merge pull request #90 from alf-mindshift/master
Browse files Browse the repository at this point in the history
Do not show hidden nodes in the search result
  • Loading branch information
drewbanin authored May 12, 2020
2 parents eeb35d1 + 6f2a925 commit ebe7c49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/services/project_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ angular
return _.includes(['model', 'source', 'seed', 'snapshot', 'analysis'], node.resource_type);
});

service.project.searchable = search_nodes.concat(search_macros);
service.project.searchable = _.filter(search_nodes.concat(search_macros), function(obj) {
// It should not be possible to search for hidden documentation
return !obj.docs || obj.docs.show;
});
service.loaded.resolve();
});
}
Expand Down

0 comments on commit ebe7c49

Please sign in to comment.