mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 05:24:36 +08:00
DEV: Reserve assigned notification type (#16207)
* DEV: Reserve assigned notification type * update constants
This commit is contained in:
parent
69752f0100
commit
100a84d345
@ -35,4 +35,6 @@ export const NOTIFICATION_TYPES = {
|
|||||||
chat_message: 30,
|
chat_message: 30,
|
||||||
chat_invitation: 31,
|
chat_invitation: 31,
|
||||||
chat_group_mention: 32,
|
chat_group_mention: 32,
|
||||||
|
chat_quoted: 33,
|
||||||
|
assigned: 34,
|
||||||
};
|
};
|
||||||
|
@ -110,7 +110,8 @@ class Notification < ActiveRecord::Base
|
|||||||
chat_message: 30,
|
chat_message: 30,
|
||||||
chat_invitation: 31,
|
chat_invitation: 31,
|
||||||
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
|
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
|
||||||
chat_quoted: 33
|
chat_quoted: 33,
|
||||||
|
assigned: 34
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ describe Notification do
|
|||||||
expect(@types[:event_invitation]).to eq(28)
|
expect(@types[:event_invitation]).to eq(28)
|
||||||
expect(@types[:chat_mention]).to eq(29)
|
expect(@types[:chat_mention]).to eq(29)
|
||||||
expect(@types[:chat_message]).to eq(30)
|
expect(@types[:chat_message]).to eq(30)
|
||||||
|
expect(@types[:assigned]).to eq(34)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -106,6 +106,9 @@
|
|||||||
},
|
},
|
||||||
"chat_quoted": {
|
"chat_quoted": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"assigned": {
|
||||||
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user