Page MenuHomeSoftware Heritage

indexer.journal_client: Subscribe to OriginVisitStatus topic
ClosedPublic

Authored by ardumont on Nov 26 2020, 3:17 PM.

Details

Summary

... instead of OriginVisit.

OriginVisit model object no longer hold status information so the current
filtering happening on the journal client side could not work.

Related to T2814
Related to P882

Test Plan

tox

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4605 (id=16347)

Rebasing onto d92c241980...

Current branch diff-target is up to date.
Changes applied before test
commit 7e03cc687c00b44cb7fbd76467566ad2de52eed1
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Nov 26 15:12:55 2020 +0100

    indexer.journal_client: Subscribe to OriginVisitStatus topic
    
    ... instead of OriginVisit.
    
    OriginVisit model object no longer hold status information so the current
    filtering happening on the journal client side could not work.
    
    Related to T2814
    Related to P882

See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/124/ for more details.

This revision is now accepted and ready to land.Nov 26 2020, 4:05 PM

Do these tests actually match the current contents of the origin_visit_status topic? I find this a little dubious.

Do these tests actually match the current contents of the origin_visit_status topic?

partially only.
But here just the necessary partial part so tests are fine.