Page MenuHomeSoftware Heritage

browse: Merge snapshot context related functions in dedicated module
ClosedPublic

Authored by anlambert on Apr 15 2020, 3:34 PM.

Details

Summary

First part of T2360 and not really interesting to review.

The diff simply moves existing code to a new module swh.web.browse.snapshot_context.

Some import reorganization and URL regexps polishing in swh.web.browse.views.origin have also been performed.

Diff Detail

Repository
rDWAPPS Web applications
Branch
snapshot-context-merge
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11855
Build 17984: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 17983: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/web/tests/browse/views/test_origin.py
445

That test is a pita ;)

This revision is now accepted and ready to land.Apr 15 2020, 3:41 PM

Build is green

Patch application report for D3021 (id=10734)

Rebasing onto 6cd93e8e8e...

Current branch diff-target is up to date.
Changes applied before test
commit 9ad1d27bd4e092161cfd1badf6814b560feeefc9
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Apr 14 17:15:39 2020 +0200

    browse: Merge snapshot context related functions in dedicated module
    
    Related to T2360

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

swh/web/tests/browse/views/test_origin.py
445

Yep, it is awful ! I must refactor that s**t and create one test case for each error.

swh/web/tests/browse/views/test_origin.py
445

yes, it grew out of proportion.

have *fun* ;)

swh/web/tests/browse/views/test_origin.py
445

D3022 \o/