Skip to content

Conversation

@moseshll
Copy link
Contributor

@moseshll moseshll commented Nov 26, 2025

ETT-1148 Resource sharing users should get access to items that are deposited but not reported as held

  • Add Access::Holdings utility routine to extract "held" value based on both currently_held_count and deposited
    • if currently_held_count > 0 then held = currently_held_count
    • otherwise held = deposited
  • Add tests with variations on the expected currently-held response from mocked Holdings API (no longer have to use canned data structure)
  • Add deposited fields to the mock holdings used in Playwright tests

ETT-743 disable brittle auth.t test

…eposited but not reported as held

- Add `Access::Holdings` utility routine to extract "held" value based on both `currently_held_count` and `deposited`
- Add tests with manipulated versions of the expected currently-held response from mocked Holdings API
- Add `deposited` fields to the mock holdings used in Playwright tests
@moseshll moseshll changed the title Ett 1148 deposited currently held ETT-1148 Resource sharing users should get access to items that are deposited but not reported as held Nov 26, 2025
@moseshll moseshll marked this pull request as ready for review December 1, 2025 19:18
@moseshll moseshll requested a review from aelkiss December 1, 2025 19:18
Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

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

All makes sense to me and is as expected.

We should test on dev-N with the holdings API as it is -- I think this should be safe to deploy even in the absence of a deposited value from the holdings API, since it will default to 0 (https://github.com/hathitrust/babel/pull/171/files#diff-5be72f58ed64a38d91e23f4de4a169e268bae840681f53d60870b8acec524d90R176), but it's definitely worth double checking that.

@moseshll
Copy link
Contributor Author

moseshll commented Dec 4, 2025

I have checked this branch against dev-2 and did not encounter any issues.

@moseshll moseshll merged commit 722d0f4 into main Dec 4, 2025
2 checks passed
@moseshll moseshll deleted the ETT-1148_deposited_currently_held branch December 4, 2025 16:54
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.

3 participants