Commit d664d83
authored
feat: [Cadence Schedules] Add schedule API request/response types (#7749)
**What changed?**
- Add request/response types for all Schedule CRUD and lifecycle APIs
(Create, Describe, Update, Delete, Pause, Unpause, List, Backfill) in
`common/types/schedule_service.go`
- Add `ScheduleListEntry` for paginated list responses
- Include nil-safe getters for every field on every type, consistent
with existing patterns in `common/types/shared.go`
- Add `schedule_service_test.go` with nil-receiver and value getter
tests
**Why?**
To support the new Cadence Schedules feature (pause/resume, catch-up,
backfill), we need internal Go types to represent schedule entities
within the server codebase. These types mirror the IDL definitions. This
serves as the foundation for the scheduler workflow and API
implementation.
Builds on [#7745](#7745)
which introduced the core schedule types and enums.
**How did you test it?**
Added unit tests and ran go test ./.. on the added files
**Potential risks**
N/A
**Release notes**
Added request/response types for cadence schedules
**Documentation Changes**
N/A
---
## Reviewer Validation
**PR Description Quality** (check these before reviewing code):
- [ ] **"What changed"** provides a clear 1-2 line summary
- [ ] Project Issue is linked
- [ ] **"Why"** explains the full motivation with sufficient context
- [ ] **Testing is documented:**
- [ ] Unit test commands are included (with exact `go test` invocation)
- [ ] Integration test setup/commands included (if integration tests
were run)
- [ ] Canary testing details included (if canary was mentioned)
- [ ] **Potential risks** section is thoughtfully filled out (or
legitimately N/A)
- [ ] **Release notes** included if this completes a user-facing feature
- [ ] **Documentation** needs are addressed (or noted if uncertain)
Signed-off-by: abhishek.jha <abhishek.jha@uber.com>1 parent d44afb8 commit d664d83
File tree
3 files changed
+638
-10
lines changed- common/types
3 files changed
+638
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
0 commit comments