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

Ensure that filter values are URL encoded #42

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

edsu
Copy link
Contributor

@edsu edsu commented Jun 26, 2024

There are some cases where the filter query needs to be URL encoded, such as when querying for a DOI that has an ampersand in it.

Fixes #41

@edsu edsu force-pushed the filter-urlencode branch 2 times, most recently from f929e32 to c0a6077 Compare June 26, 2024 15:19
@@ -38,3 +38,7 @@ select = ["E", "F", "UP", "I", "B"]

[tool.ruff.lint.isort]
force-single-line = true

[tool.pytest.ini_options]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed to add this to get pytest to work with uv.

uv venv
uv pip compile pyproject.toml -o requirements.txt
uv pip install -r requirements.txt
pytest

Let me know if there's a preferred way of running the tests, I can remove this change.

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks. Haven't played with uv yet, but will do soon. For now, all tests seem to pass with this new config. I will merge.

There are some cases where the filter query needs to be URL encoded,
such as when querying for a DOI that has an ampersand in it.

Fixes J535D165#41
@edsu edsu force-pushed the filter-urlencode branch from c0a6077 to d29045e Compare June 26, 2024 15:25
@J535D165 J535D165 merged commit 18a8113 into J535D165:main Jun 27, 2024
4 checks passed
J535D165 added a commit that referenced this pull request Jun 28, 2024
J535D165 added a commit that referenced this pull request Jul 1, 2024
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.

Urlencode when filtering?
2 participants