-
Notifications
You must be signed in to change notification settings - Fork 2
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
Favorites feature #158
base: main
Are you sure you want to change the base?
Favorites feature #158
Conversation
schema/mysql/schema.sql
Outdated
@@ -1003,6 +1003,12 @@ CREATE TABLE stateful_set_owner ( | |||
PRIMARY KEY (stateful_set_uuid, owner_uuid) | |||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; | |||
|
|||
CREATE TABLE favorite ( | |||
resource_uuid binary(16) NOT NULL, | |||
username varchar(255) NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be varchar(254) COLLATE utf8mb4_unicode_ci NOT NULL
to be consistent with the Icinga Web schema.
kind varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | ||
username varchar(254) COLLATE utf8mb4_unicode_ci NOT NULL, | ||
PRIMARY KEY (resource_uuid, username), | ||
INDEX (kind, username) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also always add a name for the index. Please see the Icinga DB schema for examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also flip the index as we could add an "All My Favorites" view .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would add an order/priority column. We could then also add a feature to change the display order of the favorites.
No description provided.