Confluence page is not being updated immediately after macro updates, causing data loss when page is published early

XMLWordPrintable

    • Severity 2 - Major
    • Load testing
    • M

      Issue Summary:

      Using view.submit() on a custom macro config

      import { view } from '@forge/bridge';
      
      const updatedConfig = {
        config: {
          exportedPng,
          exportedSize,
          diagramContent: JSON.stringify({ elements }),
        },
        keepEditing: true,
      };
      await view.submit(updatedConfig); 

      confluence page fails to save updated macro data when publishing too fast

      Steps to Reproduce

      1. Start creating new Confluence page
      2. Type /excalidraw to start adding content from the app https://marketplace.atlassian.com/apps/1237732/just-add-excalidraw-create-embed-diagrams-in-confluence?hosting=cloud&tab=overview
      3. Add some shape
      4. Hit Save -> Close -> Publish
      5. Hit Edit to Edit page
      6. Make any change
      7. Hit Save -> Close -> Update

      Expected Results

      Page should properly save updated macro

      Actual Results

      Page does not save updated macro

      Workaround

      Wait for macro preview to finish loading, and then save (used to previously work without this wait).

              Assignee:
              Unassigned
              Reporter:
              Emily Chiew
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: