Chromium Code Reviews
Description[Findit] Extending versioned_model.py to support versioning multiple entities of the same class.
Previously, versioned_model.py supports creating a singular versioned entity within Findit, and with each update of that singular entity a new version is created and saved. An example of this is wf_config.py, of which there is only 1 entity at any point that is periodically updated.
This change extends versioned_model.py to support creating multiple entities of the same base type by allowing for a string id for the root. For example, MasterFlakeAnalysis is to be versioned, so would have each instance's root key specified as 'master/builder/build_number/step/test' and the integer_id() component responsible for keeping track of which version number is being represented.
BUG=649396
Committed: https://chromium.googlesource.com/infra/infra/+/b5d534432bbd9697a0fed9ff6b8d1b0f3504fadb
Patch Set 1 #Patch Set 2 : Changing versioning mechanism to use integer for version number and fixing concurrency issue #
Total comments: 17
Patch Set 3 : Addressing comments #Patch Set 4 : Adding test #
Total comments: 4
Patch Set 5 : Addressing comments #Patch Set 6 : clean up #
Total comments: 6
Patch Set 7 : addressing comments #
Total comments: 12
Patch Set 8 : Fixing nits #Patch Set 9 : Ignore this patch, uploaded unrelated change to wrong branch #Messages
Total messages: 28 (8 generated)
|