Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IKC-418 Remove unused function #412

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading