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

Output URNs for hrefs in findaway manfiests #1740

Closed
wants to merge 3 commits into from

Conversation

jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented Mar 20, 2024

Description

Output manifests with href that look like: urn:org.thepalaceproject:findaway:{fulfillmentId}:{item.part}:{item.sequence} instead of None for findaway, so its easier for the mobile clients to use the readingOrder href to track things like bookmarks.

Motivation and Context

See slack thread here: https://lyrasis.slack.com/archives/C03GKDAKU0H/p1710949080047149

How Has This Been Tested?

Running tests in CI

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen requested a review from a team March 20, 2024 17:41
@jonathangreen jonathangreen marked this pull request as draft March 20, 2024 17:47
Copy link
Contributor

@tdilauro tdilauro 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! Two minor comments on comments.

@@ -684,18 +685,23 @@ def test_findaway_license_to_webpub_manifest(
assert 16.201 == first["duration"]
assert "Track 1" == first["title"]

# There is no 'href' value for the readingOrder items because the
# The 'href' value for the readingOrder is a URN because the
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: This first paragraph could be taken to imply that the URN is used by the Findaway SDK.

Possible rephrasing:

The 'href' value for the readingOrder is a URN. We do not use it to retrieve files, since that must be done through the Findaway SDK.

@@ -111,18 +111,21 @@ def __init__(
# Add the SpineItems as reading order items. None of them will
# have working 'href' fields -- it's just to give the client a
# picture of the structure of the timeline.
# For the href we return a URN that includes the part and sequence
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Might be worthwhile to remove the second sentence of the previous paragraph.

@jonathangreen jonathangreen deleted the feature/findaway-manifest-urls branch March 27, 2024 00: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