-
Notifications
You must be signed in to change notification settings - Fork 2
fix(test): テストの修正 #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,11 +365,11 @@ export const packedMetaLiteSchema = { | |
| type: 'number', | ||
| optional: false, nullable: false, | ||
| }, | ||
| federation: { | ||
| type: 'string', | ||
| enum: ['all', 'specified', 'none'], | ||
| optional: false, nullable: false, | ||
| }, | ||
| // federation: { | ||
| // type: 'string', | ||
| // enum: ['all', 'specified', 'none'], | ||
| // optional: false, nullable: false, | ||
| // }, | ||
|
Comment on lines
+368
to
+372
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainAPI破壊的変更:連合機能フィールドの削除を確認してください。
懸念事項:
この変更の影響範囲を確認するため、以下のスクリプトを実行してください: 🏁 Script executed: #!/bin/bash
# Description: MetaLiteスキーマとfederationフィールドの使用箇所を検索
# MetaLiteスキーマの参照を検索
echo "=== MetaLite schema references ==="
rg -n "MetaLite" --type=ts -C3
# federationフィールドへのアクセスを検索
echo "=== federation field accesses ==="
rg -n "\.federation" --type=ts -C3Length of output: 15819 🏁 Script executed: #!/bin/bash
# Verify where instance variable gets populated in frontend
# Check the context around federation usage in common.ts
echo "=== common.ts federation usage context ==="
sed -n '55,75p' packages/frontend/src/ui/_common_/common.ts
# Check the context around federation usage in please-login.ts
echo -e "\n=== please-login.ts federation usage context ==="
sed -n '50,65p' packages/frontend/src/scripts/please-login.ts
# Search for instance variable definition/assignment
echo -e "\n=== Where does 'instance' come from in common.ts? ==="
rg -n "import.*instance|const.*instance.*=|let.*instance.*=" packages/frontend/src/ui/_common_/common.ts -B2 -A2
# Search for instance initialization in frontend
echo -e "\n=== Instance store/variable in frontend ==="
rg -n "misskeyInstance|instance.*=" packages/frontend/src/ --type=ts -l | head -10Length of output: 1793 🏁 Script executed: #!/bin/bash
# Verify where instance comes from and how it's populated
# Check import and initialization in common.ts
echo "=== common.ts imports and initialization ==="
head -70 packages/frontend/src/ui/_common_/common.ts | grep -A5 -B5 "instance"
# Check please-login.ts imports
echo -e "\n=== please-login.ts instance usage ==="
head -65 packages/frontend/src/scripts/please-login.ts | grep -A5 -B5 "instance\|federation"Length of output: 1565 🏁 Script executed: #!/bin/bash
# Check how instance is initialized in frontend
echo "=== packages/frontend/src/instance.ts content ==="
cat packages/frontend/src/instance.tsLength of output: 2495 連合フィールド削除により、複数のフロントエンドファイルが破損します。 検証結果:スキーマからの フロントエンドは
バックエンド側でスキーマ(meta.ts:368-372)と MetaEntityService(line:147)から 修正必須:
🤖 Prompt for AI Agents |
||
| }, | ||
| } as const; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Question型の処理統合を確認してください。
Question型の更新処理がNote更新パスに統合されました。コメントアウトされた
apQuestionService.updateQuestionの呼び出しが残っています。確認事項:
updateNoteメソッドがQuestion型を正しく処理できることを確認してくださいapQuestionService.updateQuestionに固有のロジックがあった場合、それが失われていないか検証してください以下のスクリプトでQuestionの処理を確認してください:
🏁 Script executed:
Length of output: 765
より詳細な情報が必要です。以下の検証を進めます:
🏁 Script executed:
Length of output: 1977
🏁 Script executed:
Length of output: 2666
🏁 Script executed:
Length of output: 7667
🏁 Script executed:
Length of output: 3549
Question型更新時のポーラ投票数同期が失われています。
ApQuestionService.updateQuestionはQuestion型のUpdate活動に対してポーラの投票数カウントを同期する重要な処理を行います。これをupdateNoteパスにマージすることで、この機能が失われています。問題点:
apQuestionService.updateQuestionは既存のポーラの投票数を同期(lines 114-122)updateNoteはノートコンテンツ更新のみで、ポーラ投票数の同期を行わない修正方法:
apQuestionService.updateQuestionを呼び出してくださいupdateNote内でQuestion型を検出して、apQuestionService.updateQuestionを別途呼び出すロジックを追加してください🤖 Prompt for AI Agents