Commit Graph

12 Commits (c3ef5d5414ac1fee5471d7063616a4b72a408e11)

Author SHA1 Message Date
alpaca-tc 05b72368ed Fixes slow query in notifications api ()
* Add inclusion validation for activity_type

* When excluding all types with `WHERE NOT IN`, the query search all rows.
yhirano 298796cc7b annotate models ()
* add annotate to Gemfile

* rails g annotate:install

* configure annotate_models

* add schema info to models

* fix rubocop to add frozen_string_literal
Eugen 2810013b93 API param to exclude notification types from response ()
* Add exclude_types param to /api/v1/notifications

* Exclude notification types in web UI through exclude_types in the API
Eugen Rochko cc5c1e5feb Removed accidental n+1 query from notifications, updated some deps,
improved how "show more" link looks
Eugen cea9fb31fe Mitigate inconsistent notifications
Eugen Rochko 2146ac91a0 Follow requests send e-mail notifications, but are excluded from notifications API
Better initial state for unlisted/nsfw toggles
Eugen Rochko b14b5e3b44 Improve notification model
Eugen Rochko 816284d739 Fix - Reload all accounts when fetching from cache
Eugen Rochko a21bcac9e1 Further abstract caching for includes
Eugen Rochko 45c7ee39b3 Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously
Eugen Rochko 52119104b9 Remove some n+1 queries from notifications API
Eugen Rochko da2ef4d676 Adding unified streamable notifications