Skip to content

Commit

Permalink
Remove GRN types for collections (#20676)
Browse files Browse the repository at this point in the history
This was part of an entity collection that was never finished and is not
in use.
  • Loading branch information
bernd authored Oct 11, 2024
1 parent f217c55 commit be0c35b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions graylog2-server/src/main/java/org/graylog/grn/GRNTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

public class GRNTypes {
public static final GRNType BUILTIN_TEAM = GRNType.create("builtin-team", "XXX-NOT-A-REAL-TYPE-XXX:");
public static final GRNType COLLECTION = GRNType.create("collection", "collections:");
public static final GRNType DASHBOARD = GRNType.create("dashboard", "dashboards:");
public static final GRNType EVENT_DEFINITION = GRNType.create("event_definition", "eventdefinitions:");
public static final GRNType EVENT_NOTIFICATION = GRNType.create("notification", "eventnotifications:");
Expand All @@ -40,7 +39,6 @@ public class GRNTypes {
// TODO find a way to unify these
private static final ImmutableSet<GRNType> BUILTIN_TYPES = ImmutableSet.<GRNType>builder()
.add(BUILTIN_TEAM)
.add(COLLECTION)
.add(DASHBOARD)
.add(EVENT_DEFINITION)
.add(EVENT_NOTIFICATION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class GRNTypesModule extends PluginModule {
protected void configure() {
// TODO: Implement missing GRN descriptor providers
addGRNType(GRNTypes.BUILTIN_TEAM, FallbackGRNDescriptorProvider.class);
addGRNType(GRNTypes.COLLECTION, FallbackGRNDescriptorProvider.class);
addGRNType(GRNTypes.DASHBOARD, ViewGRNDescriptorProvider.class);
addGRNType(GRNTypes.EVENT_DEFINITION, EventDefinitionGRNDescriptorProvider.class);
addGRNType(GRNTypes.EVENT_NOTIFICATION, EventNotificationGRNDescriptorProvider.class);
Expand Down

0 comments on commit be0c35b

Please sign in to comment.