Page MenuHomeSoftware Heritage

browse/directory: Add missing SWHIDs to display
ClosedPublic

Authored by anlambert on Jun 5 2020, 4:21 PM.

Details

Summary

When a directory is browsed in an origin or snapshot context, some SWHIDs to
display were missing: revision, release and snapshot.

Closes T2437

Depends on D3234.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3235 (id=11465)

Could not rebase; Attempt merge onto 7888549d8c...

Updating 7888549d..1ebdb97c
Fast-forward
 swh/web/browse/views/content.py              | 31 ++++++++--
 swh/web/browse/views/directory.py            | 20 ++++++-
 swh/web/tests/browse/views/test_content.py   | 90 +++++++++++++++++++++++++++-
 swh/web/tests/browse/views/test_directory.py | 67 ++++++++++++++++++++-
 4 files changed, 201 insertions(+), 7 deletions(-)
Changes applied before test
commit 1ebdb97c450253c577514549a0c292cd1a66d586
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Fri Jun 5 16:19:57 2020 +0200

    browse/directory: Add missing SWHIDs to display
    
    When a directory is browsed in an origin or snapshot context, some SWHIDs to
    display were missing: revision, release and snapshot.
    
    Closes T2437

commit e286f9a88bd62eff45b45f0af0f591f8e3d99e4a
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Fri Jun 5 16:01:37 2020 +0200

    browse/content: Add missing SWHIDs to display
    
    When a content is browsed in an origin or snapshot context, some SWHIDs to
    display were missing: directory, revision, release and snapshot.
    
    Related to T2437

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/154/ for more details.

This revision is now accepted and ready to land.Jun 5 2020, 5:32 PM