-
Notifications
You must be signed in to change notification settings - Fork 5
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
Split CatalogPage's monolith code #550
Comments
@duker33 |
@artemiy312 , inheritance is only step for objects composition. But even with inheritance we'll switch to named chunks of code with separated responsibility. Instead of one huge With inheritance responsibility will be separated, but badly organized.
In this case we can decrease amount of composited code for individual url |
discussed this task with Artemiy via call. |
broke pdd rules here. So increase time. Wasted it for arch |
# Conflicts: # shopelectro/models.py # shopelectro/views/catalog.py
#550 Resolve branch inner conflicts #550 Apply linter rules #550 Review#2 fixes. Rm redundant pdd issue, fix imports #550 Rm redundant pdd issue #550 Pdd issue about context module improving #550 Merge fixes after hell #550 Minor self-review fixes #550 Add code example for creating context #550 Make context names shorten #550 Fork AbstractPageContext #550 Cleanup code #550 Fork PaginationCategoryContext class #550 Fork SortingCategoryContext class #550 Fork DBTemplateContext class. Improve pipe mech #550 Fork TaggedCategoryContext class #550 Implement CatalogContext #550 Fork SortingCategoryPage class #550 Fork PaginatedCatalogPage class #550 Fork DBContextCatalogPage class #548 Apply E305 linter rule #550 Review#1 fixes. Cache in memory db queries #548 Rm E305 pycodestyle rule #550 Add pdd issue for continue splitting #550 Create TaggedCategoryPage class
* #550 Review#3 fixes. Rm get_tags caching #550 Resolve branch inner conflicts #550 Apply linter rules #550 Review#2 fixes. Rm redundant pdd issue, fix imports #550 Rm redundant pdd issue #550 Pdd issue about context module improving #550 Merge fixes after hell #550 Minor self-review fixes #550 Add code example for creating context #550 Make context names shorten #550 Fork AbstractPageContext #550 Cleanup code #550 Fork PaginationCategoryContext class #550 Fork SortingCategoryContext class #550 Fork DBTemplateContext class. Improve pipe mech #550 Fork TaggedCategoryContext class #550 Implement CatalogContext #550 Fork SortingCategoryPage class #550 Fork PaginatedCatalogPage class #550 Fork DBContextCatalogPage class #548 Apply E305 linter rule #550 Review#1 fixes. Cache in memory db queries #548 Rm E305 pycodestyle rule #550 Add pdd issue for continue splitting #550 Create TaggedCategoryPage class * #550 Merge fixes * #550 Fix shadowed var * #550 Apply linter rules after rebase
* rf#168 Inject products queryset to catalog context * rf#168 Fix se#550's rebase. Inject tag qs tag context * rf#168 Move tag_pairs stuff from catalog context to tags one * rf#168 Broken code. Move to QS receive * rf#168 Fix distinct-order_by bug * rf#168 Implement new interface for `context.prepare_products` * #550 Add minor pdd issue * #550 Pdd issue to move context to refarm.catalog app * rf#168 Grade refarm dep, minor fix in test_views * rf#168 Apply linter rules
shopelectro.views.catalog.CategoryPage currently consists of this steps:
All these steps are semantically separated from CategoryPage and from each other.
Here is good code draft example for
get products
+filter tags
.But use in this task traditional inheritance instead of objects composition
The text was updated successfully, but these errors were encountered: