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

Use structure_title for populating structure list #6105

Merged
merged 5 commits into from
Nov 11, 2024

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Nov 7, 2024

We have completely reworked how media object, master file, and playlist item titles are generated/displayed so limiting the creation of a display title from filename to only when there are multiple sections is no longer necessary.

Actually, we created a method called structure_title specifically for populating the structure list but apparently never switched to it. Reverted the changes to display_title and tests, switched the canvas presenter to use structure_title instead.

Related issue: #6001

@masaball masaball force-pushed the display_section_title branch from c7bbc6e to 952ec1b Compare November 8, 2024 16:27
We have completely reworked how media object, master file, and playlist
item titles are generated/displayed so limiting the creation of a
display title from filename to only when there are multiple sections is
no longer necessary.
@masaball masaball force-pushed the display_section_title branch from 952ec1b to 677cae9 Compare November 8, 2024 18:26
@masaball masaball changed the title Populate section title with filename when there is one section Use structure_title for populating structure list Nov 8, 2024
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

Can you please add a test which shows this difference between these two methods? (A test which would fail with display_title but passes with structure_title.)

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for adding the test!

@masaball masaball merged commit bf27f8c into develop Nov 11, 2024
2 checks passed
@masaball masaball deleted the display_section_title branch November 11, 2024 17:39
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