-
Notifications
You must be signed in to change notification settings - Fork 513
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
Grf 361 create category template in database #18169
Conversation
src/Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlTemplateRepository.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Application/Template/CreateTemplate.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/Sql/IsCategoryTreeLinkedToTemplateSql.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlCategoryTreeTemplateSaver.php
Outdated
Show resolved
Hide resolved
0b55eba
to
ef0a741
Compare
src/Akeneo/Category/back/Infrastructure/Storage/Sql/GetCategoryTreeByCategoryTemplateSql.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/InMemory/GetTemplateInMemory.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/InMemory/GetTemplateInMemory.php
Outdated
Show resolved
Hide resolved
...Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlCategoryTemplateAttributeSaver.php
Outdated
Show resolved
Hide resolved
...Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlCategoryTemplateAttributeSaver.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlCategoryTemplateSaver.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/Sql/GetCategoryTreeByCategoryTemplateSql.php
Show resolved
Hide resolved
src/Akeneo/Category/back/tests/Integration/CategoryTemplateTrait.php
Outdated
Show resolved
Hide resolved
...Akeneo/Category/back/Infrastructure/Storage/Save/Query/SqlCategoryTemplateAttributeSaver.php
Show resolved
Hide resolved
$template =null; | ||
if ($result) { | ||
$template = new Template( | ||
TemplateUuid::fromString($result['uuid']), |
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.
Create a Template::fromDatabase(array $result)
src/Akeneo/Category/back/Infrastructure/Storage/Sql/GetCategoryTemplateSql.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Storage/Sql/GetCategoryTreeByCategoryTemplateSql.php
Show resolved
Hide resolved
src/Akeneo/Category/back/Infrastructure/Symfony/Resources/config/queries.yml
Show resolved
Hide resolved
src/Akeneo/Category/back/tests/Integration/CategoryTemplateTrait.php
Outdated
Show resolved
Hide resolved
src/Akeneo/Category/back/tests/Integration/CategoryTemplateTrait.php
Outdated
Show resolved
Hide resolved
// TODO: activate SQL service instead of inMemory service in dependencies injection when GetTemplate->byUuid is implemented | ||
$template = $this->get(GetTemplate::class)->byUuid((string) $templateModel->getUuid()); | ||
|
||
$this->assertEquals($templateModel->getCode(), $template->getCode()); |
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.
create $expectedCode and use it with hadr coded value
same for labels, etc. (check toArray())
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.
array_keys($template->getAttributeCollection()->getAttributes()), | ||
); | ||
} | ||
|
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.
ajouter les tests de cas à la marge
2590e36
to
f7a7be8
Compare
Description (for Contributor and Core Developer)
[WIP] The migration to create tables related to category template and attributes are not merged yet (GRF-357)
Definition Of Done (for Core Developer only)