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

Document needs a page refresh to display the changes done by the API #6459

Open
andagent opened this issue Jan 31, 2024 · 3 comments
Open

Document needs a page refresh to display the changes done by the API #6459

andagent opened this issue Jan 31, 2024 · 3 comments
Labels
collaborative editing Issues that are stepping stone work towards collab editing

Comments

@andagent
Copy link

Hi there,

I am trying to append some new content to the document via the API. It gets successfully appended, however I am not able to see the change until I press Ctrl+R in my browser. I am not sure is it a bug or not implemented feature? As sometimes, when the new data is appended, we saw it flash on a screen and disappear immediately until the page is not refreshed.

To Reproduce
Steps to reproduce the behaviour:

  1. Created collection using API with following body:
{
      name: "Test RT",
      description: "description",
      permission: "read_write",
      color: "#123123",
      private: false
}
  1. Created the document in the collection using API with the following body:
{
        "title": "Mailing List",
        "collectionId": collectionId,
        "publish": true,
        "done": true
}
  1. The document gets created
  2. Open a document
  3. Sent an API request with the following body:
{
        "id": documentId,
        "text": JSON.stringify({
            "name": name || 'not provided',
            "email": email,
        }),
        "append": true
}
  1. If you stay in the document, it will not display anything, unless you refresh the page.

Expected behaviour
A clear and concise description of what you expected to happen.

Reproduction video
https://github.com/outline/outline/assets/78907396/ef196328-7208-4534-9b14-3ce6d4ce532e

Outline:

  • Install: getoutline.com

Desktop:

  • OS: MacOS Sonoma 14.3
  • Browser: Chrome
  • Version: 121.0.6167.85
@andagent andagent added the bug label Jan 31, 2024
Copy link

linear bot commented Jan 31, 2024

@tommoor tommoor added collaborative editing Issues that are stepping stone work towards collab editing and removed bug labels Jan 31, 2024
@tommoor
Copy link
Member

tommoor commented Jan 31, 2024

Hey, this is a known limitation of the way that collaborative editing works – it would definitely be nice to overcome it soon.

@andagent
Copy link
Author

Hey, this is a known limitation of the way that collaborative editing works – it would definitely be nice to overcome it soon.

Hey Tom, are there any estimates when it can be integrated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collaborative editing Issues that are stepping stone work towards collab editing
Projects
None yet
Development

No branches or pull requests

2 participants