Skip to content

Commit

Permalink
Filter unnecessary jars and only look for openmetadata jars to regist…
Browse files Browse the repository at this point in the history
…er data json files (#13536)
  • Loading branch information
harshach authored and ulixius9 committed Nov 10, 2023
1 parent 264f8c6 commit 9e0820f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ private CommonUtil() {}
public static List<String> getResources(Pattern pattern) throws IOException {
ArrayList<String> resources = new ArrayList<>();
String classPath = System.getProperty("java.class.path", ".");
String[] classPathElements = classPath.split(File.pathSeparator);
List<String> classPathElements =
Arrays.stream(classPath.split(File.pathSeparator))
.filter(jarName -> jarName.toLowerCase().contains("openmetadata"))
.toList();

for (String element : classPathElements) {
File file = new File(element);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ActivityFeed",
"displayName": "Activity Feed KnowledgePanel",
"displayName": "Activity Feed",
"description": "Activity Feed KnowledgePanel shows Activity Feed,Mentions and Tasks that are assigned to User.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.ActivityFeed",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Announcements",
"displayName": "Announcements KnowledgePanel",
"displayName": "Announcements",
"description": "Announcements KnowledgePanel shows the Announcements from teams,users published on Data Assets.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.Announcements",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Following",
"displayName": "Following KnowledgePanel",
"displayName": "Following",
"description": "Following KnowledgePanel shows all the Assets that the User is Following.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.Following",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "KPI",
"displayName": "KPI KnowledgePanel",
"displayName": "KPI",
"description": "KPI KnowledgePanel shows the Organization's KPIs on description, owner coverage.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.KPI",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MyData",
"displayName": "MyData KnowledgePanel",
"displayName": "MyData",
"description": "MyData KnowledgePanel shows the list of Assets that is owned by User or User's Team.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.MyData",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TotalAssets",
"displayName": "Total Assets KnowledgePanel",
"displayName": "Total Assets",
"description": "Total Assets KnowledgePanel shows Data Asset growth across the organization.",
"entityType": "KnowledgePanel",
"fullyQualifiedName": "KnowledgePanel.TotalAssets",
Expand Down

0 comments on commit 9e0820f

Please sign in to comment.