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

Itemviews: Introduce new classes Columns & Column, simplfify code #2466

Merged
merged 17 commits into from May 13, 2024

Conversation

zas
Copy link
Collaborator

@zas zas commented May 12, 2024

Summary

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

Problem

  • JIRA ticket (optional): PICARD-XXX

Solution

Action

Additional actions required:

  • Update Picard documentation (please include a reference to this PR)
  • Other (please specify below)

@zas zas requested a review from phw May 12, 2024 23:06
@zas zas mentioned this pull request May 12, 2024
7 tasks
@zas zas marked this pull request as ready for review May 12, 2024 23:17
@zas zas force-pushed the itemviews_columns branch 2 times, most recently from 987ffca to 3c9545d Compare May 13, 2024 08:50
phw
phw previously approved these changes May 13, 2024
Copy link
Member

@phw phw left a comment

Choose a reason for hiding this comment

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

Good work, this makes the code much more readable and maintainable. Especially with getting rid of all those special cases for certain columns inside the various itemviews functions.

A small question / discussion about the ColumnSortType enum, but otherwise I think this is good to merge.

picard/ui/itemviews/columns.py Outdated Show resolved Hide resolved
@zas zas merged commit 4fe15e0 into metabrainz:master May 13, 2024
45 checks passed
@zas zas deleted the itemviews_columns branch May 13, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants