Coder Social home page Coder Social logo

Comments (8)

kshitiz305 avatar kshitiz305 commented on July 20, 2024

@erral HI I would like to contribute to it, may I know what should be the ideal API that needs to be used.

from plone.restapi.

stevepiercy avatar stevepiercy commented on July 20, 2024

@kshitiz305
please read and follow Contributing to Plone and First-time contributors. As far as what needs to be done, @erral may have more information.

from plone.restapi.

kshitiz305 avatar kshitiz305 commented on July 20, 2024

@stevepiercy I have already gone through the agreement and would like to start contribution this would be my second contribution the project

from plone.restapi.

stevepiercy avatar stevepiercy commented on July 20, 2024

@kshitiz305 unless I am mistaken, you are not a member of the Plone GitHub organization, nor do you have any contributions to this project.

from plone.restapi.

kshitiz305 avatar kshitiz305 commented on July 20, 2024

@stevepiercy I had sent the Signed agreement Once the agreement he is verified by your team the pull request will be merged
plone/plone.app.contentmenu#48

from plone.restapi.

erral avatar erral commented on July 20, 2024

The contextnavigation endpoint uses a plone.api.content.get_state call to get the content's state

https://github.com/plone/plone.restapi/blob/master/src/plone/restapi/services/contextnavigation/get.py#L401

But the use of plone.api is only allowed in tests of this plone.restapi package, so this call should be replaced with the proper call to the get the state of the content.

You can check some other parts of plone.restapi to find the proper method to be called.

from plone.restapi.

davisagli avatar davisagli commented on July 20, 2024

@erral plone.api is already used in a few places. I think it is no problem, since plone.restapi is considered a core addon that sits on top of CMFPlone. It does not create a circular dependency, as long as plone.api does not import from plone.restapi.

@jensens Did I get it right?

from plone.restapi.

jensens avatar jensens commented on July 20, 2024

After our discussions at Beethoven sprint: this is correct. Be sure to not introduce performance issues, because plone.api adds some overhead with all its double checks. Usually it should be fine.

from plone.restapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.