Skip to content

Conversation

lightalloy
Copy link
Contributor

Fix Delayed::DeserializationError: ActiveRecord::RecordNotFound related to destroyed Reactions .

* moved async methods to separate jobs

* added checks to ensure that a record still exists

* added specs for the `Reaction` model, (for the `after_save` callbacks behavior)

I kept the old methods #touch_user_without_delay, #update_reactable_without_delay, #occasionally_sync_reaction_counts, #bust_reactable_cache_without_delay which were used before, in case there will be jobs, which were created but were not executed by the deploy time.

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Feb 25, 2019
@lightalloy lightalloy force-pushed the bug/fix-delayed-job-errors-reactions branch from b73963d to 2d59a8b Compare February 25, 2019 11:52
@lightalloy lightalloy marked this pull request as ready for review February 26, 2019 10:21
@lightalloy lightalloy changed the title Fix delayed job errors related to reactions [WIP] Fix delayed job errors related to reactions Feb 26, 2019
@pr-triage pr-triage bot removed the PR: unreviewed bot applied label for PR's with no review label Feb 26, 2019
@lightalloy lightalloy changed the title [WIP] Fix delayed job errors related to reactions Fix delayed job errors related to reactions Feb 26, 2019
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Feb 26, 2019
@lightalloy lightalloy changed the title Fix delayed job errors related to reactions Fix delayed job errors related to reactions #1621 Feb 26, 2019
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 28, 2019
@benhalpern benhalpern merged commit 8751143 into forem:master Feb 28, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 28, 2019
@lightalloy lightalloy deleted the bug/fix-delayed-job-errors-reactions branch February 28, 2019 07:23
Glennmen added a commit to Glennmen/dev.to that referenced this pull request Feb 28, 2019
* master:
  Fix delayed job errors related to reactions forem#1621 (forem#1883)
  Change OP to AUTHOR (forem#1919)
  add username to author info (forem#1912)
  Add test for validation badge image (forem#1909) [ci skip]
  Adjust article ranking algorithm to use crossposted_at where available (forem#1917)
  Remove unused Follow methods (forem#1915) [ci skip]
  Fix linting issues in app/views/dashboards (forem#1854) [ci skip]
  Add OP badge on comments (forem#461)
  Fix settings/mentorship SyntaxError (forem#1913)
  Fix linting issues in app/views/users (forem#1908)
  Fix linting issues in app/views/stripe_subscriptions (forem#1905) [ci skip]
  Fix linting issues in app/views/podcast_episodes (forem#1898) [ci skip]
  Fix linting issues in app/views/moderations (forem#1900) [ci skip]
  Fix linting issues in app/views/reading_list_items (forem#1902) [ci skip]
  Fix linting issues for app/views/tags (forem#1906) [ci skip]
  Fix linting issues in app/views/pages (forem#1897)
  Fix linting issues in app/views/social_previews (forem#1903) [ci skip]
  Fix linting issues for app/views/stories (forem#1904) [ci skip]
  Fix linting issues for app/views/html_variants (forem#1872) [ci skip]
  Add missing argument for reaction notification (forem#1901)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants