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

Relations-controlpanel wrongly complains about outdated plone.restapi #4925

Closed
pbauer opened this issue Jun 27, 2023 · 2 comments
Closed

Relations-controlpanel wrongly complains about outdated plone.restapi #4925

pbauer opened this issue Jun 27, 2023 · 2 comments

Comments

@pbauer
Copy link
Sponsor Member

pbauer commented Jun 27, 2023

The controlpanel http://localhost:3000/controlpanel/relations complains: "Please upgrade to plone.restapi >= 8.35.3."
But I already use the newest version shipped with Plone 6.0.6 and Volto 17.0.0-alpha.14 in a freshly created site.

Bildschirmfoto 2023-06-27 um 21 33 39

In the same DB in classic the controlpanel http://localhost:8080/Plone/@@inspect-relations works fine.

@davisagli
Copy link
Sponsor Member

Hmm. What I see in https://github.com/plone/volto/blob/master/src/components/manage/Controlpanels/Relations/Relations.jsx is that this message is shown if relations.stats.stats evaluates to false in the redux state (i.e. if there was a problem loading the /@relations endpoint). Can you check the network tab and see what response you are getting to that request?

(For what it's worth, the API was actually added in plone.restapi 8.39.0, so the minimum version in the message is wrong.)

@pbauer
Copy link
Sponsor Member Author

pbauer commented Jul 3, 2023

It works now so I cannot reproduce the issue any more. I get 404's on http://localhost:3000/++api++/findstenichätsch/@search though which comes from

dispatch(searchContent('/findstenichätsch', null, 'potential_targets'));

The constraint to 40 displayed relations makes the controlpanel rather useless for my use-case (inspecting, not creating relations) so I fall back to the classic version.

@pbauer pbauer closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants