Skip to content

Conversation

Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Jun 19, 2024

Context

The previous implementation of param support (query and request) was essentially a one-off, and dates back to the early years of the framework. This PR brings the feature into more modern patterns, and makes everything much less complex.

Resolves #418

Changelog

  • Breaking: Remove ATHA::QueryParam
  • Breaking: Remove ATHA::RequestParam
  • Breaking: Remove ATH::Exception::InvalidParameter
  • Breaking: Remove everything within ATH::Params namespace, including ATH::Action#params
  • Breaking: Remove ATH::Listeners::ParamFetcher
  • Add ATH::Exception.from_status helper method
  • Add new ATHA::MapQueryParameter for handling query parameters

@Blacksmoke16 Blacksmoke16 linked an issue Jun 19, 2024 that may be closed by this pull request
Base automatically changed from resolver-annotation-refactor to master August 1, 2024 14:50
@Blacksmoke16 Blacksmoke16 marked this pull request as ready for review August 23, 2024 22:45
@Blacksmoke16 Blacksmoke16 merged commit 339336e into master Aug 23, 2024
12 checks passed
@Blacksmoke16 Blacksmoke16 deleted the param-refactor branch August 23, 2024 22:47
PallasAthenaie pushed a commit to athena-framework/framework that referenced this pull request Aug 23, 2024
* Remove `ATHA::QueryParam` and `ATHA::RequestParam`
* Remove `ATH::Exception::InvalidParamete`
* Remove everything in `ATH::Params` namespace, including `ATH::Action#params`
* Add `ATH::Exception.from_status`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Refactor Query/Request Parameter Support
1 participant