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

Chore(api): change query builder named parameter #29

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

tleon
Copy link
Contributor

@tleon tleon commented Apr 4, 2024

Questions Answers
Description? Change named parameter in the module
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? Fixes #35686
Sponsor company PrestaShop SA
How to test? CI 🟢

@tleon tleon self-assigned this Apr 4, 2024
@tleon tleon marked this pull request as ready for review April 9, 2024 07:33
Copy link
Contributor

@jolelievre jolelievre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tleon

All good, except for the services that should be moved from the core into here (see comment on the core PR)

@tleon tleon force-pushed the Issue-35686-make-api-based-on-grid branch from be601c7 to aaf8cfe Compare April 10, 2024 13:58
Comment on lines 6 to 7
prestashop.module.api.list.module_query_builder:
class: 'PrestaShop\Module\APIResources\List\ModuleQueryBuilder'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
prestashop.module.api.list.module_query_builder:
class: 'PrestaShop\Module\APIResources\List\ModuleQueryBuilder'
PrestaShop\Module\APIResources\List\ModuleQueryBuilder:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can, and should, still rely on FQCN as the service name

class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
public: true
arguments:
- '@prestashop.module.api.list.module_query_builder'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- '@prestashop.module.api.list.module_query_builder'
- '@PrestaShop\Module\APIResources\List\ModuleQueryBuilder'

@tleon tleon force-pushed the Issue-35686-make-api-based-on-grid branch 2 times, most recently from 472de9b to be0cf1e Compare April 11, 2024 14:17
jolelievre
jolelievre previously approved these changes Apr 11, 2024
@tleon tleon force-pushed the Issue-35686-make-api-based-on-grid branch from be0cf1e to da15335 Compare April 11, 2024 14:29
@tleon tleon changed the title chore(api): change query builder named parameter Chore(api): change query builder named parameter Apr 11, 2024
jolelievre
jolelievre previously approved these changes Apr 11, 2024
@ps-jarvis ps-jarvis added the Waiting for QA Status: Waiting for QA feedback label Apr 11, 2024
@tleon tleon force-pushed the Issue-35686-make-api-based-on-grid branch from da15335 to a2720b6 Compare April 11, 2024 14:37
jolelievre
jolelievre previously approved these changes Apr 11, 2024
@jolelievre jolelievre closed this Apr 11, 2024
@jolelievre jolelievre reopened this Apr 11, 2024
boherm
boherm previously approved these changes Apr 12, 2024
@tleon tleon dismissed stale reviews from boherm and jolelievre via d949f68 April 12, 2024 09:04
@tleon tleon force-pushed the Issue-35686-make-api-based-on-grid branch from a2720b6 to d949f68 Compare April 12, 2024 09:04
@jolelievre jolelievre merged commit 19d39d8 into PrestaShop:dev Apr 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for QA Status: Waiting for QA feedback
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants