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

Implementing default delivery channel matching #745

Merged
merged 20 commits into from
Mar 5, 2024

Conversation

JackLewis-digirati
Copy link
Contributor

@JackLewis-digirati JackLewis-digirati commented Feb 22, 2024

Resolves #625

This pull request implements the ability to add ImageDeliveryChannels to images based on the media type

@JackLewis-digirati JackLewis-digirati marked this pull request as ready for review February 23, 2024 09:19
@JackLewis-digirati JackLewis-digirati requested a review from a team as a code owner February 23, 2024 09:19
Copy link
Member

@donaldgray donaldgray left a comment

Choose a reason for hiding this comment

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

It might be worth moving the stuff for matching default delivery channels to it's own class for ease of testing - even into IDefaultDeliveryChannelRepository so that can be more than just a caching layer to DB - may be able to alter that so it doesn't return the whole list and does all matching internally. Once it's in there we can write tests against it in isolation to confirm logic. From there it will make it easy to refactor as long as the tests pass.

Using 3 methods and multiple dictionarys feels slightly overly complex and difficult to follow for how the default matching is done but I could well be overlooking something but if this works and it's encapsulated into a tested class then it's easy to refactor.

Copy link
Member

@donaldgray donaldgray left a comment

Choose a reason for hiding this comment

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

LGTM - couple of comments but small changes/formatting

@JackLewis-digirati JackLewis-digirati force-pushed the feature/implementDefaultDeliveryChannels branch from e2d75a7 to f23988c Compare March 1, 2024 09:15
@JackLewis-digirati JackLewis-digirati merged commit b3fa21f into develop Mar 5, 2024
9 checks passed
@JackLewis-digirati JackLewis-digirati deleted the feature/implementDefaultDeliveryChannels branch March 5, 2024 11:59
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.

Implement default deliveryChannels and retire DLCS:IngestDefaults appSetting
3 participants