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

Handling for query or url params in qp/to #638

Merged
merged 5 commits into from
Jan 31, 2025
Merged

Handling for query or url params in qp/to #638

merged 5 commits into from
Jan 31, 2025

Conversation

Isaac-Flath
Copy link
Contributor


name: Pull Request
about: Allow qp (and therefore .to method) to handle params with ?a=1 or /a situations
title: '[qp improvement] '
labels: 'enhancement'
assignees: 'isaac-flath'


Related Issue
Please link to the issue that this pull request addresses. If there isn't one, please create an issue first.

Proposed Changes
Allow qp (and therefore .to method) to handle params with ?a=1 or /a situations

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist
Go over all the following points, and put an x in all the boxes that apply:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I am aware that this is an nbdev project, and I have edited, cleaned, and synced the source notebooks instead of editing .py or .md files directly.

Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

@Isaac-Flath Isaac-Flath added the enhancement New feature or request label Jan 19, 2025
@Isaac-Flath Isaac-Flath requested a review from jph00 January 19, 2025 21:39
@Isaac-Flath Isaac-Flath self-assigned this Jan 19, 2025
Copy link

gitnotebooks bot commented Jan 19, 2025

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/AnswerDotAI/fasthtml/pull/638

@jph00
Copy link
Contributor

jph00 commented Jan 19, 2025

Will this break for path params with a : in them?

@Isaac-Flath
Copy link
Contributor Author

Isaac-Flath commented Jan 19, 2025

@jph00 I've added a test for that now; please double check the new test to make sure that's the behavior we should be expecting!

@jph00
Copy link
Contributor

jph00 commented Jan 20, 2025

I would expect to be using ab as the key - the bit after the : isn't really part of the name IMO; wdyt?

@jph00
Copy link
Contributor

jph00 commented Jan 30, 2025

@Isaac-Flath just making sure you saw my comment above.

@Isaac-Flath
Copy link
Contributor Author

Isaac-Flath commented Jan 31, 2025

@jph00 I think this looks good now - What do you think?

@jph00
Copy link
Contributor

jph00 commented Jan 31, 2025

It's not perfect, but it's a fine start so I'll merge and we can discuss improvements.

@jph00 jph00 merged commit 7716d18 into main Jan 31, 2025
2 checks passed
@jph00 jph00 deleted the qp-improvements branch January 31, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants