Skip to content

docs: specify version for attachment functionality#72

Merged
mantariksh merged 5 commits intodevelopfrom
docs/attachment-version-readme
Jun 17, 2021
Merged

docs: specify version for attachment functionality#72
mantariksh merged 5 commits intodevelopfrom
docs/attachment-version-readme

Conversation

@mantariksh
Copy link
Contributor

Adds notes to the README to clarify that decryptWithAttachments is only available from v0.9.0 onwards, and also adds a missing await to the example code.

@mantariksh mantariksh requested a review from liangyuanruo June 16, 2021 09:24
README.md Outdated
// Decrypt the submission and attachments
async function (req, res, next) {
const submission = formsg.crypto.decryptWithAttachments(
// Note that this function is only available from version 0.9.0 onwards
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line is not necessary, as it's already documented below. I'd also like this section to be a "quick start" that is as short, friendly and un-intimidating as possible. Do you think we can simplify further, say by combining /submissions with /submissions-attachment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in 3c49a9c, could you help take a look to see if it makes sense please?

Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-approving documentation changes

@mantariksh
Copy link
Contributor Author

got some final feedback from @karrui and @LoneRifle, thank you for the inputs!

@mantariksh mantariksh merged commit ff7b3d6 into develop Jun 17, 2021
@mantariksh mantariksh deleted the docs/attachment-version-readme branch June 17, 2021 04:46
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.

2 participants