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

Return array of ids for SpeedyAF::Proxy::MediaObject.sections_with_files #5547

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Jan 4, 2024

The transcript check function to hide/display the transcript tab has been broken for a little bit. This was caused by the media object presenter returning an array of full master files from the #sections_with_files method instead of an array of master file IDs which is what should be getting returned. This discrepancy caused the check of the active section ID against the list of sections with files to always fail, thus never rendering the transcript tab.

@masaball masaball changed the title Return array of ids for media_object.sections_with_files Return array of ids for SpeedyAF::Proxy::MediaObject.sections_with_files Jan 4, 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.

I'm concerned about putting the find in here since it will cause calls to solr. How about just changing the original by appending something like .map(&:id) ?

@masaball masaball merged commit e5e206f into develop Jan 5, 2024
@masaball masaball deleted the fix_transcript_check branch January 5, 2024 17:16
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