Skip to content

Exclude fields_matched on single result view #1230

Open

Description

Problem

The fields_matched field does not make sense on the single results view as no search has been executed that could be matched.

Description

Exclude the fields_matched field on single result serializer.

One way to do this is to remove fields_matched from the basic MediaSerializer and have an additional subclass called SearchResultSerializer (or similar) that adds the field.

The field is currently always empty on the single results page. Removing it entirely would cause a backwards compatibility issue, so this is probably not possible to implement until we have #662 completed.

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

Metadata

Assignees

No one assigned

    Labels

    help wantedOpen to participation from the community⛔ status: blockedBlocked & therefore, not ready for work✨ goal: improvementImprovement to an existing user-facing feature🕹 aspect: interfaceConcerns end-users' experience with the software🟩 priority: lowLow priority and doesn't need to be rushed🧱 stack: apiRelated to the Django API

    Type

    No type

    Projects

    • Status

      ⛔ Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions