That field should only be returned by content_find method.
Add tests to check expected behaviors according to methods.
This fixes failing tests observed in https://jenkins.softwareheritage.org/job/DENV/job/tests/7/console
Differential D3856
cassandra: Discard Content ctime field in content_get_partition anlambert on Sep 1 2020, 3:50 PM. Authored by
Details
That field should only be returned by content_find method. Add tests to check expected behaviors according to methods. This fixes failing tests observed in https://jenkins.softwareheritage.org/job/DENV/job/tests/7/console
Diff Detail
Event Timeline
Comment Actions Build is green Patch application report for D3856 (id=13628)Rebasing onto e6fcfb931a... Current branch diff-target is up to date. Changes applied before testcommit 9082a8173ef0ba53c837756dceee9ea3d0cd7b5e Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Tue Sep 1 11:55:24 2020 +0200 cassandra: Do not return naive datetimes in content_get* See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/891/ for more details. Comment Actions it's fine, we're even doing it in content_find already. I just forgot these. Could you add tests, though? Comment Actions Build has FAILED Patch application report for D3856 (id=13643)Rebasing onto e6fcfb931a... Current branch diff-target is up to date. Changes applied before testcommit 21823987a3ca2678c60d30392ff7d38bd0d1cbd3 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Tue Sep 1 11:55:24 2020 +0200 cassandra: Do not return naive datetimes in content_get* Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/893/ Comment Actions Build has FAILED Patch application report for D3856 (id=13644)Rebasing onto e6fcfb931a... Current branch diff-target is up to date. Changes applied before testcommit 8b58bb252f0893649e7c5bcf9790db7a8298f700 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Tue Sep 1 11:55:24 2020 +0200 cassandra: Do not return naive datetimes in content_get* Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/894/
Comment Actions Build is green Patch application report for D3856 (id=13645)Rebasing onto e6fcfb931a... Current branch diff-target is up to date. Changes applied before testcommit 813ad9959ba9c1677cdea31e0461099788c9996d Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Tue Sep 1 11:55:24 2020 +0200 cassandra: Do not return naive datetimes in content_find See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/895/ for more details. Comment Actions Right, I mixed up the functions. So in fact ctime should be discarded by content_get_partition like in the postgresql storage, correct ? Comment Actions
Damn, i forget that part each time...
yes, that'd be my opinion as well. Comment Actions Final update (I hope): discard Content ctime field in content_get_partition cassandra implementation Comment Actions Build is green Patch application report for D3856 (id=13647)Rebasing onto e6fcfb931a... Current branch diff-target is up to date. Changes applied before testcommit 36d284c730565d99f6c3da6e07b8e5864ed2d216 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Tue Sep 1 11:55:24 2020 +0200 cassandra: Discard Content ctime field in content_get_partition That field should only be returned by content_find method. Add tests to check expected behaviors according to methods. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/896/ for more details. |