Skip to content

Treat default as a Full Role and Explicitly Display It in the Grid #78

@siarhei-fedziukovich

Description

@siarhei-fedziukovich

Name and Version

0.4.0

What steps will reproduce the bug?

based on inspired by: epam/ai-dial-admin-frontend#53
...

generated core config:

What is the expected behavior?

"eu.anthropic.claude-3-7-sonnet-20250219-v1:0": {
  "roleLimits": {
    "test-role": {
      "enabled": false
    },
    "default": {
      "enabled": true,
      "minute": "100000",
      "day": "100000"
    }
  },
  "isPublic": true,
  "defaultRoleLimit": {
    "enabled": true
  }
}

What do you see instead?

"eu.anthropic.claude-3-7-sonnet-20250219-v1:0": {
  "roleLimits": {
    "test-role": {
      "enabled": false
    }
  },
  "isPublic": true,
  "defaultRoleLimit": {
    "enabled": true,
    "minute": "100000",
    "day": "100000"
  }
}

Additional information

Acceptance Criteria

  • The default role is treated as a fully-fledged role in the system.
  • The default role is always displayed in the custom role grid(roleLimits base field).
  • The default role can be explicitly selected when associating it with other roles.
  • The defaultRoleLimit property remains a configuration property for setting default values for role limits if not explicitly defined.
  • Existing configurations are migrated to include the default role explicitly in roleLimits.

Metadata

Metadata

Labels

PRIORITY-mediumbugIssues or problems that need to be fixed.

Type

No type

Projects

Status

To-Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions