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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Jan 30 2019, 10:58 AM
ardumont accepted this revision.Jan 30 2019, 11:03 AM
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
douardda updated this revision to Diff 3286.Jan 30 2019, 11:53 AM

fix the typo in the docstring

This revision was automatically updated to reflect the committed changes.