Rules import fails when a field picklist has a new value
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- nodejs, typescript
調査の方向性
古いターゲットプロセス、新しく追加されたpicklist値、およびそれを使用するルールを使ってインポートを再現する。overwritePicklistを有効にした場合も含め、ログに記録されたpicklist作成とルール作成の手順を比較する。これら2つの手順のインポートエントリポイントを追跡し、値を事前に手動で追加しなくても、更新されたプロセスが正常にインポートされることを確認する。
索引モデルが issue の本文から書いたものです。
説明
I'm importing a process to a target organisation that already has an old version of my process. This normally works fine (so long as the process name is different) but, in this case, my source organisation Process has had a new value added to one of the picklist fields on the User Story work item type and rules have been defined for the User Story that apply when that new picklist value is used. When process-migrator imports the updated process it fails when importing the rule saying that the new picklist value is not one of the valid values and then lists the valid values, which do not include the new one that has been added....
[VERBOSE] [2021-01-07T16:25:17.471Z] Begin step 'Create rule '139afccb-54e6-4d27-9d07-4a5f216af1cf' in work item type 'PowerObjectsAgile0.7.UserStory''.
[VERBOSE] [2021-01-07T16:25:17.746Z] Exception message:VS403221: The value 'Fit with technical configuration' is not an allowed value for field 'HCL_FitGap'. Valid values are Fit, Gap, Partial, TBC.
Call stack:Error: VS403221: The value 'Fit with technical configuration' is not an allowed value for field 'HCL_FitGap'. Valid values are Fit, Gap, Partial, TBC.
at RestClient. (C:\Users\einar.larusson\AppData\Roaming\npm\node_modules\process-migrator\node_modules\typed-rest-client\RestClient.js:173:31)
at Generator.next ()
at fulfilled (C:\Users\einar.larusson\AppData\Roaming\npm\node_modules\process-migrator\node_modules\typed-rest-client\RestClient.js:6:58)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[ERROR] [2021-01-07T16:25:17.747Z] Import failed, see log file for details. Unable to create rule '139afccb-54e6-4d27-9d07-4a5f216af1cf' in work item type 'PowerObjectsAgile0.7.UserStory', see logs for details.
I can see that early in the process-migrator log the picklist field gets created successfully...
[VERBOSE] [2021-01-07T16:21:20.741Z] Begin step 'Create picklist for field Custom.HCL.PowerObjectsAgile.FitGap'.
[VERBOSE] [2021-01-07T16:21:21.387Z] Finished step 'Create picklist for field Custom.HCL.PowerObjectsAgile.FitGap'.
So why can't the rule be created successfully? It seems like the rule creation isn't aware that the list of values on the field has changed.
If I manually add the new picklist value to the field in the target organisation for the old version of the process and then re-run the import to bring in the new version, the updated process loads just fine.
Note that I've tried resolving the problem by setting the "overwritePicklist" option to true but that made no difference.
- 主要言語
- TypeScript
- スター
- 114
- フォーク
- 60
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/process-migrator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoft/process-migrator#116 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/process-migrator#121 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/process-migrator#113 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
microsoft/process-migrator#112 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/process-migrator#111 · コメント 4 件 · リアクション 5 件 ·
microsoft/process-migrator の issue をすべて見る
似ている issue
-
calcite-ui-icons enhancement impact - p3 - not time sensitive needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Esri/calcite-design-system#15467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
diegosouzapw/OmniRoute#18390 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
guilhermerodz/input-otp#157 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
davidjerleke/embla-carousel#1414 ·
メンテナーはふだん 4 日以内に返信