volto icon indicating copy to clipboard operation
volto copied to clipboard

change history route name

Open danielamormocea opened this issue 3 years ago • 10 comments

Fixes #2692

danielamormocea avatar May 06 '22 08:05 danielamormocea

Deploy Preview for volto canceled.

Name Link
Latest commit f482018fb8f6197d350947f6a9a5c8536a81fda7
Latest deploy log https://app.netlify.com/sites/volto/deploys/633ea8c3d6c1b400083b5e99

netlify[bot] avatar May 06 '22 08:05 netlify[bot]



Test summary

410 0 20 0


Run details

Project Volto
Status Passed
Commit f482018fb8
Started Oct 6, 2022 10:10 AM
Ended Oct 6, 2022 10:22 AM
Duration 12:26 💡
OS Linux Ubuntu - 20.04
Browser Chrome 106

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

cypress[bot] avatar May 06 '22 08:05 cypress[bot]

@plone/volto-team I guess we should get to an agreement on naming.

Personally, pageHistory is far too specific, because could be the history of other content (eg. event). What about content-history?

Also, what about going back to the @@ notation?

sneridagh avatar May 06 '22 09:05 sneridagh

@sneridagh so should I just change the name to "content-history", or should I wait for the discussion's outcome regarding @@ ?

danielamormocea avatar May 06 '22 11:05 danielamormocea

@sneridagh The funny thing is that if you add a page called Sharing it's renamed to sharing-1.

@danielamormocea Can you please investigate what is different within the sharing case and why it doesn't behave the same for history?

avoinea avatar May 06 '22 12:05 avoinea

Because the issue is more deeper and it doesn't resumo only to History. Try adding a Page called controlpanel

avoinea avatar May 06 '22 12:05 avoinea

During lunch we decided to go ahwad with the @@ namespace leaving the current route for v16, deprecating it in next version. We change all references to @@ . Does that makes sense to you?

sneridagh avatar May 06 '22 12:05 sneridagh

Another question, how the history view in Plone is actually called?

sneridagh avatar May 06 '22 12:05 sneridagh

@sneridagh @@historyview

avoinea avatar May 06 '22 12:05 avoinea

@sneridagh I don't exactly understand what you mean by "We change all references to @@". Should I add some middleware, or I just change all the route names, or maybe there is another way I am not aware of? Some example would really help :) Thanks!

danielamormocea avatar Jun 04 '22 17:06 danielamormocea

Since the naming of the views is controversial, I'd say we use the same name that Plone has: historyview, and mark it as a Breaking change.

@danielamormocea could you please take care?

sneridagh avatar Oct 03 '22 08:10 sneridagh