Page MenuHomeSoftware Heritage

Storage: Fix snapshot_get_latest implementation
ClosedPublic

Authored by anlambert on Sep 19 2018, 11:40 AM.

Details

Summary

While working on the Subversion loader, I noticed that the snapshot_get_latest
method from the Storage class was not returning the latest snapshot to date
for an origin but instead the first created one.

That diff fixes the underlying database query in order for the method
to honor its semantics.

Test Plan

Test data have been updated accordingly to capture the fixed issue.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.