[obs-commits] [openSUSE/open-build-service] 78b715: Use back notifiable to get the corresponding object
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 78b715a048275e6b0171d67bc389969b1beb9b13 https://github.com/openSUSE/open-build-service/commit/78b715a048275e6b0171d6... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2020-04-22 (Wed, 22 Apr 2020) Changed paths: M src/api/app/presenters/notification_presenter.rb Log Message: ----------- Use back notifiable to get the corresponding object For a while, the notifiable_id values were wrong in the database, so we couldn't rely on it to get the "notifiable" object (review, comment) and its request. As a temporary solution, we took the request number from the event payload. Now that the values in the database are correct (after a data migration) the workaround is reverted. Commit: bd74c3374222d1220251b34c6601118589be9eb8 https://github.com/openSUSE/open-build-service/commit/bd74c3374222d1220251b3... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2020-04-22 (Wed, 22 Apr 2020) Changed paths: M src/api/app/presenters/notification_presenter.rb Log Message: ----------- Merge pull request #9432 from saraycp/use_back_notifiable Use back notifiable to get the corresponding object Compare: https://github.com/openSUSE/open-build-service/compare/c447e49ec898...bd74c3...
participants (1)
-
Saray Cabrera Padrón