[PATCH v2 6/9] views: Add 'series' parameter to '/mbox' endpoint

Daniel Axtens dja at axtens.net
Fri Feb 24 14:22:15 AEDT 2017


Hi Stephen,


> +    # get the series-ified patch
> +    number = series.seriespatch_set.get(patch=patch).number
> +    for dep in series.seriespatch_set.filter(number__lt=number):
> +        mbox.append(patch_to_mbox(dep.patch))

I can't remember if I raised this already, but do we care if we don't
have a complete set of preceeding patches? (e.g. 4, 3 and 1 but not 2)

Regards,
Daniel

> +
> +    mbox.append(patch_to_mbox(patch))
> +
> +    return '\n'.join(mbox)
> -- 
> 2.9.3
>
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork


More information about the Patchwork mailing list