docbrown/lib/tasks
Jeremy Friesen 0484c550c5
Create/update by NavigationLink identity (#16312)
Prior to this commit, we were treating all NavigationLink attributes as
unique.  So, were we to change a position of one of the NavigationLinks
during the add_navigation_links rake task, we would have created a new
NavigationLink (and the only one would have remained).

With this commit, we're introducing the concept of the NavigationLink's
surrogate identity, that is to say if we have two NavigationLink objects
with the same `url` and `name` we should consider them the same
NavigationLink.  This allows us to update properties of those
NavigationLinks (via the rake task) without the risk of creating new
entries.

This unblocks PR #16268 which addresses #16076.
2022-01-27 13:51:41 -05:00
..
temporary Remove Hacktoberfest Badge Rake Task (#12495) 2021-02-01 09:59:29 -06:00
add_navigation_links.rake Create/update by NavigationLink identity (#16312) 2022-01-27 13:51:41 -05:00
app_initializer.rake Clear app cache during bin/setup (#16267) 2022-01-26 13:10:36 +07:00
assets.rake Clear asset and vendor caches on deploy (#13631) 2021-06-02 13:14:59 -04:00
badges.rake Split BadgeRewarder into multiple services (#11902) 2020-12-23 09:55:06 -05:00
cache.rake Clear app cache during bin/setup (#16267) 2022-01-26 13:10:36 +07:00
data_updates.rake Delay DUS scripts via WORKERS_DATA_UPDATE_DELAY_SECONDS in rake otherwise default run them immediately (#14166) 2021-07-09 13:26:58 -05:00
e2e_seed.rake Minimal Seed Data for Admin Onboarding (#14385) 2021-07-29 17:08:41 +02:00
fastly.rake [deploy] Feature:Add ENV to Skip Fastly Config Update (#10251) 2020-09-08 13:11:12 -05:00
fetch.rake Remove RssReader (#12169) 2021-01-08 11:45:15 -05:00
forem.rake Create Default Nav Links In New Forem (RFC #237) (#14345) 2021-08-02 12:52:36 -04:00
metrics.rake Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
pages.rake Rubocop: Address Metrics/BlockLength violations (#9246) 2020-07-10 13:53:32 -04:00
post_precompile_assets.rake Removed the autoprefixer-rails deprecated gem (#10017) 2020-08-26 17:38:24 -04:00