Skip to content

Recursive tag management in folder contents.#329

Open
thet wants to merge 2 commits into
masterfrom
thet/fc-tags-recurse
Open

Recursive tag management in folder contents.#329
thet wants to merge 2 commits into
masterfrom
thet/fc-tags-recurse

Conversation

@thet

@thet thet commented Apr 19, 2026

Copy link
Copy Markdown
Member

Allow to recursively add and remove tags in the folder contents tags management popup. @thet

  • I signed and returned the Plone Contributor Agreement, and received and accepted an invitation to join a team in the Plone GitHub organization.
  • I verified there aren't any other open pull requests for the same change.
  • I followed the guidelines in Contributing to Plone.
  • I successfully ran code quality checks on my changes locally.
  • I successfully ran tests on my changes locally.
  • If needed, I added new tests for my changes.
  • If needed, I added documentation for my changes.
  • I included a change log entry in my commits.

If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.

Closes #

@mister-roboto

Copy link
Copy Markdown

@thet thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@thet thet force-pushed the thet/fc-tags-recurse branch 2 times, most recently from 7885684 to 1982096 Compare April 20, 2026 00:00
@thet

thet commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@thet thet requested review from jensens and petschki April 20, 2026 00:06

@petschki petschki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Minor translation comment.

Comment thread src/plone/app/content/browser/contents/templates/tags.pt Outdated
Comment thread src/plone/app/content/browser/contents/templates/tags.pt Outdated
Comment thread src/plone/app/content/browser/contents/templates/tags.pt Outdated
Comment thread src/plone/app/content/browser/contents/tags.py Outdated
@thet thet force-pushed the thet/fc-tags-recurse branch from 535b825 to 3d4ef6b Compare May 4, 2026 22:20
Allow to recursively add and remove tags in the folder contents tags management popup.
@thet
@thet thet force-pushed the thet/fc-tags-recurse branch from 3d4ef6b to 0c47180 Compare May 4, 2026 22:21
@thet thet requested a review from petschki May 4, 2026 22:25
@thet

thet commented May 4, 2026

Copy link
Copy Markdown
Member Author

Tnx for the reviews! I applied all suggestions, rebased on master and force-pushed to this branch for a clean git history.

@mauritsvanrees mauritsvanrees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already in the RC stage, so we shouldn't really be adding features...
But this is small, and contained to one package, so there is not much risk.

Seems to work fine in local testing.

But I'm not sure about the default page handling. You are in the contents of a container and you add/remove tags from its children. Then I don't expect that the container itself gets updated as well if you use this recurse option.
When you edit a default page with the standard Edit form and set a tag, its folder also doesn't get updated.


def action(self, obj, bypass_recurse=False):
if check_default_page_via_view(obj, self.request):
self.action(obj.aq_parent, bypass_recurse=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not expect that the parent folder tags of a default page would get changed too when I click that in the folder contents... though its the same behavior as for the workflow state, but there it makes sense from a permission perspective.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right - that's copied code so same behavior here as with the workflow state.
Not sure what I would expect here.
@mauritsvanrees has an argument with the edit-view behavior which also doesn't change the workflow state.

@thet

thet commented May 5, 2026

Copy link
Copy Markdown
Member Author

@mauritsvanrees I'm fine to not merge this yet resp. creating a branch from master for 6.2 - especially while it's not clear how to handle the default page problem.

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.

7 participants