docbrown/spec/services/articles
Anna Buianova 10a02f46d4
Articles update refactoring (#12913)
* Start refactoring articles update

* Articles update refactoring

* Added a couple of tests for Articles::Updater

* Reorganized code in Articles::Updater and ::Attributes a bit

* A couple of more tests for Articles::Attributes

* Reverted changed in the articles_controller

* Edited_at in Articles::Attributes

* Use Articles::Updater in ArticlesController

* Tests for notifications when published/unpublished an article

* Removed old code

* Return result object from Articles::Updater

* Don't reset articles collection when no series was passed

* Fixed sending notifications when published an article the first time

* Fix articles collection when updating

* Fix setting attributes for articles update

* Spec for articles update via api failure

* More tests for Articles::Updater

* More specs for articles updating

* Pass article instead of article_id to articles updater to avoid loading an article twice

* Remove the redundant check in the articles_controller

* Articles::Attributes refactoring
2021-03-10 13:08:36 +03:00
..
feeds Optimize published_articles_by_tag fetch speed (#12584) 2021-02-05 09:25:04 -05:00
attributes_spec.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00
builder_spec.rb Rubocop: fix Metrics/CyclomaticComplexity and disable Metrics/AbcSize (#9221) 2020-07-10 15:26:05 +02:00
creator_spec.rb Remove active job remainders (#6603) 2020-03-12 15:31:43 +01:00
destroyer_spec.rb Change Notifications::RemoveAllJob to Notifications::RemoveAllWorker and move to sidekiq (#5451) 2020-01-15 12:34:12 -05:00
suggest_spec.rb Mark flaky specs as flaky (#12898) 2021-03-04 09:27:04 -05:00
updater_spec.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00