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

Release 3.0.0 #75

Merged
merged 18 commits into from
Sep 16, 2024
Merged

Release 3.0.0 #75

merged 18 commits into from
Sep 16, 2024

Conversation

Hlavtox
Copy link
Contributor

@Hlavtox Hlavtox commented Sep 12, 2024

Questions Answers
Description? Release 3.0.0
Type?
BC breaks?
Deprecations?
Fixed ticket?
How to test?

Rafał Miłecki and others added 18 commits November 23, 2022 10:05
This drops a custom complex SQL query and uses existing helper that
handles all the hard work. This simplifies module code and makes it
cleaner while not changing existing behaviour.

Method ::getTree() isn't used anymore so it got marked as deprecated.
Other modules using it should stop doing so.

Signed-off-by: Rafał Miłecki <[email protected]>
Use Category::getNestedCategories for getting subcategories
Previous logic grew into a bit complex one. It had 2 conditional parts
each checking for selected BLOCK_CATEG_ROOT_CATEGORY values. They were
checking for different setups and later one was conditionally modifying
result of the first one.

All of that made getWidgetVariables() code a bit hard to follow
(understand) and hard to extend (add more scenarios).

This change cleans that up. It adds a switch() and handles each
BLOCK_CATEG_ROOT_CATEGORY value with a separated code. It should make
code easier to understand, debug & develop.

Signed-off-by: Rafał Miłecki <[email protected]>
Simplify logic for picking root category
Co-authored-by: Daniel Hlaváček <[email protected]>
Refactor and add new functionality
@Hlavtox Hlavtox added this to the 3.0.0 milestone Sep 12, 2024
@ShaiMagal ShaiMagal added the waiting for QA Status: Waiting for QA feedback label Sep 14, 2024
@Hlavtox
Copy link
Contributor Author

Hlavtox commented Sep 14, 2024

@florine2623 Hello Florine, maybe just a quick glance when you just tested it in #74 ? :-)

@florine2623 florine2623 self-assigned this Sep 16, 2024
Copy link
Contributor

@florine2623 florine2623 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 ,

Tested the following :
Bump to 3.0.0 OK
Checked options Category root and Maximum depth for subcategories OK #35
Checked all module in BO and FO in order to verify the refacto #68 #74

LGTM ✅
Thanks!

@florine2623 florine2623 added QA ✔️ and removed waiting for QA Status: Waiting for QA feedback labels Sep 16, 2024
@Hlavtox
Copy link
Contributor Author

Hlavtox commented Sep 16, 2024

Thank you @florine2623! :-)))

@Hlavtox Hlavtox merged commit a523fe1 into master Sep 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants