flowable / flowable/flowable-engine

Warning for losing unsaved work in process modeler doesn't always show

オープン
#2,755 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
9.5k
フォーク
2.9k
平均マージ
7時間 8分
マージ済み PR(30日)
2

説明

**Describe the bug**
Due to the nature of navigation (using the "#"), the `onbeforeunload` hook to warn users about abandoning unsaved work does not work when navigating via buttons or hyperlinks inside the modeler. If you use regular, in-modeler navigation, like eg. closing the model or clicking on one of the links to other designers (like the Forms designer), you don't get a warning and lose your work. Going back to the process model just shows you the last saved version again and all work is lost. You do get the warning when you go to another site (from the address bar or a bookmark) or do a full refresh of the page but the hash-navigation ("the single page app way") doesn't trigger the hook, thus no warning, thus possibly losing unsaved work. The old flowable-explorer didn't use this manner of navigation so this problem didn't occur there.

**Expected behavior**
So whenever you edit a model and make the slightest change, the onbeforeunload hook should be added but also a hook to the hash-navigation-framework that is used to display a custom warning prompt. If not possible I guess Flowable should shelve the changes (eg. on localstorage) and gives the possibility to start working from those shelved changes instead of the ones saved in the DB.

**Additional context**
Flowable 6.5.0.6

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

プロセスモデラーの onbeforeunload 処理とハッシュナビゲーションフレームワークから始め、編集を行った後に、モデラー内のナビゲーションと他のデザイナーへのリンクを通じたナビゲーションを再現します。完了条件は、内部ナビゲーションで未保存の変更に対するカスタム警告が表示され、変更が破棄されないことです。同時に、外部ナビゲーションと更新に対する既存の警告も引き続き機能する必要があります。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。