tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.19k stars 210 forks source link

bug: AmbiguousType transformer renames type, but renamed type is missing in final configuration. #2227

Closed laststylebender14 closed 1 week ago

laststylebender14 commented 2 weeks ago

Description

After applying the AmbiguousType transformer to a configuration generated from a proto file, the input type news__StatusInput mentioned in news__NewsInput is not listed in the resulting config file.

configuration post transformation

schema @server @upstream @link(src: "../../../tailcall-fixtures/fixtures/protobuf/news.proto", type: Protobuf) {
  query: Query
}

input news__NewsInput @tag(id: "news.News") {
  body: String
  id: Int
  postImage: String
  status: news__StatusInput
  title: String
}

enum news__Status {
  DELETED
  DRAFT
  PUBLISHED
}

type Query {
  news__NewsService__AddNews(news: news__NewsInput!): news__News! @grpc(body: "{{.args.news}}", method: "news.NewsService.AddNews")
}

type news__News @tag(id: "news.News") {
  body: String
  id: Int
  postImage: String
  status: news__Status
  title: String
}
tusharmath commented 2 weeks ago

Can you reduce the example to a bare minimum