Skip to content

ClassValidationErrors for draft/preview experiments #3026

@mikewilli

Description

@mikewilli

We are seeing intermittent errors with draft/preview experiments because the API returns all experiments including draft/preview experiments, but sometimes these are not returned when requesting the specific slug (and this is important because the default behavior is to first request all experiments, and then each slug is queried individually on the cluster to determine if it's ready to be analyzed).

I think the API behavior changed at some point because Nimbus previous set up a specific /draft-experiments/ endpoint just for the jetstream preview capability, but now both Draft and Preview are being included in the regular endpoint alongside Live and Complete (with an optional status filter). Regardless though it's confusing that an experiment returned by the base endpoint is not found when requesting by slug.

On the jetstream side, we should be able to resolve this particular issue by filtering the request to status=Complete&status=Live.

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions