Remove experimental query params#13142
Merged
sfc-gh-lmasuch merged 6 commits intodevelopfrom Jan 15, 2026
Merged
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
✅ PR preview is ready!
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated experimental_get_query_params and experimental_set_query_params functions, which have been deprecated for over 2 years and replaced by the st.query_params API. The removal is comprehensive, eliminating all implementation code, tests, and tracking mechanisms for the experimental API.
Key Changes:
- Removed the experimental query params implementation module and all related tracking/enforcement code
- Deleted all unit and E2E tests specific to the experimental API
- Updated existing tests to use the current
st.query_paramsAPI - Cleaned up unused imports resulting from the removal
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
lib/streamlit/__init__.py |
Removed imports and deprecated function wrappers for experimental query params |
lib/streamlit/commands/experimental_query_params.py |
Deleted entire module containing experimental API implementation |
lib/streamlit/runtime/scriptrunner_utils/script_run_context.py |
Removed tracking fields and methods for API usage enforcement |
lib/streamlit/runtime/state/query_params.py |
Removed all calls to _ensure_single_query_api_used() method |
lib/tests/streamlit/testing/app_test_test.py |
Updated tests to use st.query_params instead of experimental functions |
lib/tests/streamlit/streamlit_test.py |
Removed experimental functions from export list test |
lib/tests/streamlit/runtime/scriptrunner_utils/script_run_context_test.py |
Removed tests for API enforcement and cleaned up unused imports |
lib/tests/streamlit/commands/experimental_query_params_test.py |
Deleted entire test file for experimental API |
e2e_playwright/st_experimental_get_query_params.py |
Deleted E2E test app |
e2e_playwright/st_experimental_get_query_params_test.py |
Deleted E2E test |
e2e_playwright/st_experimental_set_query_params.py |
Deleted E2E test app |
e2e_playwright/st_experimental_set_query_params_test.py |
Deleted E2E test |
e2e_playwright/st_both_query_params_error.py |
Deleted E2E test app for API conflict |
e2e_playwright/st_both_query_params_error_test.py |
Deleted E2E test for API conflict |
e2e_playwright/st_selectbox.py |
Updated test data to reference new filename st_query_params.py |
frontend/lib/src/util/fuzzyFilterSelectOptions.test.ts |
Updated test data to reference new filename |
frontend/app/src/App.test.tsx |
Updated comment to reference current st.query_params API |
Contributor
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0500%
💡 Consider adding more unit tests to maintain or improve coverage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Removes
experimental_get_query_paramsandexperimental_set_query_paramswhich have been deprecated for > 2 years and replaced with the newst.query_paramsAPI.Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.