Skip to content

Conversation

@moseshll
Copy link
Collaborator

@moseshll moseshll commented Jan 7, 2026

…lude all possible values for that field

  • Add HTDownload method all_values called by the presenter to populate the menus.
  • HTDownloadPresenter calls this method in data_filter_data now for all select columns, not just role.
  • In most cases the JSON data returned by data_filter_data has key == value, but role is still a special case, as it was before.
  • See comments on possibility of simplifying full_download in subsequent work.

This branch is currently on otis-testing

…lude all possible values for that field

- Proof of concept which does not update values based on other popup menu selections (will test for viability)
- Add `HTDownload` method `all_values` called by the presenter to populate the menus
@coveralls
Copy link

coveralls commented Jan 7, 2026

Coverage Status

coverage: 98.236% (+0.01%) from 98.225%
when pulling 8c7ea57 on ETT-1142_download_filters_all_values
into 4b159a8 on main.

@moseshll moseshll marked this pull request as ready for review January 9, 2026 20:50
@moseshll moseshll requested a review from aelkiss January 9, 2026 21:06
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.

I added some comments about generating the filter list -- we don't need rights_date or pages. Performance seems OK for me in testing; if we run into issues in production with the joins to hathifiles we may consider alternate ways of getting the possible values.

Works fine for me in testing.

data_filter_data is a bit messy as you say, but we're likely to clean up at least some of that in the future, and I think the only remaining exception will be 'role'.

The tests all look fine.

- Set `pages` and `rights_date_used` to "input" rather than "select"
- Remove support for these fields in `HTDownload.all_values`
@moseshll moseshll requested a review from aelkiss January 13, 2026 22:01
@moseshll
Copy link
Collaborator Author

I mentioned on the ticket, should build and deploy to staging and see what the performance looks like.

@moseshll
Copy link
Collaborator Author

@aelkiss Performance info noted on ticket. I think I'm good with what we have.

@moseshll moseshll merged commit 32a50cd into main Jan 15, 2026
2 checks passed
@moseshll moseshll deleted the ETT-1142_download_filters_all_values branch January 15, 2026 15:07
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.

4 participants