Giter Site home page Giter Site logo

Comments (4)

jpmurray avatar jpmurray commented on August 12, 2024

I actually like, and want this. But I do have a problem with doing it for real, and here's why: all entries submitted to the main website are moderated and either approved or rejected by some of our volounteers... Doesn't the idea of a having an option to write in the API contradicts the "freely create resources" aspect?

I mean, if you submit places wouldn't you expect them to be available now, rather than later in time? Of course, I could have trusted account who can bypass moderation (we've done it with data from UPA, although not from the API), but that would have us vetting accounts into trustability of their entries.

(Now I'm not saying it's a bad idea, I just want to make sure we can do it right!)

Also, right now, we are open to all categories of business that are permitted while in the sanitary emergency, but when it's over, we might, decide to go back to less categories... Although all entries could still be read and written in API and we would just decide what to show or hide on our end. (Yeah, ok, this point is non valid!)

from solutionlocale.ca.

PierrePaul avatar PierrePaul commented on August 12, 2024

Im going to try my best to unwrap everything :

Doesn't the idea of a having an option to write in the API contradicts the "freely create resources" aspect?

I dont understand what you mean. Why can't we have moderated and user-submitted?

I mean, if you submit places wouldn't you expect them to be available now, rather than later in time?

I would actually expect the API to return places with a status field and let me decide which Places to show and how to show them. Another idea, the API returns approved Places and Places created with my API (with a status field = 'pending').

(Now I'm not saying it's a bad idea, I just want to make sure we can do it right!)

I totally understand, this is a big feature.

Although all entries could still be read and written in API and we would just decide what to show or hide on our end.

Like I said earlier, that would also be the job of the client to decide what to do with them.

from solutionlocale.ca.

jpmurray avatar jpmurray commented on August 12, 2024

Why can't we have moderated and user-submitted?

Well, my fear there was in the way I was seeing the API. At first I was thinking of the write routes to be as free as the read route, meaning we could write as much as we could read without anything coming in to block us... Like, you could build an entire new frontend interface and just interact with out API. But...

I would actually expect the API to return places with a status field and let me decide which Places to show and how to show them.

This does make more sense. People could just submit places, and they get to the moderation queue. For us that's important, but anyone could just decide to go over our decided limitation and get anything that's not moderated for solution locale still. That'd work.

Another idea, the API returns approved Places and Places created with my API (with a status field = 'pending').

This is almost ready actually. The partner route gives you any external source of data we've added (for now, only the UPA).

Like I said earlier, that would also be the job of the client to decide what to do with them.

This is the key, and you're right about it. We can open the API, and that's for the clients (be them others or our own site) to play with them. I'll submit this to our core team to see what they think about that!

from solutionlocale.ca.

jpmurray avatar jpmurray commented on August 12, 2024

We'd have to find a good solution or #31 before though. We need something that'd detect possible doubles if the API gets opened.

from solutionlocale.ca.

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.