Skip to content
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

Merged
merged 22 commits into from
Oct 9, 2024

Conversation

cool-ant
Copy link
Member

@cool-ant cool-ant commented Sep 19, 2024

Addresses #821 (archive; save will be a separate item)
Notes:

@cool-ant cool-ant force-pushed the mm/chainmail-implement-archive branch from 5e57a90 to 981aac6 Compare September 19, 2024 21:02
@cool-ant cool-ant marked this pull request as draft September 23, 2024 15:44
@cool-ant cool-ant force-pushed the mm/chainmail-implement-archive branch from 981aac6 to 879e362 Compare September 26, 2024 22:20
@cool-ant cool-ant marked this pull request as ready for review October 9, 2024 20:07
@cool-ant cool-ant merged commit 39115eb into main Oct 9, 2024
4 checks passed
@cool-ant cool-ant deleted the mm/chainmail-implement-archive branch October 9, 2024 21:04

return Some(HttpReply {
status: 200,
contentType: request.contentType.clone(),
Copy link
Member

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.

services/user/Chainmail/service/src/lib.rs Show resolved Hide resolved
// method: "unsave",
// params: [id],
// });
// TODO: Improve error detection. This promise resolves with success before the transaction is pushed.
Copy link
Member

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).

services/user/Sites/src/Sites.cpp Show resolved Hide resolved
sender: String,
subject: String,
body: String,
}
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants