Page MenuHomeSoftware Heritage

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

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



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/ with pytest and use the postgresql fixture

Diff Detail

rDSCH Scheduling utilities
Automatic diff as part of commit; lint not applicable.
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!


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.