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

feat: チャンネルの作成・更新時にapiWithDialogを使うように #12142

Merged

Conversation

yupix
Copy link
Contributor

@yupix yupix commented Oct 25, 2023

What

close #11983

上記Issueを修正します。また、Issue上では保存のみについて書かれていますが、チャンネルの新規作成でも同様の問題がありそうだったので、そちらもこれで治ると思います。

以下のように apiWithDialogを使って最低限の情報を返すようにします。

image

Why

作成・保存時に失敗したのに何も表示されないと、どういう状態なのか判断しにくい為

Additional info (optional)

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 the packages/frontend Client side specific issue/PR label Oct 25, 2023
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (481db8a) 79.15% compared to head (f1cb7a0) 79.15%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #12142   +/-   ##
========================================
  Coverage    79.15%   79.15%           
========================================
  Files          940      940           
  Lines       100831   100833    +2     
  Branches      8208     8212    +4     
========================================
+ Hits         79808    79811    +3     
+ Misses       21023    21022    -1     

see 4 files with indirect coverage changes

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2023

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

差分はこちら
--- base
+++ head
@@ -1,7 +1,7 @@
 {
   "openapi": "3.0.0",
   "info": {
-    "version": "2023.11.0-beta.4",
+    "version": "2023.11.0-beta.3",
     "title": "Misskey API",
     "x-logo": {
       "url": "/static-assets/api-doc.png"

Get diff files from Workflow Page

@syuilo
Copy link
Member

syuilo commented Oct 27, 2023

この場合 os.success(); は必要ないかも

@yupix
Copy link
Contributor Author

yupix commented Oct 27, 2023

了解しました。修正しましたので確認お願いします 🙏

@syuilo syuilo merged commit 5887c5d into misskey-dev:develop Oct 29, 2023
18 checks passed
@syuilo
Copy link
Member

syuilo commented Oct 29, 2023

🙏

@yupix yupix deleted the fix/show-dialog-at-channel-update-fail branch October 29, 2023 05:06
kanarikanaru pushed a commit to kanarikanaru/misskey that referenced this pull request Nov 2, 2023
* feat: チャンネル作成、更新時にapiWithDialogを使うように

* chore: 不要なsuccessの呼び出しを削除

* chore: 誤って削除した必要なコードを元通りに
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
2 participants