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

Allow certain IPs to receive private results #30

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

mbklein
Copy link
Contributor

@mbklein mbklein commented Oct 14, 2022

  • Add READING_ROOM_IPS environment variable / ReadingRoomIPs parameter
  • Bring helpers.js up to 100% test coverage
  • Eliminate redundancy in template.yml using a global function definition

To test, add "READING_ROOM_IPS": "127.0.0.1" to env.json and try to find/retrieve private works and file sets. Remove it and watch them disappear from search results and by-ID requests.

Bring helpers.js up to 100% test coverage
Eliminate redundancy in template.yml using a global function definition
@mbklein mbklein requested review from kdid and bmquinn October 14, 2022 20:58
Copy link
Contributor

@bmquinn bmquinn left a comment

Choose a reason for hiding this comment

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

> curl -s http://localhost:3000/search | jq '.data | map(.visibility) | unique | join(", ")'
"Private, Public"

👍

@mbklein mbklein merged commit 02a2cae into deploy/staging Oct 19, 2022
@mbklein mbklein deleted the 3182-reading-room branch October 19, 2022 18:16
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