Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Remove `BiMap` and `SchemaParserDictionary.getDictionary()` in 15.0.0

Đang mở
#900 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
graphql, java, kotlin
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Read the changes in #861, then locate SchemaParserDictionary, BiMap, BiMapTest, and SchemaParserDictionaryTest to identify the deprecated API and tests named in the issue. Before removing them, check GraphQLJavaToolsAutoConfiguration in graphql-spring-boot and confirm that dependent release uses toMap(). Done means the listed API and tests are removed and the Spring Boot call site has migrated in a compatible release.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

#861 replaces the library's own use of graphql.kickstart.tools.util.BiMap with plain maps and adds SchemaParserDictionary.toMap(). getDictionary() and BiMap stay for now because they're public, and are deprecated. We should remove both in the next major release (15.0.0).

It's a breaking change, so it can't go into a 14.x release. getDictionary() returns a BiMap, so dropping the class means dropping the method too, and changing its return type in place breaks binary compatibility anyway.

What to remove
  • SchemaParserDictionary.getDictionary()
  • graphql.kickstart.tools.util.BiMap and BiMapTest
  • the getDictionary() test in SchemaParserDictionaryTest
Before removing

graphql-spring-boot calls builder.dictionary(dictionary.getDictionary()) in GraphQLJavaToolsAutoConfiguration. It needs to switch to toMap() in a release that depends on a graphql-java-tools version that has it.

Migration
// before
builder.dictionary(dictionary.getDictionary())
// after
builder.dictionary(dictionary.toMap())
Ngôn ngữ chính
Kotlin
Star
824
Fork
175
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
59

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của graphql-java-kickstart/graphql-java-tools

Tất cả issue của graphql-java-kickstart/graphql-java-tools

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.