Skip to content
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

fix: 照会まわりの修正 #13342

Closed

Conversation

kakkokari-gtyih
Copy link
Contributor

@kakkokari-gtyih kakkokari-gtyih commented Feb 16, 2024

What

  • Fix: ノートの検索欄にURLを入れると勝手に照会される問題を修正
  • Fix: ローカルユーザーをローカルのMisskey WebのURL(/@user)で照会できない問題を修正

Why

Fix #12832
Fix #12996

Additional info (optional)

意図的にそのURLを含んだノートを検索したい場合に照会が回るとやっぱり困るので、確認ダイアログにした

image

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added packages/frontend Client side specific issue/PR packages/backend Server side specific issue/PR labels Feb 16, 2024
Copy link
Contributor

github-actions bot commented Feb 16, 2024

このPRによるapi.jsonの差分

差分はこちら

Get diff files from Workflow Page

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 64.94%. Comparing base (2b8056a) to head (61a00e3).

Files Patch % Lines
...ackend/src/core/activitypub/ApDbResolverService.ts 0.00% 15 Missing ⚠️
.../backend/src/core/activitypub/ApResolverService.ts 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #13342      +/-   ##
===========================================
- Coverage    64.95%   64.94%   -0.02%     
===========================================
  Files          989      989              
  Lines       112848   112868      +20     
  Branches      5770     4484    -1286     
===========================================
  Hits         73306    73306              
- Misses       38100    39531    +1431     
+ Partials      1442       31    -1411     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tamaina
Copy link
Contributor

tamaina commented Feb 16, 2024

Storybook書かない?

@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Feb 16, 2024

やりかたがわからない

@acid-chicken
Copy link
Member

やりかたがわからない

ご希望なら後日インストラクション可

@tamaina
Copy link
Contributor

tamaina commented Feb 16, 2024

(なお私もわかってない

@kakkokari-gtyih
Copy link
Contributor Author

コンフリクト解消

@kakkokari-gtyih
Copy link
Contributor Author

コンフリクト解消

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

__ui_user__というワードを見てもどういうものを指しているのかいまいちピンとこないわね

@kakkokari-gtyih
Copy link
Contributor Author

__local_user__ にしておくか

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

__付けてるのはどういう理由かしら

@kakkokari-gtyih
Copy link
Contributor Author

ほかが照会の動作なのに対してコイツだけはユーザーをそのまま取りに行ってるので

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

うーむ設計がおかしい可能性があるわね

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

Fix: ローカルユーザーをローカルのMisskey WebのURL(/@user)で照会できない問題を修正

これはフロントエンド側の修正な気がする

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

いやわからん

@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Apr 27, 2024

いやわからん

ユーザーページのURLで照会リクエストが来ても照会できるべきな気はする(他サーバーはその形式で照会できるので)のでバックエンド

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

これ逆になぜリモートユーザーの場合はエラーにならないんだろう

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

parseUri 関数がどういう役目なのかが理解できてない

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

なぜリモートとローカルの場合で返り値の型が大きく異なるのかしら

@syuilo
Copy link
Member

syuilo commented Apr 27, 2024

	/** hint of type, e.g. "notes", "users" */
	type: string;

なぜstring?
予めtypeは決まっているものではない?

@Sayamame-beans
Copy link
Member

気付かずに一部 #13858 で被せてしまっていた…
(13858ではただconfirmを置いただけなので、こちらのUIの方が分かりやすくて良さそうな感じはします)

@tai-cha
Copy link
Contributor

tai-cha commented Jul 30, 2024

意図せず #14128 でこれのレビューにも充分なstoryを書いてしまった可能性がある

@kakkokari-gtyih
Copy link
Contributor Author

PR内容が被ったのとコンフリクト解消が地獄なのでそのうち立て直します

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/backend Server side specific issue/PR packages/frontend Client side specific issue/PR
Projects
None yet
6 participants