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

Make debug=true use the features config in openlibrary.yml #10014

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Nov 8, 2024

Closes https://github.com/internetarchive/olsystem/issues/223

Also has parts:

Technical

We have a features section in our openlibrary.yml, which has a debug feature which specifies the query parameter / value. But this was never being read from, and instead the literal value true was used. This lets the configuration work correctly so we can control the parameter from the openlibrary.yml file.

Testing

Screenshot

Note: This requires the infogami changes to be merged in first! Locally you can test this with the docker compose infogami local file.

Tested:

Add to openlibrary.yml:

features:
    debug:
        filter: queryparam
        name: debug
        value: "true"  # Note the quotes are important! Otherwise it'll never match :P

Introducing an error to an html template, $ x = 7 / 0 to status.html, and :

Introducing an error to an API page,

Stakeholders

@cdrini cdrini marked this pull request as ready for review November 8, 2024 22:06
Copy link
Collaborator

@scottbarnes scottbarnes 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 to me.

@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Nov 11, 2024
@cdrini cdrini merged commit e32c84f into internetarchive:master Nov 11, 2024
3 checks passed
@cdrini cdrini deleted the feature/limit-debug-true branch November 11, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants