pshaughn / okayworld

backend for play.okayideas.com
0 stars 1 forks source link

(longer term issue) instance lifecycle #16

Open pshaughn opened 6 years ago

pshaughn commented 6 years ago

What creates instances? Can an instance transition from one playset to another, and if so what objects make that decision? How should users interact with the concept of instances?

pshaughn commented 6 years ago

Here's one possible model:

I am not sure I like this model; it's more the smallest delta from what I've already coded than it is something I'd come up with from scratch.

pshaughn commented 6 years ago

Here's a user story pointing at another model:

pshaughn commented 6 years ago

On further consideration, the above seems too heavy and monolithic. Better to take a simpler approach first.

pshaughn commented 6 years ago

What are the really important things?

User story with this in mind:

pshaughn commented 6 years ago

Observations for what's needed to support the above user story:

pshaughn commented 6 years ago

continuing from the above post, comparing them:

pshaughn commented 6 years ago

It seems like it may be time to start code over almost from scratch! The existing proof-of-concept doesn't point in the right direction for some desirable behaviors, and the playset API has gotten a bit crufty due to past decisions.

pshaughn commented 6 years ago

ditch "commands" entirely, replace "input strings" with json-serializable input objects. ditch rate limits as a playset-independent concept, instead the playset can just validate an input object if it wants to

pshaughn commented 6 years ago

various rewrite considerations in progress now, things are shifting around away from the above and will need documentation when they settle