docbrown/lib
Jeremy Friesen 5b10addbb4
Tidying up and documenting Tag model (#15949)
* Tidying up and documenting Tag model

Prior to this commit we had a custom `where(alias_for: [nil, ""])`
call.  That call highlighted that we lacked a term for a Tag that was
not an alias.  As part of this commit, I named that a "concrete" tag.

Further, I added scopes to assist in helping "name" those concepts.

This commit also adds a data migration and utilization of
StringAttributeCleaner to hopefully get away from `alias_for == ""`
situations.

As of writing this commit <2022-01-04 Tue 17:22 UTC>, in DEV.to we had 5
tags with `alias_for == ""`:

- actionshackathon21
- regex
- atlashackathon
- hotwire
- foremfest

In https://dev.to/admin/blazer I ran the following:

```sql
SELECT name FROM tags WHERE alias_for = ''
```

* Renaming concrete to direct
2022-01-07 09:14:31 -05:00
..
cypress-rails Monkey-patch instead of forking cypress-rails gem (#15797) 2021-12-16 11:36:45 -05:00
data_update_scripts Tidying up and documenting Tag model (#15949) 2022-01-07 09:14:31 -05:00
generators Spelling (#15702) 2021-12-07 06:59:10 -07:00
liquid Remove redundant freeze calls (#14596) 2021-08-26 10:01:08 -04:00
omni_auth/strategies Forem passport (cont) (#14759) 2021-09-30 06:47:45 -06:00
sidekiq Abstract DatadogStatsClient to ForemStatsClient (#12304) 2021-01-27 11:25:44 -05:00
sitemap_generator [deploy] Bug Fix:Monkey Patch Sitemap Generator is lib not config (#10113) 2020-08-31 16:12:11 -05:00
slack/notifier/util Fix link_formatter.rb's lints (#13301) 2021-04-07 14:28:58 -04:00
tasks Modify capitalization of default navigation link (#14849) 2021-10-01 09:42:17 -04:00