Remove the deprecated DoclingServeApiBuilderFactory SPI and related types
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
The work is in the docling-serve-api and docling-serve-client modules. Start by reviewing the deprecation in issue #696 and the serve-api-provider-migration.md guide. The checklist names specific files to delete (e.g., DoclingServeApiBuilderFactory, LegacyProviderAdapter) and tests to update. 'Done' means all deprecated types are removed, tests pass, and documentation is updated.
由索引模型根据 Issue 内容生成。
描述
#696 replaced the DoclingServeApiBuilderFactory SPI with DoclingServeApiProvider and deprecated the old types for removal in 0.7.0, keeping a fallback so existing implementations keep working. This issue tracks removing them.
Before removing
- At least one minor release has shipped with the deprecation, so no earlier than 0.8.0.
- Known third-party implementations, such as the Quarkus integration, have moved to
DoclingServeApiProvider.
docling-serve-api
- Delete
ai.docling.serve.api.spi.DoclingServeApiBuilderFactory, and itsusesclause inmodule-info.java. - Delete
DoclingServeApi.DoclingApiBuilderandDoclingServeApi.toBuilder(). - Delete
LegacyProviderAdapterandLegacyProviderAdapterTests. -
DoclingServeApiProviders: remove the legacy fallback, the warning logged when both SPIs are present, and the "(or of the deprecated …)" part of the no-provider message. UpdateDoclingServeApiProvidersTestsandDoclingServeApiTests. - Update the Javadoc of
DoclingServeApi.builder(), which describes the fallback. -
TestApis.StubDoclingServeApi: remove itstoBuilder()override.
docling-serve-client
- Delete
DoclingServeClientBuilderFactoryandDoclingServeClientBuilderFactoryTests. The Jackson detection lives inDoclingServeClient.builder(). -
DoclingServeClientBuilder: dropimplements DoclingApiBuilder<C, B>and the@Overrideannotations of its setters. The setters themselves stay. - Keep
DoclingServeJackson2Client.toBuilder()andDoclingServeJackson3Client.toBuilder(), which return the concrete builder and aren't deprecated, but drop their@Override. - Tests calling
DoclingServeApi.toBuilder()(DoclingServeJackson2ClientTests,DoclingServeJackson3ClientTests,AbstractDoclingServeClientAsyncExecutorTests, which show[removal]warnings today) should useconfig().toBuilder()or the concrete client type. -
AbstractDoclingServeClientConfigTests.toBuilderKeepsEverySettingandtoBuilderKeepsFollowingRedirectscalltoBuilder()on aDoclingServeClient, which resolves to the deprecatedDoclingServeApi.toBuilder()(warnings suppressed). They test the copy constructor, so they must calltoBuilder()on the concrete client type, notconfig().toBuilder().
Both modules
- Remove every
@SuppressWarnings("removal")that only existed for these types, in main and test code.
Docs
-
serve-api-provider-migration.md: remove the Compatibility section on the fallback, or retire the page if it's no longer useful. -
serve-api.md: remove the "Migrating fromDoclingServeApiBuilderFactory" subsection. -
CLAUDE.md: remove the mention of the fallback. -
whats-new.md: add a "Breaking" entry for the removal.
- 主要语言
- Java
- 星标
- 136
- 派生
- 26
- 平均合并
- 12 小时 20 分钟
- 30 天内合并 PR
- 49
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docling-project/docling-java 的其他 Issue
-
docling-project/docling-java#598 · 9 条评论 · 1 个 reaction · 已指派 2 人 ·
-
难度 4/5 3-5 天 新手友好度 55/100
docling-project/docling-java#557 · 3 条评论 ·
-
area:docling-serve documentation good first issue help wanted module:docling-core module:docling-serve-api module:docling-serve-client module:docling-testcontainers
难度 4/5 3-5 天 新手友好度 35/100
docling-project/docling-java#350 · 5 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
docling-project/docling-java#184 · 5 条评论 ·
-
automation enhancement module:version-tester
docling-project/docling-java#134 · 2 条评论 · 已指派 1 人 ·
查看 docling-project/docling-java 的全部 Issue
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·