Remove `BiMap` and `SchemaParserDictionary.getDictionary()` in 15.0.0
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #908 来自 @oryan-block —— 已合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
#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.BiMapandBiMapTest- the
getDictionary()test inSchemaParserDictionaryTest
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())
- 主要语言
- Kotlin
- 星标
- 824
- 派生
- 175
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 86
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphql-java-kickstart/graphql-java-tools 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 20/100
graphql-java-kickstart/graphql-java-tools#571 ·
维护者通常 1 天内回复
查看 graphql-java-kickstart/graphql-java-tools 的全部 Issue
相似的 Issue
-
copy design-review mac P3
难度 2/5 1-3 小时 新手友好度 88/100
tosunlab/hisarapp-core#510 ·
-
priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 78/100
googleapis/kotlin-genai#213 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
RevenueCat/purchases-hybrid-common#2039 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
pengchujin/aerial-tv#771 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
partiql/partiql-scribe#223 ·
维护者通常 3 天内回复