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

Migrate "Shipping > Carriers > Add new / edit carrier" page #10586

Open
1 of 39 tasks
matks opened this issue Sep 21, 2018 · 7 comments
Open
1 of 39 tasks

Migrate "Shipping > Carriers > Add new / edit carrier" page #10586

matks opened this issue Sep 21, 2018 · 7 comments
Labels
BO Category: Back Office Carriers Label: Which BO under menu is concerned EPIC Macro-level issue gathering improvements & bugs related to a specific topic Feature Type: New Feature migration symfony migration project Shipping Component: Which BO section is concerned

Comments

@matks
Copy link
Contributor

matks commented Sep 21, 2018

Part of Symfony migration project
Type: page

Status

Todo:

Old bugs:

Check-List (copied from #13989)

App layer

Controller / routing

  • All controller actions are migrated and protected with @AdminSecurity annotations when eligible and @DemoRestricted annotations when eligible
  • All links targeting this page are updated: either using _legacy_link or updating the code
  • The new SF routes have _legacy_link and _legacy_parameters provided and explained
  • Controller catches Domain Exception and translate them nicely
  • Add/Edit controllers must catch global Exception in order to handle ModuleErrorException

Template

  • Twig templates must contain relevant blocks to allow partial extension by modules
  • Twig forms must have form_rest() and form_errors()
  • JS being used on the page can be used as enabled extensions and use a PageMap for selectors
  • Use @PrestaShop instead of PrestaShopBundle for template root path aliasing
Conventions
  • The new controller actions comply with our naming convention
  • The new SF routes names and paths comply with our naming convention
  • The new Twig template names comply actions with our naming convention
  • Created files (controller, JS assets, CSS assets and twig views) must be in the right folder following the convention
  • CSS being added must follow theme conventions

Core layer

  • Commands and Queries only use native types but internally use VOs
  • All Handlers must have an Interface
Conventions
  • The created SF service names comply with our naming convention
  • The created files must follow the folder convention (Domain, Core, Adapter...)

Polishing

  • The legacy controller and templates files are gone
  • If PR includes a new concept/mechanism, documentation must be written
  • JS and CSS assets must be compiled and up-to-date
  • License headers must be up-to-date
  • New hooks have been added to the hooks list and the SQL updates
  • Performance must be correct: page loading time, filtering/sorting/searching response time, actions response time

Testing

  • Commands and Queries are tested with Behat tests
  • Eligible Core classes are covered with unit tests*
  • Controller is covered with survival test
  • (soon) Controller is covered with E2E tests using puppeeter
  • If we break E2E tests because IDs change, we must update the E2E tests

*Eligible = easy to isolate and unit tests provide values (for example testing getters/setters is useless)

@matks matks added the migration symfony migration project label Sep 21, 2018
@matks matks added this to To do in Symfony Migration via automation Sep 21, 2018
@eternoendless
Copy link
Member

We should investigate this issue when we start working on this page: #10384

@zuk3975
Copy link
Contributor

zuk3975 commented Jul 8, 2019

@matks, should the carriers form be powered by some kind of vue component that would be used in products page (as suggested for products page at #14492)?

@colinegin colinegin added this to Backlog in PrestaShop 1.7.7.3 via automation Jul 12, 2019
@colinegin colinegin moved this from Backlog to In progress in PrestaShop 1.7.7.3 Jul 12, 2019
@colinegin colinegin assigned ghost Jul 24, 2019
@matks
Copy link
Contributor Author

matks commented Jul 24, 2019

#14492

After diving further, we have decided not to use vue.js for the Product Page, we will rely on good old jQuery in order to make the page as customizable as possible.

I think the answer is valid for this page too :/ jQuery it is !

@rblaurin
Copy link
Contributor

Hi
Isn't it going to be ready for 1.7.7 anymore?

Thanks!

@matks
Copy link
Contributor Author

matks commented Oct 17, 2019

Hi
Isn't it going to be ready for 1.7.7 anymore?

Thanks!

Probably not, all of our energy right now is focused on Orders pages (listing, create, view)

@colinegin colinegin added the Improvement Type: Improvement label Oct 22, 2019
@sam-pires sam-pires assigned sam-pires and unassigned ghost Nov 17, 2019
@colinegin colinegin moved this from In progress to To do in Symfony Migration Dec 16, 2019
@hibatallahAouadni hibatallahAouadni added BO Category: Back Office Carriers Label: Which BO under menu is concerned Shipping Component: Which BO section is concerned labels May 26, 2021
@hibatallahAouadni hibatallahAouadni added the Ready Status: Issue is ready to be worked on label May 26, 2021
@matks
Copy link
Contributor Author

matks commented Aug 4, 2021

PR started but not finished #14551

@matks
Copy link
Contributor Author

matks commented Oct 14, 2021

Another PR on the topic #14397

@matks matks closed this as completed Oct 14, 2021
Symfony Migration automation moved this from To do to Done Oct 14, 2021
@prestashop-issue-bot prestashop-issue-bot bot removed Ready Status: Issue is ready to be worked on labels Oct 14, 2021
@matks matks reopened this Oct 14, 2021
Symfony Migration automation moved this from Done to Hidden Oct 14, 2021
@sam-pires sam-pires removed their assignment Oct 20, 2021
@marionf marionf added Feature Type: New Feature and removed Improvement Type: Improvement labels Dec 28, 2021
@MatShir MatShir moved this from Hidden to To do in Symfony Migration Jul 10, 2023
@MatShir MatShir added the EPIC Macro-level issue gathering improvements & bugs related to a specific topic label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BO Category: Back Office Carriers Label: Which BO under menu is concerned EPIC Macro-level issue gathering improvements & bugs related to a specific topic Feature Type: New Feature migration symfony migration project Shipping Component: Which BO section is concerned
Projects
Development

No branches or pull requests

9 participants