Open a log route that takes (upcoming) navigation breadcrumbs
into account.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- R65:f3cf76370ef7: service: minor fixes, switch to map objects instead of lists
R65:51b7f73039e6: backend: provide lookup for a list of revision sha1s
R65:153b3572d378: Service: provide lookup of a list of revision sha1s
R65:fa57b641d05f: Api: open '/revision/<sha1>/prev/<sha1list>/' route for nav breadcrumbs
rDWAPPSf3cf76370ef7: service: minor fixes, switch to map objects instead of lists
rDWAPPSfa57b641d05f: Api: open '/revision/<sha1>/prev/<sha1list>/' route for nav breadcrumbs
rDWAPPS153b3572d378: Service: provide lookup of a list of revision sha1s
rDWAPPS51b7f73039e6: backend: provide lookup for a list of revision sha1s
Diff Detail
Diff Detail
- Repository
- rDWAPPS Web applications
- Branch
- ContextBrowse
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 249 Build 369: Software Heritage Python tests Build 368: arc lint + arc unit
Event Timeline
swh/web/ui/backend.py | ||
---|---|---|
182 | I don't remember, do we absolutely need to check the length? | |
swh/web/ui/service.py | ||
235 | What about lookup_revisions? | |
254 | you could use map or a generator here. In general, personally, i avoid round-trips if i can avoid it. | |
257 | You could also use map map(converters.from_revisions, revisions) or a generator ^^ (converters.from_revision(x) for x in revisions) The superior layer does the translation before serializing anyway. Impact: You'll need to force the lazyness in your tests for this function (by wrapping your call in a list for example). | |
swh/web/ui/views/api.py | ||
704 | children path | |
722 | if not prev_sha1s: | |
724 | you can remove the else: altogether. |
swh/web/ui/service.py | ||
---|---|---|
235 | That's a good point ^^ |