Skip to content

Conversation

phw
Copy link
Member

@phw phw commented Jan 8, 2025

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

This is a follow up for #2545, which added the genre and folksonomy tags variables. During testing I found some issues with the behavior. The new variables were not properly created as hidden variables. Also the merging of variables from different levels was not applied consistently and setting the genre tag from the genre and folksonomy values was only fully applied on album reload.

Solution

  • Save ~folksonomy_tags and ~genres as hidden variables
  • Fix merging tags from different levels
  • Fix excluding genre tags from ~folksonomy_tags

@phw phw requested a review from zas January 8, 2025 18:09
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

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

BTW, tests didn't catch the issues you reported, those might need to be improved.
The new code looks much better to me :)

A print() was forgotten.

- Save ~folksonomy_tags and ~genres as hidden variables
- Fix merging tags from different levels
- Fix excluding genre tags from ~folksonomy_tags
@phw phw force-pushed the fix_folksonomy_tags branch from ec612f4 to 893c3ed Compare January 9, 2025 07:50
@phw
Copy link
Member Author

phw commented Jan 9, 2025

@zas I removed the print statement and added extended tests for the track genre handling.

@phw phw force-pushed the fix_folksonomy_tags branch from 893c3ed to 8763d48 Compare January 9, 2025 07:54
@phw phw force-pushed the fix_folksonomy_tags branch from 8763d48 to d222b6e Compare January 9, 2025 07:57
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

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

LGTM

@phw phw merged commit c9b87bc into metabrainz:master Jan 9, 2025
48 checks passed
@phw phw deleted the fix_folksonomy_tags branch January 9, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants