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

Favorites feature #158

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Favorites feature #158

wants to merge 5 commits into from

Conversation

jrauh01
Copy link
Collaborator

@jrauh01 jrauh01 commented Jan 8, 2025

No description provided.

@jrauh01 jrauh01 self-assigned this Jan 8, 2025
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jan 8, 2025
@jrauh01 jrauh01 requested a review from lippserd January 8, 2025 08:09
@lippserd lippserd requested a review from jhoxhaa January 13, 2025 08:32
schema/mysql/schema.sql Outdated Show resolved Hide resolved
schema/mysql/schema.sql Outdated Show resolved Hide resolved
@jrauh01 jrauh01 requested a review from jhoxhaa January 16, 2025 13:10
@@ -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,
Copy link
Member

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)
Copy link
Member

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.

Copy link
Member

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 .

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants