Skip to content

Request to add more obs. unit data #83

Open

Description

@chaneylc

Please add more obs. units with varying obs. unit levels to test various features.

Activity

  1. josh45-source commented on Sep 24, 2026

    @josh45-source

    @jmh579 linked this from the brapiR2 review, so here's the client-library side of it.

    brapiR2 is an R client for BrAPI v2.1, just through rOpenSci peer review. The test server was enough to exercise every endpoint, but not to catch the bugs that mattered each of those only appeared on real Breedbase data. Roughly in order of value, these would have caught them:

    • Observation units at more than one level (plot and plant, say) within one study, which is what this issue asks for.
    • A study with several traits, some measured on only some units. Missing observations were the first real-data failure: building a wide trait table broke when a trait was absent for some units.
    • Two or three trials across several locations and seasons, so multi-environment analyses have something to work with.
    • Genotype data linked to the phenotyped germplasm: a variant set whose call sets cover the germplasm in the trials, with a few hundred markers so a dosage matrix can be built.
    • A multi-generation pedigree, so parents, siblings and progeny are all populated.
    • Some realistic messiness: Breedbase-style trait names (name - unit|ONTOLOGY:id), a value or two with stray whitespace, and a few nulls.

    It doesn't need to be large tens of germplasm and a few hundred observation units would exercise pagination and pivoting without slowing anyone's CI.

    Separately, /pedigree returns the same records with or without germplasmDbId, so the filter doesn't appear to be applied. Happy to open a separate issue if that isn't intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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