DEV: Reserve assigned notification type (#16207)

* DEV: Reserve assigned notification type

* update constants
This commit is contained in:
Rafael dos Santos Silva 2022-03-16 17:08:10 -03:00 committed by GitHub
parent 69752f0100
commit 100a84d345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -35,4 +35,6 @@ export const NOTIFICATION_TYPES = {
chat_message: 30,
chat_invitation: 31,
chat_group_mention: 32,
chat_quoted: 33,
assigned: 34,
};

View File

@ -110,7 +110,8 @@ class Notification < ActiveRecord::Base
chat_message: 30,
chat_invitation: 31,
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

View File

@ -51,6 +51,7 @@ describe Notification do
expect(@types[:event_invitation]).to eq(28)
expect(@types[:chat_mention]).to eq(29)
expect(@types[:chat_message]).to eq(30)
expect(@types[:assigned]).to eq(34)
end
end
end

View File

@ -106,6 +106,9 @@
},
"chat_quoted": {
"type": "integer"
},
"assigned": {
"type": "integer"
}
},
"required": [