Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration plans in database #15

Open
stuartpb opened this issue Aug 23, 2017 · 1 comment
Open

Migration plans in database #15

stuartpb opened this issue Aug 23, 2017 · 1 comment
Labels

Comments

@stuartpb
Copy link
Member

Now, I don't want to make the migration plan tooling too robust, since the current design is really to just copy-paste it in from a Gist that does proper version control and all. However, #14 (by way of #13) has forced this to get a little more robust than the current localStorage out-of-band hack, so there'll need to be a document for this in the DB.

Some thoughts:

  • It'll probably have an _id like reslackPlan (the current name of the plan in localStorage, even though that's gross). I thought about having it have a random UUID and making it findable by type, but really, all that does is make it possible to end up with conflicting plan documents floating around in one database, which would be bad. This way, Pouch would at least be able to tell that there's a mismatch if two conflicting plans were somehow uploaded.

I'm thinking it should contain:

  • The YAML source for the plan
  • The source of the last working YAML, if the current source does not compile

I was thinking about having it also serialize the parsed version, but now that I think about it, not only is that redundant, it also makes the plan document's deep structure potentially non-uniform, so, nah. The "last known working YAML" idea, though, seems like it might not be a bad idea (though, eh, it might be).

@stuartpb
Copy link
Member Author

Oh, looks like I've already got the machinery to do this in place, calling it "dreamplan".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant