-
Notifications
You must be signed in to change notification settings - Fork 68
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
Market: fix rest responses #765
Conversation
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.
Look OK, but please merge the changes in ya-client
to master and update commit hash in Cargo.toml
.
@@ -153,7 +153,7 @@ async fn approve_agreement( | |||
.approve_agreement(id, &agreement_id, timeout) | |||
.await | |||
.log_err() | |||
.map(|_| HttpResponse::NoContent().finish()) | |||
.map(|status| HttpResponse::Ok().json(status.to_string())) |
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.
should be 410
Gone as suggested by @prekucki in case of Cancelled agreement
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.
Addressed here golemfactory/ya-client#70
a3e228f
to
6b18463
Compare
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.
lgtm
…et/fix-rest-responses
…ket/fix-rest-responses
…ket/fix-rest-responses
It breaks compatibility of Market API, so not to be merged before
Alpha.3
.fixes #450 resolves golemfactory/golem-internal#204
depends on: golemfactory/ya-client#59
Contains changes from #850 and #869