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
Branch
fix-snapshot-get-latest
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1403
Build 1747: arc lint + arc unit