-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: エクスポート完了時に通知を発行するように #14484
feat: エクスポート完了時に通知を発行するように #14484
Conversation
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -46020,6 +46020,7 @@
"followRequestAccepted",
"roleAssigned",
"achievementEarned",
+ "exportCompleted",
"app",
"test",
"pollVote",
@@ -46044,6 +46045,7 @@
"followRequestAccepted",
"roleAssigned",
"achievementEarned",
+ "exportCompleted",
"app",
"test",
"pollVote",
@@ -46259,6 +46261,7 @@
"followRequestAccepted",
"roleAssigned",
"achievementEarned",
+ "exportCompleted",
"app",
"test",
"reaction:grouped",
@@ -46285,6 +46288,7 @@
"followRequestAccepted",
"roleAssigned",
"achievementEarned",
+ "exportCompleted",
"app",
"test",
"reaction:grouped",
@@ -78999,6 +79003,50 @@
]
},
{
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "id"
+ },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "exportCompleted"
+ ]
+ },
+ "exportedEntity": {
+ "type": "string",
+ "enum": [
+ "antenna",
+ "blocking",
+ "clip",
+ "customEmoji",
+ "favorite",
+ "following",
+ "muting",
+ "note",
+ "userList"
+ ]
+ },
+ "fileId": {
+ "type": "string",
+ "format": "id"
+ }
+ },
+ "required": [
+ "id",
+ "createdAt",
+ "type",
+ "exportedEntity",
+ "fileId"
+ ]
+ },
+ {
"type": "object",
"properties": {
"id": { |
ここに追記する必要がありそうです misskey/packages/backend/src/core/entities/NotificationEntityService.ts Lines 149 to 170 in 8be624a
|
いけた🙏 |
@@ -2436,6 +2438,8 @@ _notification: | |||
followRequestAccepted: "フォローが受理された" | |||
roleAssigned: "ロールが付与された" | |||
achievementEarned: "実績の獲得" | |||
exportCompleted: "エクスポートが完了した" | |||
test: "通知のテスト" |
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.
これらどこで使われるかしら
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.
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.
あー
通知設定の方って通知の何の設定かしら
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.
コンフリクト解消 |
コンフリクト解消 |
packages/backend/src/types.ts
Outdated
export const exportableEntities = ['antenna', 'blocking', 'clip', 'customEmoji', 'favorite', 'following', 'muting', 'note', 'userList'] as const; | ||
|
||
export const importableEntities = ['antenna', 'blocking', 'customEmoji', 'following', 'muting', 'userList'] 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.
これが何の値なのかの情報量が少ないように感じる
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.
export const exportableEntities = ['antenna', 'blocking', 'clip', 'customEmoji', 'favorite', 'following', 'muting', 'note', 'userList'] as const; | |
export const importableEntities = ['antenna', 'blocking', 'customEmoji', 'following', 'muting', 'userList'] as const; | |
export const exportableEntityKinds = ['antenna', 'blocking', 'clip', 'customEmoji', 'favorite', 'following', 'muting', 'note', 'userList'] as const; | |
export const importableEntitiyKinds = ['antenna', 'blocking', 'customEmoji', 'following', 'muting', 'userList'] 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.
userExportableEntities / userImportableEntites とか?
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.
↑ + コメントとかで補足すれば良いんじゃないかしら
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.
export const exportableEntities = ['antenna', 'blocking', 'clip', 'customEmoji', 'favorite', 'following', 'muting', 'note', 'userList'] as const; | |
export const importableEntities = ['antenna', 'blocking', 'customEmoji', 'following', 'muting', 'userList'] as const; | |
// ユーザーがエクスポートできるエンティティ | |
export const userExportableEntities = ['antenna', 'blocking', 'clip', 'customEmoji', 'favorite', 'following', 'muting', 'note', 'userList'] as const; | |
// ユーザーがインポートできるエンティティ | |
export const userImportableEntities = ['antenna', 'blocking', 'customEmoji', 'following', 'muting', 'userList'] 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.
エンティティというのが何を指しているのか明確にしたいかも
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.
エンティティというのが何を指しているのか明確にしたいかも
良い感じの表現を募集中
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.
- この値は何に使われるのを想定しているのか?
- 既存のデータベースのテーブル名などと一致させる必要があるのか?それとも自由に決めていいものなのか?
ping |
マージするか |
👍🏻 |
* feat: エクスポート完了時に通知を発行するように * Update Changelog * entitity -> entity * fix: ペイロードを含むように * fix icon * exportableEntities -> userExportableEntities
What
Why
#14456 が一部修正される
Additional info (optional)
#14484 (comment) をなんとかする必要があるいけたChecklist