Repository navigation
feat: SDK update for version v7.9.0 - #84
Conversation
🔵 Tier A · Mergeable after minor fixes
This update exposes interval scheduling through function creation and updates, adds interval data to the Function and BillingPlan models, and advances the SDK version headers. The examples and changelog now include the new v7.9.0 options and model fields.
Fix with agent prompt### Issue 1
functions/functions.go:331-333
**Test interval serialization and model decoding**
The existing Functions tests call Create and Update, but their handlers only check the HTTP method, so they would pass if these new options stopped sending `interval`. The new Function response field is also not covered by its model round-trip test; assertions for the request payloads and decoded interval would protect this feature.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 10
Reviewed |
| if options.enabledSetters["Interval"] { | ||
| params["interval"] = options.Interval | ||
| } |
There was a problem hiding this comment.
Test interval serialization and model decoding
The existing Functions tests call Create and Update, but their handlers only check the HTTP method, so they would pass if these new options stopped sending interval. The new Function response field is also not covered by its model round-trip test; assertions for the request payloads and decoded interval would protect this feature.
Prompt To Fix With AI
This is a comment left during a code review.
Path: functions/functions.go
Line: 331-333
Comment:
**Test interval serialization and model decoding**
The existing Functions tests call Create and Update, but their handlers only check the HTTP method, so they would pass if these new options stopped sending `interval`. The new Function response field is also not covered by its model round-trip test; assertions for the request payloads and decoded interval would protect this feature.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · testing · Reply if this doesn't apply.
This PR contains updates to the SDK for version v7.9.0.
What's Changed
WithCreateIntervalandWithUpdateIntervaloptions onFunctionsto run a function every N minutesIntervalon theFunctionmodel andFunctionsIntervalMinimumon theBillingPlanmodel