Skip to content

Keep deleted issue author as ghost #24888

Discussion options

You must be logged in to vote

In talking with the developers, this was a deliberate design decision to make this change for the GraphQL API. For example, imagine this query:

query {
   repository(owner: "foo", name: "bar") {
     issue(number: 22) {
       author {
         ...on User {
          repositories(first: 10) {
            nodes {
              nameWithOwner
            }
          }
        }
      }
    }
  }
}

By returning a User.ghost for the issue author in this case, we then present a bunch of data about the ghost user (or no data), which is (at best) useless to the user, and at worst will lead them to mis-associate information.

Instead, by returning null, we are able to indicate exactly where in the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants