Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API returning blank title from creatorsAndContributors #988

Open
bklaing2 opened this issue Jul 21, 2023 · 1 comment
Open

API returning blank title from creatorsAndContributors #988

bklaing2 opened this issue Jul 21, 2023 · 1 comment

Comments

@bklaing2
Copy link
Member

Describe the bug

When running the query below in staging, some of the title fields are returned as null. The title field in creatorsAndContributors is set on this line. It is pulling the value from the name field, which, if not provided at creation, is derived from the firstname and surname fields.

Expected Behaviour

The API does not return null values for the title field

Current Behaviour

The API is returning null values for the title field

Steps to Reproduce

Run the following query in the staging graphQL playground. A few of the contributors will have null titles

{
  organization(id: "04wxnsj81") {
    works(first: 25) {
      creatorsAndContributors {
        id
        title
        count
      }
    }
  }
}

Context (Environment)

When searching by author in Commons

Proposal

Hypothesis

If the name field is blank, the API should probably handle it instead of returning a null title value

Possible Implementation

@jrhoads
Copy link
Contributor

jrhoads commented Jun 29, 2024

@bklaing2 Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants