Skip to content

datasets GraphQL resolver can crash if results include deleted datasets accesible to the querying user #3590

@nellh

Description

@nellh

What went wrong?

The datasets collection resolver uses the permissions collection which intentionally is retained when datasets are removed for audit purposes. This leads to null values returned as edges when inaccessible datasets are included in the results.

Expected behavior

The resolver should only return datasets that have not been deleted.

How to reproduce

No response

Desktop

  • OS:
  • Browser:
  • Version:

Phone

  • Device:
  • OS:
  • Browser:
  • Version:

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions