-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Control panel for relations #3382
Conversation
✅ Deploy Preview for volto canceled.
|
Passing run #5258 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
I like the ability to filter by source and target. But I don't really understand how the output in the screenshot should work. When relations always point from one content item to another content what is then "Chassis" etc? |
A binary relation is a subset of the cartesian product of source set and target set. This UI provides this cartesian product as a matrix with checkboxes with event handlers to add or delete a relation. The example above shows that 'Light system' has relation 'comprisescomponentpart' to ['Chassis', 'Electronics','Navigation System'] |
does this PR add an action to get the relations of a given object? That would be useful too. |
you mean, |
Yes I mean exactly that. Nowadays when we have a relation field in an object, to be able to get the related objects, we index the UID of the objects and then query the catalog to get that information. If an action is available, we can use that action that under the hood calls this endpoint and this way getting the related items could be easier. It could have several parameters to get the backreleations and also the name of the relation to query. |
Oh my, now I get it, you mean a Volto action to fetch the relations! |
Nice. I saw both the actions to get all relations and the plone.restapi endpoint documentation for it and that's why I asked about the context-relation action, I thought that everything was going to be here 😄 |
be26dc2
to
62b38b3
Compare
08a8403
to
0a49c30
Compare
I am prepared. Now I need the plone.restapi endpoint please, @pbauer. |
211209f
to
3ddd59c
Compare
Co-authored-by: Katja Süss <k.suess@rohberg.ch>
…bels and toggle sticky.
… '-'. Labels and toggle sticky.
… relations-control-panel
UI recomendations are turned into code. Tests are green. Let's review! |
* master: Release changelog for 16.20.7 (#4816) Release 17.0.0-alpha.8 Add supported languages (#4811) Fix html tag lang attribute in SSR (#4803) Finnish translation forwardport (#4084) (#4810) Control panel for relations (#3382) Add guard in case of malformed blocks are present (at least id and title should be present) (#4802) fixed the issue #4660 - shouldn't use a hook like function name for a variable (#4693) Fix HMR of @plone/volto (#4799)
* master: (26 commits) Update Brazilian Portuguese translations (Fixes #4853) Convert header class to function (#4767) Use a Container from the registry in the Form component and fallback to the Semantic UI one (#4849) Display password validation error if available; update minimum password length (#4801) Do not break requires validation on number fields with value 0 (#4841) Search Block: Add support for advanced facets that are displayed on demand (#4784) Release 17.0.0-alpha.9 Fix navigation sections in 404 pages (#4836) fix special characters in request urls (#4825) Fix block is undefined in StyleWrapper helper when building classnames (#4827) Fix glossary warning due to lack of empty line before a term (#4820) Release changelog for 16.20.7 (#4816) Release 17.0.0-alpha.8 Add supported languages (#4811) Fix html tag lang attribute in SSR (#4803) Finnish translation forwardport (#4084) (#4810) Control panel for relations (#3382) Add guard in case of malformed blocks are present (at least id and title should be present) (#4802) fixed the issue #4660 - shouldn't use a hook like function name for a variable (#4693) Fix HMR of @plone/volto (#4799) ...
@ksuess I am currently writing the official roadmap for Plone 6.x. I am adding a link to the documentation for every PLIP. Do we have any kind of documentation for the relations control panel? I'd also like to give people proper credit. Did anyone help you with this or did you work on this on your own? |
@ksuess @tisto I think this is the User Manual for it. Finding links and references to the current page. There's also developer docs: I hope that captured all of them. This was a huge effort! |
No, control panels are not documented.
The relations control panel is my work. |
TODO
Inspect and modify relations
Fix relations
Nice to have