Page MenuHomeSoftware Heritage

Make the prepare_event helper function pre-aggregate the events with same url
ClosedPublic

Authored by douardda on Jan 30 2019, 10:58 AM.

Details

Summary

and strip these urls as well.

It makes no sense to register 2 different URLs when they are equal to a
trailing ws detail.
As a result, we must preaggregate them because the swh_cache_put() sql
function won't allow several 'on conflict' for the same id.

Rewrite updater/test_backend.py with pytest and use the postgresql fixture

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
wip
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 3840
Build 5030: tox-on-jenkinsJenkins
Build 5029: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.

Thank you!

swh/scheduler/updater/backend.py
62

not mean

This revision is now accepted and ready to land.Jan 30 2019, 11:03 AM

fix the typo in the docstring

This revision was automatically updated to reflect the committed changes.