Add `Skip()` and `Top()` to `QuickbaseQueryBuilder`
评估
调研方向
阅读 QuickbaseNet/Helpers/QuickbaseQueryBuilder.cs、QuickbaseNet/Models/Options.cs 和 QuickbaseNet/Requests/QuickbaseQueryRequest.cs,然后检查现有的查询构建器测试。实现所请求的构建器方法和选项序列化行为;如果两个方法都未调用,则保持 Options 为 null。运行 dotnet test --filter FullyQualifiedName~QuickbaseQueryBuilderTests,并确认列出的三个完成条件。
由索引模型根据 Issue 内容生成。
描述
The query endpoint takes skip and top options for paging. QuickbaseQueryRequest already has an Options property for them, but QuickbaseQueryBuilder never sets it. This is the paging item in ROADMAP.md.
What to do
- Add
Skip(int count)andTop(int count)toQuickbaseQueryBuilder. Each returns the builder, like the other methods. - In
Build(), setOptionsonly when one of them was called. Otherwise leave it null, as it is today. - In
Options, addDefaultValueHandling = DefaultValueHandling.Ignoreto theskipandtopproperties, so calling onlySkip(100)doesn't also send"top": 0. - Add XML doc comments to both methods.
QueryAllRecords is a separate roadmap item. Leave it out.
Where to look
QuickbaseNet/Helpers/QuickbaseQueryBuilder.cs(Build()is at line 86)QuickbaseNet/Models/Options.csQuickbaseNet/Requests/QuickbaseQueryRequest.cs, line 46
Done when
-
.Skip(100).Top(50)builds a request withOptions.Skip100 andOptions.Top50 - A request built without either has
Options == null -
JsonConvert.SerializeObjectof a request built with only.Skip(100)contains"skip":100and no"top"key - Tests for all three in
QuickbaseNet.UnitTests/Tests/QuickbaseQueryBuilderTests.cs(create it if it doesn't exist)
Testing it
dotnet test --filter FullyQualifiedName~QuickbaseQueryBuilderTests
- 主要语言
- C#
- 星标
- 3
- 派生
- 2
- 平均合并
- 3 小时 14 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hazeliscoding/quickbase-net 的其他 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 84/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
Update the package metadata that still points at ducksoop可能已有人在做 @hazeliscoding 于 3 天前认领。 未关闭
hazeliscoding/quickbase-net#15 · 已指派 1 人 ·
查看 hazeliscoding/quickbase-net 的全部 Issue
相似的 Issue
-
bug mcp misleading small
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
accessibility help wanted macos
难度 2/5 1-3 小时 新手友好度 70/100
dorlugasigal/annotator#42 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
AvaloniaUI/Avalonia#22568 ·
维护者通常 2 天内回复
-
[bug] 截图失败日志冲爆硬盘未关闭
难度 2/5 1-3 小时 新手友好度 63/100
babalae/better-genshin-impact#3846 · 2 条评论 ·
维护者通常 2 天内回复
-
要トリアージ 辞書
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复