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

Show custom user tags on beatmapset #11750

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

notbakaneko
Copy link
Collaborator

Something like this?

This isn't the final display, just something to get going (There was some discussion about show counts and colour coding the tag types as well, differentiating user/mapper tags, etc), those will be separate; I don't think there's anything set up to write tags yet either? 👀

I just combined the mapper and user tags into the same tag it they're the same for now.
The Beatmap top tag cache now only caches the id and count, and the tags are moved into a local singleton cache.
The api.beatmap.tags.index endpoint is also removed since that doesn't seem useful when you're probably wanting the tags together with the Beatmap/Beatmapset with the mapper tags as well?

I'm also splitting up the search and indexing part into a separate PR after shuffling some things around.

app/Models/Tag.php Outdated Show resolved Hide resolved
resources/js/interfaces/beatmapset-json.ts Outdated Show resolved Hide resolved
app/Models/BeatmapTag.php Show resolved Hide resolved
app/Singletons/Tags.php Outdated Show resolved Hide resolved
// TODO: Add option to multi query when beatmapset requests all tags for beatmaps?
return $this->memoize(
__FUNCTION__,
fn () => cache_remember_mutexed(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mutexed seems not very useful when it's just db access? Like, nothing would work if the db is unhealthy.

resources/js/beatmapsets-show/controller.ts Outdated Show resolved Hide resolved
resources/js/beatmapsets-show/controller.ts Show resolved Hide resolved
resources/js/beatmapsets-show/controller.ts Outdated Show resolved Hide resolved
resources/js/beatmapsets-show/controller.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

3 participants