-
Notifications
You must be signed in to change notification settings - Fork 7
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
Chainmail: implement archive functionality in service #854
Conversation
5e57a90
to
981aac6
Compare
981aac6
to
879e362
Compare
… loading issue; then test Archive and archived message retrieval
…ofractally/psibase into mm/chainmail-implement-archive
|
||
return Some(HttpReply { | ||
status: 200, | ||
contentType: request.contentType.clone(), |
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.
No contentType
header is set on the HTTP request that originates from the getJson
plugin request. You should probably just use "application/json" explicitly.
// method: "unsave", | ||
// params: [id], | ||
// }); | ||
// TODO: Improve error detection. This promise resolves with success before the transaction is pushed. |
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.
Is it? The tx is not applied before promise resolution, but the tx is supposed to be pushed as part of the resolution of the plugin call (before resolving this promise).
sender: String, | ||
subject: String, | ||
body: 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.
You can add
[package.metadata.component.bindings]
derives = ["serde::Deserialize"]
To the plugin's Cargo.toml
in order for the Message
struct generated bindings to derive from Deserialize
.
Addresses #821 (archive; save will be a separate item)
Notes: