-
Notifications
You must be signed in to change notification settings - Fork 80
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
Factorize getting required request parameters #1965
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1965 +/- ##
==========================================
+ Coverage 85.44% 86.53% +1.08%
==========================================
Files 23 67 +44
Lines 907 3497 +2590
==========================================
+ Hits 775 3026 +2251
- Misses 132 471 +339
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
* Extract function get_request_parameter_dataset * Move get_request_parameter_dataset to libapi * Factorize get_request_parameter_config * Factorize get_request_parameter_split * Factorize get_required_request_parameter * Use get_required_request_parameter for query/where * Remove redundant error messages * Update openapi.json * Test get_required_request_parameter
* clean duckdb index files * refactor to use only one function for cleaning * minor fixes * Apply suggestions from code review Co-authored-by: Sylvain Lesage <[email protected]> * Factorize getting required request parameters (#1965) * Extract function get_request_parameter_dataset * Move get_request_parameter_dataset to libapi * Factorize get_request_parameter_config * Factorize get_request_parameter_split * Factorize get_required_request_parameter * Use get_required_request_parameter for query/where * Remove redundant error messages * Update openapi.json * Test get_required_request_parameter * Remove duplicate admin utils (#1970) * Delete duplicate admin get_json_ok_response * Use libapi get_json_api_error_response in admin * Delete duplicate admin EXPOSED_HEADERS * Remove duplicate admin Endpoint * Remove duplicate admin are_valid_parameters * Remove unused admin utils * refactor directory env for cleaning * minor changes * fix style --------- Co-authored-by: Sylvain Lesage <[email protected]> Co-authored-by: Albert Villanova del Moral <[email protected]>
Factorize getting the required request parameters
dataset
,config
,split
,query
andwhere
(from the service admin and the endpoints /rows, /search and /filter) tolibapi
.Additionally, align their error messages.