Git Product home page Git Product logo

Comments (5)

chris-miaskowski avatar chris-miaskowski commented on May 19, 2024

Hey @lottamus, @pytlesk4, can we sync quickly on this issue? It will require some API changes and I want to check-in if you have a better idea.

In essence, projects.nodes endpoint will need to return data (a string that we can later JSON.parse). I think it makes sense to send the entire data object (even though I will be picking only one property right now - the method name) but maybe you don't think it doesn't make sense.

from elements.

lottamus avatar lottamus commented on May 19, 2024

maybe you don't think it doesn't make sense

The entire data object could potentially be huge. Returning that for 300+ nodes would be a lot of data. Ideally we would just create this tree data object in the analyzer then store is in another table for easy access but we need a design doc on how that should work.

For now I suggest just grabbing whatever you need and returning it with the node. https://github.com/stoplightio/api-gen3/blob/58b22e774795631c5a52a423ff21711dfbf14cf1/src/services/projects/controller.ts#L62

from elements.

chris-miaskowski avatar chris-miaskowski commented on May 19, 2024

Cool, makes sense!

from elements.

chris-miaskowski avatar chris-miaskowski commented on May 19, 2024

Leaving this to someone from Docs squad.

from elements.

lottamus avatar lottamus commented on May 19, 2024

Closing in favor of #67

from elements.

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.