-
Notifications
You must be signed in to change notification settings - Fork 1
TCP-100c Authority #110
base: master
Are you sure you want to change the base?
TCP-100c Authority #110
Conversation
Something to keep in mind @mbartenev-atypon is that since requests will now be sent directly to the Manuscripts API, all parameters with an 'id' postfix will be in capital letters. For example, 'documentID', 'clientID' and 'clientIDs' will all be in capital letters. |
Here is the PR for FE Implementation: To test we need to edit content and see that the quarterback works correctly - changes are applied correctly. Also a page should be reloaded and the changes from quarterback should be preserved. Applying and rejecting changes should also work fine. |
I'm trying to run the PR locally, I also added this PR for the body-editor dependency, but I'm getting lots of errors when building the article-editor. Is it working for you? |
Yes, that should work without any errors. |
This PR has the following changes:Changing Quarterback-API Build/Dev process:
New API based on Mikhail's demo and Prosemirror's collaborative processing:
Some notes:
Testing the API:
|
@mbartenev-atypon, @mnatsheh, and @hhusban, can you please review this? Also since we're moving the routes to manuscripts-api, I reconfigured the routes here. We have 3 routes:
The open connection will now be between manuscript-api and the front-end. I'm keeping the client's data (ID and response) in manuscripts-api instead of quarterback. Whenever a change happens, and we want to notify listeners, we get the data from QB and notify the clients registered in manuscripts-api. Instead of saving a memory version for each document, there's a request queue now. Throttling the requests might also solve the memory issue, if it did we can remove the queue. I'm also deleting the document history, and version becomes 0. I'll also push my manuscripts-api PR once this PR is merged. |
@mbartenev-atypon, I think this is ready for testing. If you can provide me with example requests or if there's a version of the editor that should be using the new API, that would be great.