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

Update relations control panel to use new result format from relations endpoint #4792

Merged
merged 2 commits into from
May 20, 2023

Conversation

davisagli
Copy link
Sponsor Member

@davisagli davisagli commented May 19, 2023

@ksuess I tried to update the control panel to use the updated result format that you worked on this morning. Please check my work (especially the broken relations component, which I'm not sure how to test).

Edited to add: I was working on this quickly at the end of the day and I am not confident it is right yet.

@davisagli davisagli requested a review from ksuess May 19, 2023 14:39
@netlify
Copy link

netlify bot commented May 19, 2023

Deploy Preview for volto ready!

Name Link
🔨 Latest commit d4ec7ef
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/64689b2a7b952a0008251540
😎 Deploy Preview https://deploy-preview-4792--volto.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@cypress
Copy link

cypress bot commented May 19, 2023

Passing run #5229 ↗︎

0 493 20 0 Flakiness 0

Details:

fix
Project: Volto Commit: d4ec7ef6a1
Status: Passed Duration: 14:00 💡
Started: May 20, 2023 10:07 AM Ended: May 20, 2023 10:21 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@davisagli davisagli force-pushed the relations-control-panel-result-format branch from 777d880 to 433b200 Compare May 19, 2023 15:37
@ksuess ksuess force-pushed the relations-control-panel-result-format branch from 433b200 to d4ec7ef Compare May 20, 2023 10:04
Copy link
Member

@ksuess ksuess left a comment

Choose a reason for hiding this comment

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

Thank you @davisagli !
With a fix on plone.restapi correcting the format for broken links according the format for valid relations, this is fine and the broken links show up in the panel as expected and like before. Yeah!

@ksuess
Copy link
Member

ksuess commented May 20, 2023

For testing purpose https://github.com/collective/example.contenttype can be installed. Then create two instances A and B. Create a relation. Delete B. Voilà a broken relation appears in the panel.

@ksuess ksuess merged commit 3ddd59c into relations-control-panel May 20, 2023
@ksuess ksuess deleted the relations-control-panel-result-format branch May 20, 2023 11:50
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.

2 participants