This allows implicitly updating the id when altering data,
which is very useful in tests of other packages
Depends on D8150.
Differential D8151
[RFC] Add 'evolve' method to BaseModel objects Authored by vlorentz on Jul 21 2022, 12:45 PM.
Details
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D8151 (id=29432)Could not rebase; Attempt merge onto b872718ab4... Updating b872718..a4cd229 Fast-forward swh/model/model.py | 32 ++++++++++++++++++++++++-------- swh/model/tests/test_model.py | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 8 deletions(-) Changes applied before testcommit a4cd229b7461058596dba74f63430e96cd2bb12f
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Thu Jul 21 12:44:50 2022 +0200
[RFC] Add 'evolve' method to BaseModel objects
This allows implicitly updating the id when altering data,
which is very useful in tests of other packages
commit a2158edd4073887a36c9778dcc1b71c667e66866
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Thu Jul 21 12:42:42 2022 +0200
Rename HashableObject to BaseHashableModel and make it a subclass of BaseModel
instead of a mix-in class.
A future commit will add a method implemented by both with different
signatures that mypy cannot unify yet.Link to build: https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/491/ Comment Actions Build is green Patch application report for D8151 (id=29436)Could not rebase; Attempt merge onto b872718ab4... Updating b872718..44e419e Fast-forward swh/model/model.py | 32 ++++++++++++++++++++++++-------- swh/model/tests/test_model.py | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 8 deletions(-) Changes applied before testcommit 44e419e6710e886b60188611ad0c94e9a7b30d89
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Thu Jul 21 12:44:50 2022 +0200
[RFC] Add 'evolve' method to BaseModel objects
This allows implicitly updating the id when altering data,
which is very useful in tests of other packages
commit b867d22a904c41ac40c2e7629ecf7bfdcfa25c4b
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Thu Jul 21 12:42:42 2022 +0200
Rename HashableObject to BaseHashableModel and make it a subclass of BaseModel
instead of a mix-in class.
A future commit will add a method implemented by both with different
signatures that mypy cannot unify yet.See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/493/ for more details. |