Skip to content

Conversation

@lovasoa
Copy link
Collaborator

@lovasoa lovasoa commented Nov 22, 2025

Add sqlpage.set_variable function for easily modifying URL parameters on the current page while preserving others.

This new function simplifies the common pattern of updating a single URL parameter without losing other existing parameters, which previously required a more verbose sqlpage.link(sqlpage.path(), json_patch(sqlpage.variables('get'), json_object(name, value))) construct.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Nov 22, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 11 commits November 23, 2025 00:17
- Replaced serde_json::Map with a custom URLParameters struct for better management of URL parameters.
- Introduced methods for handling single and vector values in URLParameters.
- Updated tests to reflect changes in the set_variable function's behavior.
@lovasoa lovasoa marked this pull request as ready for review November 24, 2025 10:46
- Renamed URLParameters module for clarity and removed the deprecated url_parameter_deserializer.
- Updated the set_variable function to return parameters directly instead of appending to a URL.
- Adjusted related function calls to reflect changes in URL parameter management.
@lovasoa lovasoa merged commit e93056e into main Nov 24, 2025
11 checks passed
@lovasoa lovasoa deleted the cursor/add-set-variable-function-and-update-docs-gemini-3-pro-preview-7df1 branch November 24, 2025 11:55
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