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

Support anonymous updates via API if allowAnonymousEdits is true #1665

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

glpatcern
Copy link
Contributor

Hello,

This PR introduces the ability to use the newly provided update API anonymously, when the system is configured to work in anonymous mode (i.e. allowAnonymousEdits is true).

Also logging in case of error was extended with the stack trace to match similar code in the project.

The patch was successfully tested and is currently used in a pilot deployment, where CodiMD is being integrated with an external storage and controlled via API, therefore user authentication/authorization is delegated to the external storage. I can provide further information and hopefully more PRs that have helped in our integration.

@Yukaii Yukaii self-requested a review March 9, 2021 15:37
@Yukaii Yukaii added this to the Next milestone Mar 9, 2021
@Yukaii Yukaii added the api label Mar 9, 2021
lib/note/index.js Outdated Show resolved Hide resolved
Co-authored-by: Yukai Huang <[email protected]>
Signed-off-by: Giuseppe Lo Presti <[email protected]>
@Yukaii Yukaii merged commit e00eaa8 into hackmdio:develop Mar 22, 2021
@Yukaii
Copy link
Member

Yukaii commented Mar 22, 2021

I can provide further information and hopefully more PRs that have helped in our integration.

@glpatcern Thanks for the contribution 🎉 . Could you give us more details about the integration?

@glpatcern
Copy link
Contributor Author

@glpatcern Thanks for the contribution 🎉 . Could you give us more details about the integration?

Sure! I'll tell you more over gitter, the overall approach was simple with no radical changes (e.g. no DB schema changes) but with some UI retouches, following a bit the model of etherpad. @mic4ael has been a great contributor ;-)

@Yukaii Yukaii modified the milestones: Next, 2.4.0 May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants