diff options
author | Michael Gattozzi <mgattozzi@gmail.com> | 2019-12-02 17:31:33 -0500 |
---|---|---|
committer | Michael Gattozzi <mgattozzi@gmail.com> | 2019-12-03 11:47:05 -0500 |
commit | fcd4ccbec30493872feba137342347541b6a4e28 (patch) | |
tree | 1a74b26b4d49c952252f8816f7a7f616ae8a0792 /.dev-suite/ticket/closed/create-a-find_root-function.toml | |
parent | b41ddc1c38ac64a8d63fe99ee86a888c2d7adfa9 (diff) |
Upgrade ticket format from V0 to V1 to use UUIDs
This is a necessary upgrade to deal with the fact that incremental ids
do not work in distributed systems. For instance say we have two
branches from the same commit on master and they both add a new ticket.
Both will have the same incremental ID despite being completely separate
tickets. In this case we want to use UUIDs, specifically version 1 as
defined in IETF RFC 4122. This version of UUID uses a timestamp to
generate it and as a result the UUID it generates is *sortable*. This
means that the UUIDs can be created whenever on any branch, be unique,
and will be sortable by time. No matter when or where our tickets can be
sorted correctly by this UUID in a deterministic order.
Since we are also upgrading the code we've set up migration upgrade code
to handle this in case we need to do this again in the future. We also
add a few more fields and make some breaking changes since we already
are for the UUIDs.
Resources:
- https://tools.ietf.org/html/rfc4122
Diffstat (limited to '.dev-suite/ticket/closed/create-a-find_root-function.toml')
-rw-r--r-- | .dev-suite/ticket/closed/create-a-find_root-function.toml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.dev-suite/ticket/closed/create-a-find_root-function.toml b/.dev-suite/ticket/closed/create-a-find_root-function.toml new file mode 100644 index 0000000..49a550c --- /dev/null +++ b/.dev-suite/ticket/closed/create-a-find_root-function.toml @@ -0,0 +1,15 @@ +title = 'Create a find_root function' +status = 'Closed' +id = '0f37b780-1553-11ea-8003-000502040903' +assignees = [] +description = ''' +One of the issues with ticket is that it has a bug in init where if it's +not given the path to the root of a git then it will fail. This is +frankly frustrating and can be a bit unexpected in behavior. We fixed +this in the ticket creation with a `find_root` function. This should be +a more generalized function and be shared amongst future tools as this +will be a common operation. It shouldn't matter where in a repo you are, +the tools should just work. +''' +comments = [] +version = 'V1' |