core: decide how to split persisted graphic values from UI rendering
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- java
Research direction
Start with the graphic section of the debt ledger, then use the listed git grep commands to trace references and transient fields in core. Follow POD serialization through ObjectOutputStream and SafeObjectInput, and MPO persistence through modules/microproject_exchange. Compare the two proposed approaches against POD and MPO compatibility, rendering differences, and effort; comment with the persisted types, UI move boundaries, recommendation, and required round-trip checks.
Written by the indexing model from the issue text.
Description
概要
core の com.microproject.view.configuration と java.awt の値型は debt ledger に 84 行として記録されている。これらには POD/MPO ファイルに Java バイナリ保存される Project.ganttBarFormatOverrides / Dictionary のカタログ系フィールドと、表示専用の描画処理が混在している。#737 の方針決定として、永続化が必要な値と UI 描画責務の切り分け案を調査し、結論をコメントする。
作業手順
- debt ledger の graphic セクションに載っている core クラスを一覧化し、それぞれが
Project/Dictionary/PrintSettings/GlobalPreferences/configuration.xmlのどこから参照されているかをgit grepで調べる。 - 各フィールドが
transientかどうかを確認し、POD のObjectOutputStream(SafeObjectInput)で実際に class name が保存される型を特定する。MPO 側の保存経路もmodules/microproject_exchangeで追う。 TexturedShape、Colors、PredefinedPaint/PredefinedShape/PredefinedStroke、CellFormatのjava.awt.Color/Font/Paint/Shapeの使用を読み、保存される値と実行時に描画する値を分ける。- 選択肢を (A) 永続化値は既存のままで残し、描画処理だけ UI へ移す、(B) 永続化値を core のプレーンなデータ型に置き換えて
ClassRelocationsと round-trip テストを追加する、の 2 つに絞り、POD fixture のバイト列、MPO の旧バージョン読込、UI の描画差、実装工数で比較する。 - 結論と根拠、採用した場合の分割手順をコメントに書く。ファイル形式を変える選択を含むため、結論は所有者の判断を仰ぐ。
検証
git grep -n "com.microproject.view.configuration" -- modules/microproject_core/src/main/javagit grep -n "ganttBarFormatOverrides\|SpreadSheetFieldArray\|BarStyles\|CellStyles\|ActionLists" -- modules/microproject_core/src/main/javagit grep -n "transient" -- modules/microproject_core/src/main/java/com/microproject/model/task/Project.java- コードは変更しないため、ビルドコマンドは不要。
完了条件
- 永続化が必要な型の一覧と、その型名が POD/MPO のどの経路で保存されるかが issue コメントに書かれている
- 描画専用の処理として UI へ移せる範囲と、移動時に必要な API がコメントに書かれている
- 方針 (A) または (B) と、採用前に必要な round-trip 検証がコメントに書かれている
範囲外
- graphic configuration の実移行。方針決定後に別の実装 issue で扱う。
- undo、tree、print の境界(別の調査 issue で扱う)。
- Dominant language
- Java
- Stars
- 2
- Forks
- 1
- Avg merge
- 4h 52m
- Merged PRs (30d)
- 349
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tetsuji16/microProject
-
area: ui priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
tetsuji16/microProject#1721 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
tetsuji16/microProject#1386 · 3 comments ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
tetsuji16/microProject#1384 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
tetsuji16/microProject#1385 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tetsuji16/microProject#1383 · 1 comment ·
Maintainers usually reply within 1 day
All issues in tetsuji16/microProject
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cqframework/clinical_quality_language#1980 ·
Maintainers usually reply within 3 days
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day
-
backlog kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
TencentBlueKing/bk-job#4642 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
hapifhir/hapi-fhir-jpaserver-starter#1024 ·
Maintainers usually reply within 1 day