Skip to content

BXC-5529 - OCFL file check service#42

Merged
bbpennel merged 1 commit intomainfrom
bxc-5529
Feb 3, 2026
Merged

BXC-5529 - OCFL file check service#42
bbpennel merged 1 commit intomainfrom
bxc-5529

Conversation

@bbpennel
Copy link
Member

https://unclibrary.atlassian.net/browse/BXC-5529

Add service for quick file check of ocfl objects, centralize stats calculation


describe Longleaf::OcflFileCheckService do
include Longleaf::FileHelpers
ConfigBuilder ||= Longleaf::ConfigBuilder

Choose a reason for hiding this comment

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

curious about this syntax, I haven't seen this before. is this defining a shorthand for each of the classes under longleaf?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's creating a shorter name for the class to use throughout the test to help with readability. I'm not sure if its actually a good practice, but it's used all over this project, maybe I got tired of seeing "Longleaf::" everywhere in tests. I have the feeling just using = instead of ||= might have caused "already initialized constant" warnings in some cases, but it doesn't seem to be the case here. Maybe it should be cleaned up at some point

Choose a reason for hiding this comment

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

got it, thanks for explaining

@bbpennel bbpennel merged commit 33ce46c into main Feb 3, 2026
5 checks passed
@bbpennel bbpennel deleted the bxc-5529 branch February 3, 2026 15:25
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