[feature] Implement types[] param for notifications (#3009)

Counterpart of exclude_types[].

Also updates Swagger spec for types[] to use the correct param name and enumerate possible values.

Fixes #3003
This commit is contained in:
Vyr Cossont 2024-06-17 12:50:50 -07:00 committed by GitHub
commit b08c1bd0cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 459 additions and 13 deletions

View file

@ -97,6 +97,7 @@ func (suite *NotificationTestSuite) TestGetAccountNotificationsWithSpam() {
"",
20,
nil,
nil,
)
suite.NoError(err)
timeTaken := time.Since(before)
@ -119,6 +120,7 @@ func (suite *NotificationTestSuite) TestGetAccountNotificationsWithoutSpam() {
"",
20,
nil,
nil,
)
suite.NoError(err)
timeTaken := time.Since(before)
@ -143,6 +145,7 @@ func (suite *NotificationTestSuite) TestDeleteNotificationsWithSpam() {
"",
20,
nil,
nil,
)
if err != nil {
suite.FailNow(err.Error())
@ -163,6 +166,7 @@ func (suite *NotificationTestSuite) TestDeleteNotificationsWithSpam() {
"",
20,
nil,
nil,
)
if err != nil {
suite.FailNow(err.Error())
@ -184,6 +188,7 @@ func (suite *NotificationTestSuite) TestDeleteNotificationsWithTwoAccounts() {
"",
20,
nil,
nil,
)
suite.NoError(err)
suite.Nil(notifications)