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

Add low_stock_threshold to fixtures #33491

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

Hlavtox
Copy link
Contributor

@Hlavtox Hlavtox commented Jul 30, 2023

Questions Answers
Branch? 8.1.x
Description? Default demo data doesn't contain low_stock_threshold, which results in this value being NULL in the database, while in fact, it should be 0, like it is for all new products.
Type? bug fix
Category? IN
BC breaks? no
Deprecations? no
How to test? Install Prestashop, open phpmyadmin, find ps_product and check that values in low_stock_threshold are zeroes, instead NULL for demo products.
Fixed ticket? Fixes #33490
Related PRs
Sponsor company

@Hlavtox Hlavtox requested a review from a team as a code owner July 30, 2023 15:19
@Hlavtox Hlavtox added this to the 8.1.2 milestone Jul 30, 2023
@prestonBot prestonBot added 8.1.x Branch Bug fix Type: Bug fix labels Jul 30, 2023
Copy link
Contributor

@mflasquin mflasquin left a comment

Choose a reason for hiding this comment

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

Regarding the issue, I think you should target develop and not 8.1.x, WDYT ?

@Hlavtox
Copy link
Contributor Author

Hlavtox commented Jul 31, 2023

@mflasquin I think if it's not a BC break, we can target 8.1 no?

@mflasquin
Copy link
Contributor

8.1.x is a patch branch :

image

https://devdocs.prestashop-project.org/8/contribute/contribution-guidelines/supported-branches/

So regarding this page, you PR should target develop if I'm not mistaken

@kpodemski
Copy link
Contributor

@mflasquin this is outdated, we are more flexible regarding patch branches, updates guidelines will be available on the project's website

@kpodemski
Copy link
Contributor

@mflasquin more details: PrestaShop/docs#1682

@mflasquin mflasquin added the Waiting for QA Status: action required, waiting for test feedback label Jul 31, 2023
@hibatallahAouadni hibatallahAouadni self-assigned this Aug 2, 2023
Copy link
Contributor

@hibatallahAouadni hibatallahAouadni left a comment

Choose a reason for hiding this comment

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

Hello @Hlavtox

Thanks for your PR 🚀
Without PR, the low_stock_threshold are NULL, see the attached screenshot below:

image

With your PR, the low_stock_threshold are zeroes ✔️

image

LGTM, QA ✔️

Thanks!

@hibatallahAouadni hibatallahAouadni added QA ✔️ Status: check done, code approved and removed Waiting for QA Status: action required, waiting for test feedback labels Aug 2, 2023
@Hlavtox Hlavtox merged commit bdfa998 into PrestaShop:8.1.x Aug 2, 2023
@Hlavtox Hlavtox deleted the fixtures-null branch August 2, 2023 10:23
@Hlavtox
Copy link
Contributor Author

Hlavtox commented Aug 2, 2023

Thank you Hiba! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.1.x Branch Bug fix Type: Bug fix QA ✔️ Status: check done, code approved
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants