docbrown/app/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.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00
builder.rb Rubocop: fix Metrics/CyclomaticComplexity and disable Metrics/AbcSize (#9221) 2020-07-10 15:26:05 +02:00
creator.rb [deploy] Limit articles created by newer users (#10686) 2020-10-06 21:02:05 -04:00
destroyer.rb [deploy] Add dependent clauses to Article and fix Comment validation (#9990) 2020-08-28 18:24:28 +02:00
get_user_stickies.rb Optimize column selection for articles belonging to "any" given tag (#12420) 2021-01-25 17:34:10 +01:00
suggest.rb Move ArticleSuggester to Articles::Suggest service (#11370) 2020-11-11 13:06:33 -05:00
suggest_stickies.rb Optimize column selection for articles belonging to "any" given tag (#12420) 2021-01-25 17:34:10 +01:00
updater.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00