-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor commands #167
Refactor commands #167
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #167 +/- ##
==========================================
- Coverage 67.29% 66.08% -1.22%
==========================================
Files 76 78 +2
Lines 7308 7698 +390
==========================================
+ Hits 4918 5087 +169
- Misses 2071 2275 +204
- Partials 319 336 +17 ☔ View full report in Codecov by Sentry. |
@@ -53,7 +53,7 @@ paths: | |||
content: | |||
application/json: | |||
schema: | |||
$ref: "#/components/schemas/PromiseList" | |||
$ref: "#/components/schemas/PromiseSearchResponse" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's update durable-promise repo with this new spec.
@@ -108,7 +108,7 @@ func schedulePromise(tid string, schedule *schedule.Schedule) *scheduler.Corouti | |||
Id: id, | |||
State: state, | |||
Param: schedule.PromiseParam, | |||
Timeout: schedule.PromiseTimeout, | |||
Timeout: crontime + schedule.PromiseTimeout, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch.
cmd.Println(string(promise)) | ||
} | ||
} else { | ||
prettyPrintPromises(cmd, *resp.JSON200.Promises...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: smart formatting thing. let's do if { return } prett instead of if else{} more idiomatic and nicer to read. would love this standard for this repo in general.
Refactors the serve and dst commands to conform to new style.
Additionally: