luomus / laji

Frontend for Finnish Biodiversity Information Facility (FinBIF) data portal laji.fi (and other *.laji.fi frontends)
MIT License
7 stars 0 forks source link

Vihko sidebar can show an outdated local version of a document #581

Closed olzraiti closed 2 hours ago

olzraiti commented 3 hours ago

Repro:

  1. Save a new document in beta (https://beta.laji.fi/project/JX.519/form) as draft
  2. Open that document editing, make any change, but just leave the page without saving
  3. Open a new incognito window
  4. In the incognito window, Log in to the same account you made the document with
  5. Save the document you made in the other window as public

What happens?

In the first window where you made the document, it's shown as a draft still. It should show as a public document.

olzraiti commented 3 hours ago

Fix testable in https://581.dev.laji.fi/, waiting approval @mikkohei13

olzraiti commented 2 hours ago

Related tickets:

https://help.helsinki.fi/itsm/EfecteFrameset.do#/workspace/datacard/view/897448767 https://help.helsinki.fi/itsm/EfecteFrameset.do#/workspace/datacard/view/897596803

This is almost certainly the bug that the users have encountered, because