Skip to content

Conversation

@aelkiss
Copy link
Member

@aelkiss aelkiss commented Dec 17, 2025

The fake "always_us.mmdb" and "always_nonus.mmdb" files work with the babel apps but not apparently with the version of geoip we have for PHP. This avoids that problem by:

  • When repo is checked out, geoip/GeoIP2-Country.mmdb symlink won't exist
  • This symlink and real GeoIP mmdb files are gitignored, so we can put real files there in test/preview/whatever and they won't get clobbered by the symlink

The fake "always_us.mmdb" and "always_nonus.mmdb" files work with the
babel apps but not apparently with the version of geoip we have for PHP.
This avoids that problem by:

* When repo is checked out, geoip/GeoIP2-Country.mmdb symlink won't
  exist
* This symlink and real GeoIP mmdb files are gitignored, so we can put
  real files there in test/preview/whatever and they won't get clobbered
  by the symlink
@aelkiss aelkiss requested a review from carylwyatt December 17, 2025 22:54
@aelkiss
Copy link
Member Author

aelkiss commented Dec 17, 2025

@carylwyatt @moseshll I'm not really sure how we'll test or reasonably review this as such other than making sure the tests pass. What you can check for now is that if you do a catalog search with preview.catalog.hathitrust.org in a new private/incognito window then pdus items show as viewable. Let me know if you have any other thoughts though.

@aelkiss aelkiss requested a review from moseshll December 17, 2025 22:56
Copy link
Member

@carylwyatt carylwyatt left a comment

Choose a reason for hiding this comment

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

This worked in a private window on preview. Approve!

@aelkiss aelkiss merged commit 49676ba into main Dec 18, 2025
2 checks passed
@aelkiss aelkiss deleted the ETT-1210-geoip-gremlins branch December 18, 2025 18: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.

3 participants