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

Deprecate Page#visible attribute #1855

Merged
merged 7 commits into from May 29, 2020

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented May 27, 2020

What is this pull request for?

Deprecate Page#visible

Page slugs will be visible in URLs of child pages all the time in the future.
Please use Menus and Tags instead to re-organize your pages if your page tree does not reflect the URL hierarchy.

A rake task to help with the migration is available.

bin/rake alchemy:upgrade:4.6:restructure_page_tree

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

In Alchemy 5 all page slugs will be visible in URLs of child pages all the time. Please use Menus and Tags instead to re-organize your pages if your page tree does not reflect the URL hierarchy.
@tvdeyen tvdeyen added this to the 4.6 milestone May 27, 2020
lib/tasks/alchemy/upgrade.rake Show resolved Hide resolved
lib/alchemy/upgrader/four_point_six.rb Outdated Show resolved Hide resolved
@tvdeyen tvdeyen requested a review from mamhoff May 27, 2020 14:11
This task helps with upgrading the page tree to Alchemy 5. It moves all children of invisible pages to the first visible parent (or the language root page), so that they reflect the URL hierarchy.
@tvdeyen tvdeyen self-assigned this May 27, 2020
@tvdeyen tvdeyen removed the request for review from mamhoff May 27, 2020 15:04
mamhoff and others added 3 commits May 28, 2020 21:47
This refactors the page tree restructuring to do so recursively rather
than analyzing parents.
@tvdeyen tvdeyen merged commit 7c9f745 into AlchemyCMS:4.6-stable May 29, 2020
tvdeyen added a commit that referenced this pull request Jun 4, 2020
- Use apt update instead of apt-get in GH action [#1865](#1865) ([tvdeyen](https://github.com/tvdeyen))
- Use depth for page tree serializer root_or_leaf [#1864](#1864) ([tvdeyen](https://github.com/tvdeyen))
- Fix sitemap wrapper height [#1861](#1861) ([tvdeyen](https://github.com/tvdeyen))
- Do not return the root page with API responses. [#1860](#1860) ([tvdeyen](https://github.com/tvdeyen))
- Introduce page.url_path and use it for alchemyPageSelect [#1859](#1859) ([tvdeyen](https://github.com/tvdeyen))
- Update Urlname translation [#1857](#1857) ([tvdeyen](https://github.com/tvdeyen))
- Show url name in Page tree [#1856](#1856) ([tvdeyen](https://github.com/tvdeyen))
- Deprecate Page#visible attribute [#1855](#1855) ([tvdeyen](https://github.com/tvdeyen))
- 4.6: Re-add `auto_logout_time` configuration option [#1852](#1852) ([mamhoff](https://github.com/mamhoff))
- Backport ContentEditor to 4.6, deprecate removed methods on `Alchemy::Content` [#1847](#1847) ([mamhoff](https://github.com/mamhoff))
- Deprecate auto_logout_time (4.6) [#1843](#1843) ([tvdeyen](https://github.com/tvdeyen))
- Deprecate require_ssl (4.6) [#1842](#1842) ([tvdeyen](https://github.com/tvdeyen))
- Deprecate url_nesting configuration (4.6) [#1841](#1841) ([tvdeyen](https://github.com/tvdeyen))
- Allow page visible toggle (4.6) [#1838](#1838) ([tvdeyen](https://github.com/tvdeyen))
@tvdeyen tvdeyen deleted the deprecate-page_visible branch October 11, 2021 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants