feat: [Cadence Schedules] Add schedule API request/response types#7748
feat: [Cadence Schedules] Add schedule API request/response types#7748abhishekj720 wants to merge 5 commits intomasterfrom
Conversation
Signed-off-by: abhishek.jha <abhishek.jha@uber.com>
Co-authored-by: abhishekj720 <abhishekj720@users.noreply.github.com>
Co-authored-by: abhishekj720 <abhishekj720@users.noreply.github.com>
🔍 CI failure analysis for f53578a: Fixed compilation error causing all 44 CI jobs to fail. Type mismatch in GetSchedules() return type.All CI Failures Fixed - Single Compilation ErrorIssueAll 44 CI job failures were caused by a compilation error at Root CauseType mismatch in the
This prevented the entire codebase from compiling, causing all CI jobs to fail:
Fix AppliedCorrected the return type at line 364: // Before (WRONG):
func (v *ListSchedulesResponse) GetSchedules() (o []ScheduleListEntry) {
// After (CORRECT):
func (v *ListSchedulesResponse) GetSchedules() (o []*ScheduleListEntry) {Verification✅ Syntax validation passed All CI jobs should pass once this fix is pushed. Code Review ✅ Approved 2 resolved / 2 findingsClean, well-structured type definitions following established codebase patterns. The previous finding about value vs pointer slice has been resolved — ✅ 2 resolved✅ Quality: Missing PII-filtering comments on
|
| ✅ Auto-apply | Verbose |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
What changed?
common/types/schedule_service.goScheduleListEntryfor paginated list responseswith existing patterns in
common/types/shared.goschedule_service_test.gowith nil-receiver and value getter testsWhy?
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 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):
go testinvocation)