Jamie Gaskins
268ea66dcd
Optimize Article query in EdgeCache::BustArticle ( #14916 )
2021-10-05 11:58:34 -04:00
dependabot[bot]
f24d3d157f
Bump rubocop-rails from 2.10.1 to 2.11.0 ( #14043 )
...
* Bump rubocop-rails from 2.10.1 to 2.11.0
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.10.1...v2.11.0 )
---
updated-dependencies:
- dependency-name: rubocop-rails
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Enable new cops and fix violations
* Remove expected string literal
As we're passing a block (that yields a string) there are no arguments
to the debug call.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rhymes <github@rhymes.dev>
Co-authored-by: Dan Uber <dan@forem.com>
2021-06-22 11:25:28 -05:00
dependabot[bot]
9066de9b65
Bump rubocop-rails from 2.9.1 to 2.10.0 ( #13655 )
...
* Bump rubocop-rails from 2.9.1 to 2.10.0
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.9.1...v2.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* Add new cops and fix violations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rhymes <rhymes@hey.com>
2021-05-05 14:16:44 -07:00
Michael Kohl
610f6151e6
Split Settings::Community from SiteConfig ( #13403 )
...
* Add settings_community_contents model
* Add settings_communities model
* Update usage
* Add controller and update code
* Add e2e test
* Add data update script
* Update schema.rb
* Fix specs
* PR feedback
* Remove experience_* from Settings::Community
* Update spec
* Fix spec
2021-04-26 10:46:35 +02:00
Daniel Uber
c1a93ad3c3
Cleanup articles cache busting ( #13467 )
...
* Extract repeated calls to cache_bust.call to iteration over list
This mirrors what the EdgeCache::BustUser service looks like.
It might make sense to have cached_article_paths be a method accepting
a block and yielding paths, and including the collections cache paths
as well.
* Move article path information into a separate method
BustArticle.call now only knows to bust cache for each path associated
with the article, the information about which paths to clear is moved
to a separate `paths_for` method.
I may have gone overboard on this.
* Remove extra blank line
2021-04-23 09:35:40 -05:00
Alex
d109b6824e
Refactor cache purging ( #12811 )
...
* Refactor caching
* Bring back old bust class
* Refactor with PR feedback
* Remove useless return values
2021-03-02 10:09:05 -05:00
Alex
d0eb582236
Add bust_article service ( #11788 )
...
* Add bust_article service
* Make timestamps lambdas
* Remove nil safe operators
* Updated bust_article specs
* Add spec for TIMEFRAMES and relative time
2020-12-08 11:56:43 -05:00