runbot/runbot_merge/models
Xavier Morel 0e0348e4df [IMP] runbot_merge: preserve batch ordering in stagings
Batch ordering in stagings is important in order to correctly
reconstitute the full project history.

In the old mergebot, since batches are created on the fly during
staging this information is reified by the batch ids. But since batch
ids are now persistent and there is no relationship between the
creation of a batch and its merging (especially not relative to other
batches) it's an issue as reconstituting sub-staging git history would
be impossible.

Which is not the worst, but is not great.

The solution is to reify the join table between stagings and batches
in order for *that* to keep history (simply via the sequential PK),
and in converting to the new system carefully generate the new links
in an order matching the old batch ids.
2024-05-29 07:55:07 +02:00
..
crons [FIX] runbot_merge: maintenance gc command 2024-02-26 09:58:22 +01:00
project_freeze [CHG] runbot_merge: move staging readiness to batch 2024-05-23 07:58:58 +02:00
staging_cancel [ADD] runbot_merge: stagings canceling wizard 2022-12-08 10:46:22 +01:00
__init__.py [CHG] *: persistent batches 2024-05-23 07:58:58 +02:00
batch.py [IMP] runbot_merge: preserve batch ordering in stagings 2024-05-29 07:55:07 +02:00
commands.py [FIX] runbot_merge: handling of staging cancellation 2024-05-23 07:58:58 +02:00
ir_actions.py [IMP] runbot_merge: add json & requests to server actions context 2023-02-20 10:13:05 +01:00
project.py [CHG] *: move forward-porting over to batches 2024-05-24 09:08:56 +02:00
pull_requests.py [IMP] runbot_merge: preserve batch ordering in stagings 2024-05-29 07:55:07 +02:00
res_partner.py [ADD] runbot_merge: ad-hoc ACL tracking to res.partner 2024-05-16 09:32:03 +02:00
stagings_create.py [IMP] runbot_merge: preserve batch ordering in stagings 2024-05-29 07:55:07 +02:00
utils.py [CHG] runbot_merge: move priority field from PR to batch 2024-05-23 07:58:58 +02:00