Skip to content

Commit

Permalink
Merge pull request #412 from Consdata/IKC-418
Browse files Browse the repository at this point in the history
IKC-418 Remove unused function
  • Loading branch information
pbelke authored Nov 21, 2024
2 parents 968a35c + 00854ed commit 583656e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public enum SystemFunctionName {
@FieldNameConstants.Include TOPIC_LIST,
@FieldNameConstants.Include TOPIC_CREATE,
@FieldNameConstants.Include TOPIC_UPDATE,
@FieldNameConstants.Include TOPIC_DETAILS,
@FieldNameConstants.Include TOPIC_DELETE,
@FieldNameConstants.Include TOPIC_MESSAGES,
@FieldNameConstants.Include TOPIC_SEND_MESSAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void updateTopicPartitions(@RequestBody TopicData newTopic, @RequestParam
topicService.updateTopicPartitions(newTopic, serverId);
}

@RolesAllowed({Fields.TOPIC_DETAILS, Fields.TOPIC_UPDATE})
@RolesAllowed(Fields.TOPIC_UPDATE)
@GetMapping("/{topicName}")
@EntryExitLogger
public TopicData getTopicData(@PathVariable("topicName") String topicName, @RequestParam("serverId") String serverId) throws KouncilRuntimeException {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DELETE FROM system_functions_user_groups where function_id = (select id from system_function where name = 'TOPIC_DETAILS');
DELETE FROM system_function where name='TOPIC_DETAILS';

commit;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export enum SystemFunctionName {
TOPIC_LIST = 'TOPIC_LIST',
TOPIC_CREATE = 'TOPIC_CREATE',
TOPIC_UPDATE = 'TOPIC_UPDATE',
TOPIC_DETAILS = 'TOPIC_DETAILS',
TOPIC_DELETE = 'TOPIC_DELETE',
TOPIC_MESSAGES = 'TOPIC_MESSAGES',
TOPIC_SEND_MESSAGE = 'TOPIC_SEND_MESSAGE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,162 +25,156 @@ export class FunctionsDemoService implements FunctionsService {
},
{
id: 3,
name: SystemFunctionName.TOPIC_DETAILS,
label: 'View topic details',
functionGroup: FunctionGroup.TOPIC
},
{
id: 4,
name: SystemFunctionName.TOPIC_UPDATE,
label: 'Update topic',
functionGroup: FunctionGroup.TOPIC
},
{
id: 5,
id: 4,
name: SystemFunctionName.TOPIC_DELETE,
label: 'Delete topic',
functionGroup: FunctionGroup.TOPIC
},
{
id: 6,
id: 5,
name: SystemFunctionName.TOPIC_MESSAGES,
label: 'View topic messages',
functionGroup: FunctionGroup.TOPIC
},
{
id: 7,
id: 6,
name: SystemFunctionName.TOPIC_SEND_MESSAGE,
label: 'Send message',
functionGroup: FunctionGroup.TOPIC
},
{
id: 8,
id: 7,
name: SystemFunctionName.TOPIC_RESEND_MESSAGE,
label: 'Resend message',
functionGroup: FunctionGroup.TOPIC
},
{
id: 9,
id: 8,
name: SystemFunctionName.CONSUMER_GROUP_LIST,
label: 'View consumer group list',
functionGroup: FunctionGroup.CONSUMER_GROUP
},
{
id: 10,
id: 9,
name: SystemFunctionName.CONSUMER_GROUP_DELETE,
label: 'Delete consumer group',
functionGroup: FunctionGroup.CONSUMER_GROUP
},
{
id: 11,
id: 10,
name: SystemFunctionName.CONSUMER_GROUP_DETAILS,
label: 'View consumer group details',
functionGroup: FunctionGroup.CONSUMER_GROUP
},
{
id: 12,
id: 11,
name: SystemFunctionName.TRACK_LIST,
label: 'View event track list',
functionGroup: FunctionGroup.TOPIC
},
{
id: 13,
id: 12,
name: SystemFunctionName.SCHEMA_LIST,
label: 'View schema list',
functionGroup: FunctionGroup.SCHEMA_REGISTRY
},
{
id: 14,
id: 13,
name: SystemFunctionName.SCHEMA_DETAILS,
label: 'View schema details',
functionGroup: FunctionGroup.SCHEMA_REGISTRY
},
{
id: 15,
id: 14,
name: SystemFunctionName.SCHEMA_CREATE,
label: 'Create new schema',
functionGroup: FunctionGroup.SCHEMA_REGISTRY
},
{
id: 16,
id: 15,
name: SystemFunctionName.SCHEMA_UPDATE,
label: 'Update schema',
functionGroup: FunctionGroup.SCHEMA_REGISTRY
},
{
id: 17,
id: 16,
name: SystemFunctionName.SCHEMA_DELETE,
label: 'Delete schema',
functionGroup: FunctionGroup.SCHEMA_REGISTRY
},
{
id: 18,
id: 17,
name: SystemFunctionName.CLUSTER_LIST,
label: 'Cluster list',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 19,
id: 18,
name: SystemFunctionName.CLUSTER_CREATE,
label: 'Create new cluster',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 20,
id: 19,
name: SystemFunctionName.CLUSTER_UPDATE,
label: 'Update cluster',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 21,
id: 20,
name: SystemFunctionName.CLUSTER_DETAILS,
label: 'View cluster details',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 22,
id: 21,
name: SystemFunctionName.CLUSTER_DELETE,
label: 'Delete cluster',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 23,
id: 22,
name: SystemFunctionName.BROKERS_LIST,
label: 'View broker list',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 24,
id: 23,
name: SystemFunctionName.BROKER_DETAILS,
label: 'View broker details',
functionGroup: FunctionGroup.CLUSTER
},
{
id: 25,
id: 24,
name: SystemFunctionName.USER_GROUPS,
label: 'Manage user groups',
functionGroup: FunctionGroup.ADMIN
},
{
id: 26,
id: 25,
name: SystemFunctionName.USER_GROUPS_LIST,
label: 'Groups list',
functionGroup: FunctionGroup.ADMIN
},
{
id: 27,
id: 26,
name: SystemFunctionName.USER_GROUP_CREATE,
label: 'Add new group',
functionGroup: FunctionGroup.ADMIN
},
{
id: 28,
id: 27,
name: SystemFunctionName.USER_GROUP_UPDATE,
label: 'Update group',
functionGroup: FunctionGroup.ADMIN
},
{
id: 29,
id: 28,
name: SystemFunctionName.USER_GROUP_DELETE,
label: 'Delete group',
functionGroup: FunctionGroup.ADMIN
Expand Down
Loading

0 comments on commit 583656e

Please sign in to comment.