Right now, the code in GetDealsInPipeline() makes several queries to track everything in the pipeline. On the Boost Sealing Pipeline page, it uses the AppSealingPipelineQuery to retrieve the counts. Explore using this as it will drastically simplify the logic and potentially account for more edge cases (ex- unsealing is currently not accounted for)
Right now, the code in
GetDealsInPipeline()
makes several queries to track everything in the pipeline. On the BoostSealing Pipeline
page, it uses theAppSealingPipelineQuery
to retrieve the counts. Explore using this as it will drastically simplify the logic and potentially account for more edge cases (ex- unsealing is currently not accounted for)https://github.com/application-research/delta-importer/blob/main/services/boost.go#L206