stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

Automatically add "event replay or genesis sync required" note to CHANGELOG when necessary

Open rafaelcr opened this issue 4 years ago • 3 comments

For every new API release, we have to manually determine whether or not users would need to perform an event replay or full genesis sync to use the newer version (if anything from the DB changes). Furthermore, we have to add this note to the CHANGELOG by hand to let them know.

Ideally, we could set a rule to the CHANGELOG generator that detects changes in the /src/migrations directory to add this note automatically.

rafaelcr avatar Dec 02 '21 20:12 rafaelcr

#870

wileyj avatar Dec 03 '21 16:12 wileyj

Ideally, we could set a rule to the CHANGELOG generator that detects changes in the /src/migrations directory to add this note automatically.

This sounds like a good approach. We could also cut a 1.0 release and start using semver, then have the API store its version in pg, and on startup, it can check for incompatible previous API version, log a useful error with some pointers/instructions to event-replay, and exit.

zone117x avatar Dec 06 '21 16:12 zone117x

This can be completed by using the semantic-release/exec plugin. Adding an exec entry between these two lines which runs a script or command would take care of it.

CharlieC3 avatar Dec 07 '21 14:12 CharlieC3

semantic-release has been implemented, so this is no longer needed.

smcclellan avatar Sep 08 '23 21:09 smcclellan