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

iOS-586 Implement logic to add expiration date to banned books and remove expired banned books #1627

Merged
merged 7 commits into from
Dec 7, 2023

Conversation

ExplorerNautilus
Copy link
Collaborator

What's this do?
Add expiration date to banned books
Remove expired banned books
CI fixes that already merged into release branch

Why are we doing this? (w/ JIRA link if applicable)
iOS-586

How should this be tested? / Do these changes have associated tests?
See test cases in ticket

Dependencies for merging? Releasing to production?
N/A

Does this include changes that require a new SimplyE/Open eBooks build for QA?
Yes

Has the application documentation been updated for these changes?
No

Did someone actually run this code to verify it works?
@ExplorerNautilus

Copy link
Collaborator

@ettore ettore left a comment

Choose a reason for hiding this comment

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

this looks sound to me. I just have a few refactoring suggestions, mainly to make the code express the "banned books" stuff more clearly. Overall pretty minor stuff, but let me know what you think.

Thanks for this and for adding meaningful comments, this will be easy to forget.

Simplified/OPDS/NYPLOPDSAcquisition.h Outdated Show resolved Hide resolved
Simplified/Book/Models/NYPLBook.m Outdated Show resolved Hide resolved
Simplified/Book/Models/NYPLBook.h Outdated Show resolved Hide resolved
Simplified/Book/Models/NYPLBookRegistry.m Outdated Show resolved Hide resolved
Simplified/Book/Models/NYPLBookRegistry.h Outdated Show resolved Hide resolved
Simplified/Catalog/NYPLCatalogGroupedFeed.m Outdated Show resolved Hide resolved
Copy link
Collaborator

@ettore ettore 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 👍 👍

@@ -106,7 +106,8 @@ @interface NYPLOPDSAcquisition ()
@property (nonatomic, copy, nonnull) NSString *type;
@property (nonatomic, nonnull) NSURL *hrefURL;
@property (nonatomic, nonnull) NSArray<NYPLOPDSIndirectAcquisition *> *indirectAcquisitions;
@property (nonatomic, nonnull) id<NYPLOPDSAcquisitionAvailability> availability;
/// The NYPLOPDSAcquisitionAvailability property is omitted here because it's no longer a read only object.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: while this is true, it is also the default in objective-c so I don't think it's needed.

@ExplorerNautilus ExplorerNautilus marked this pull request as ready for review December 7, 2023 20:52
@ExplorerNautilus ExplorerNautilus merged commit 8ef1a3f into develop Dec 7, 2023
2 checks passed
@ExplorerNautilus ExplorerNautilus deleted the iOS-586 branch December 7, 2023 21:26
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