Skip to content

test: add coverage for publications listing researchers/grants population #392

Description

@JanSmrcka

Context

PR #391 moved researcher/grant fetching from N+1 service calls into CALL {} subqueries in the main Cypher query. No test asserts that GetPublications returns populated EliResearchers and Grants slices.

Risk

If someone edits the Cypher RETURN map and drops eliResearchers/grants, nothing catches it.

Acceptance

  • Test that GetPublications returns non-empty EliResearchers for a publication with connected researchers
  • Test that GetPublications returns non-empty Grants for a publication with connected grants
  • Test that publications with no researchers/grants return empty slices (not nil)

Activity

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