This is only a function not plugged to anything yet.
Remains the cli part to actually be able to use it.
Questions inline in the code as comment.
Related to T2967
Differential D4852
Start journal client to populate the origin_visit_stats model ardumont on Jan 13 2021, 1:08 PM. Authored by
Details
This is only a function not plugged to anything yet. Questions inline in the code as comment. Related to T2967 tox [1] D4848
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D4852 (id=17178)Rebasing onto a62003397d... Current branch diff-target is up to date. Changes applied before testcommit 52031853850394482c697fe2f9f634562cace31b Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jan 13 13:03:28 2021 +0100 Start journal client to populate the origin_visit_stats model Related to T2967 Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/100/ Comment Actions This needs more than introspecting the visit status information to determine the date Comment Actions Build has FAILED Patch application report for D4852 (id=17179)Rebasing onto a62003397d... Current branch diff-target is up to date. Changes applied before testcommit ab9871d3f14ccc4510ef0912af45716259630878 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jan 13 13:03:28 2021 +0100 Populate origin_visit_stats table out of the origin_visit_status topic Related to T2967 Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/101/ Comment Actions You should make origin_visit_stats_upsert take a list as arguments so that process_journal_objects can send them in batches. Right now, it's doing one query + one commit for each stats, and it's the bottleneck of the simulator Comment Actions Build is green Patch application report for D4852 (id=17179)Rebasing onto ca45d40f2a... First, rewinding head to replay your work on top of it... Applying: Populate origin_visit_stats table out of the origin_visit_status topic Changes applied before testcommit a2a046e2bc67b455707888bca01c99af7cbdfc13 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jan 13 13:03:28 2021 +0100 Populate origin_visit_stats table out of the origin_visit_status topic Related to T2967 See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/122/ for more details. |