Page MenuHomeSoftware Heritage

browse: Add tip revision info in content/directory views if available
ClosedPublic

Authored by anlambert on Mon, Jun 22, 5:32 PM.

Details

Summary

When browsing a content or a directory in a snapshot context, add a box on top
of the views content giving info about current tip revision: link, author, date
and first message line.

Below are some screenshots of the result:

Closes T2326

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

anlambert created this revision.Mon, Jun 22, 5:32 PM

Build is green

Patch application report for D3335 (id=11818)

Rebasing onto 9e0b50ba24...

Current branch diff-target is up to date.
Changes applied before test
commit 058c6047e65498539084bcce6e650c9d1a5b9c1c
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Mon Jun 22 16:21:50 2020 +0200

    browse: Add tip revision info in content/directory views if available
    
    When browsing a content or a directory in a snapshot context, add a box on top
    of the views content giving info about current tip revision: link, author, date
    and first message line.
    
    Closes T2326

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

ardumont accepted this revision.Tue, Jun 23, 11:45 AM
ardumont added a subscriber: ardumont.

Nice.

one remark/question for a docstring above.

swh/web/common/typing.py
102

snapshot int that?

into might be?

(it seems that the pattern snapshot int that exists in multiple locations)

This revision is now accepted and ready to land.Tue, Jun 23, 11:45 AM
anlambert added inline comments.Tue, Jun 23, 2:12 PM
swh/web/common/typing.py
102

Gosh, I am the king of the typos these days. Thanks !

anlambert updated this revision to Diff 11830.Tue, Jun 23, 2:16 PM

Fix typos

Build is green

Patch application report for D3335 (id=11830)

Rebasing onto 9e0b50ba24...

Current branch diff-target is up to date.
Changes applied before test
commit 33de552220749ae2b14cefefec33ff777450ea40
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Mon Jun 22 16:21:50 2020 +0200

    browse: Add tip revision info in content/directory views if available
    
    When browsing a content or a directory in a snapshot context, add a box on top
    of the views content giving info about current tip revision: link, author, date
    and first message line.
    
    Closes T2326

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