Giter Site home page Giter Site logo

API proposal: plugin actions about nameless HOT 4 OPEN

Derkades avatar Derkades commented on June 18, 2024
API proposal: plugin actions

from nameless.

Comments (4)

partydragen avatar partydragen commented on June 18, 2024

Yea then its the question we discussed before to use Queue system as it kinda belongs in there, But at the same time it don't and might be better with a own system for that idk

Also by type wont that be messy as then you need to check if its a command to avoid hard coding each type so you don't need to add support for new modules like

  • store:command
  • forms:command
  • trophies:command

unless you check after : is "command" idk

from nameless.

samerton avatar samerton commented on June 18, 2024

Something to consider with this approach would be how we store these "actions" that haven't been synced yet, and also how we know if we should store them or not (i.e. if there is no plugin set up storing them would be pointless)

from nameless.

Derkades avatar Derkades commented on June 18, 2024

Also by type wont that be messy as then you need to check if its a command to avoid hard coding each type so you don't need to add support for new modules like
* store:command
* forms:command
* trophies:command

We could add a generic type for command, good idea.

Something to consider with this approach would be how we store these "actions" that haven't been synced yet, and also how we know if we should store them or not (i.e. if there is no plugin set up storing them would be pointless)

I assumed we'd just store it in a database table. You do make a good point about actions piling up when no plugin is set up. Perhaps pending actions should be removed after a certain timeout, like a month?

from nameless.

partydragen avatar partydragen commented on June 18, 2024

Something to consider with this approach would be how we store these "actions" that haven't been synced yet, and also how we know if we should store them or not (i.e. if there is no plugin set up storing them would be pointless)

Could add last ping colum to servers table like i do with Store connections, Then we know if server is setup correctly and we know its active or not

from nameless.

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.