core: decide the print boundary around the workspace sidecar

Open
#1,696 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
44/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
backend, databases

Research direction

Read the classes under modules/microproject_core/src/main/java/com/microproject/print/, then inspect WorkspaceSetting and CollaborationSession.saveWorkspace/loadWorkspace to trace the sidecar payload and compatibility path. Search all modules for PrintSettings and printSettings to separate core uses from UI uses. Compare options A and B in an issue comment, including the print types saved, compatibility, workspace restoration, effort, regression tests, and a sidecar round-trip check; ask the owner to decide.

Written by the indexing model from the issue text.

Description

area: architecture area: core enhancement priority: low status: ready

概要

core の com.microproject.print は debt ledger に 13 行として残る。Project.printSettings は transient でプロジェクトファイルには入らないが、Project.Workspace.printSettings が WorkspaceSetting として Java バイナリで workspace sidecar に保存される。#737 の方針決定として、print 設定を UI へ移せるか、sidecar の互換をどう守るかを調査し、結論をコメントする。

作業手順

  1. modules/microproject_core/src/main/java/com/microproject/print/ の全クラスを読み、PrintSettings から参照される型(ExtendedPageFormat、GanttSettings、ViewSettings、ScalingSettings、FitToSettings、ScaleToSettings、PageSize)を列挙する。
  2. WorkspaceSetting の javadoc と CollaborationSession.saveWorkspace / loadWorkspace を読み、sidecar のペイロードが Java バイナリであること、旧版の sidecar を読む経路があるかを確認する。
  3. Project.getPrintSettings / setPrintSettings / restoreWorkspace / createWorkspace の production 呼び出しを全モジュールで検索し、core が print 設定の値そのものを必要とする箇所と、UI が使うだけの箇所を分ける。
  4. 選択肢を (A) 現状のまま core に残し debt ledger の理由を維持、(B) print 設定全体を UI へ移し sidecar の旧ペイロードを ClassRelocations 相当で読めるようにする、の 2 つに絞り、保存互換、UI の再起動・workspace 復元、実装工数、回帰テストで比較する。
  5. 結論と根拠、採用した場合の分割手順をコメントに書く。保存形式を変える選択を含むため、結論は所有者の判断を仰ぐ。

検証

  • git grep -n "PrintSettings\|printSettings" -- modules
  • git grep -n "WorkspaceSetting" -- modules/microproject_core/src/main/java
  • git grep -n "saveWorkspace\|loadWorkspace" -- modules/microproject_core/src/main/java/com/microproject/collaboration/CollaborationSession.java
  • コードは変更しないため、ビルドコマンドは不要。

完了条件

  • workspace sidecar に保存される print 型の一覧と、その保存経路が issue コメントに書かれている
  • core が print 設定を必要とする呼び出しと UI だけの呼び出しが分けて列挙されている
  • 方針 (A) または (B) と、採用前に必要な sidecar round-trip 検証がコメントに書かれている

範囲外

  • print 設定の実移行。方針決定後に別の実装 issue で扱う。
  • undo、tree、graphic configuration の境界(別の調査 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tetsuji16/microProject

All issues in tetsuji16/microProject

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.