Skip to content

Query Builder crashes when linking any table to Projects table #8083

@bhumikaguptaa

Description

@bhumikaguptaa

Describe the bug

When attempting to build and run a query that links any table (e.g., Collection Object, Accession, Locality) to Projects, the backend crashes and throws an Error. It appears the projects relationship is missing from the backend.

To Reproduce
Steps to reproduce the behavior:

  1. Go to query builder
  2. Select collection objects as base table
  3. Map any field from projects table and query
  4. See error

Expected behavior
There should be no error and any mapping from project table should be displayed.

Screenshots

1.1.mov

Crash Report

Specify 7 Crash Report - 2026-05-13T17_19_56.486Z.txt

Please fill out the following information manually:

Additional context
Tested it in both latest v7 and main branch. Came across the issue while testing #8023.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - QueriesIssues that are related to the query builder or queries in general

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions