docbrown/app
Julianna Tetreault fd9fdebc0b
[deploy] Migrate from Schema.org to JSON-LD (#6956)
* Add JSON-LD in place of schema.org in _video_player.html.erb

* Remove unnecessary tags around JSON-LD to clean up templates

* Fix indenatation and remove extra elements from show.html.erb and _profile_header.html.erb

* Remove empty line from articles/show.html.erb

* Clean up JSON-LD commas across erb templates

* Revert articleBody changes, adjust nesting, and remove extra quote

* Add application/ld+json to allowed_types in .erb-lint.yml

This addition makes it so that the no verify flag is no longer required

* Add additional data for Articles, Users, and Orgs to better SEO

* Add additional data to JSON-LD structures
*Add sameAs data to articles/show.html.erb
*Add sameAs data to users/show.html.erb
*Make adjustments to VideoObject data in _video_player
*Make adjustments to Org in _profile_header
*Add removed erb back to all erb templates

* Refactor code to fix syntax Google syntax errors
* Add missing double quotes to values
* Remove unnecessary meta tags from _video_player.html.erb
* Add additional key-value pairs to data structures
* General code clean up

* Clean up existing data structures
  *Remove useless meta tag and replace with a tag
  *Small refactor to users/show.html.erb data

* Extract user json-ld out of users/show.html.erb
  *Move json-ld logic to stories_controller
  *Use user_json_ld variable in place of entire data structure
  *Set user_json_ld as a before_action in the controller

* Add specs around JSON-LD data in templates
  *Add request spec for users/show.html.erb
  *Add request spec for articles/show.html.erb
  *Add request spec for _video_player.html.erb
  *Add request spec for _profile_header.html.erb
  *WIP: Fix pending specs for all templates

* Remove useless meta tags from users/show and _profile_header.html.erb

* Add additional test coverage to users/show.html.erb
  *Add additional tests to user_show_spec
  *Ensure that all tests pass
  *Small refactor to users/show.html.erb JSON data structure

* Add additional test coverage around JSON-LD data
  *Add more robust tests to template specs
  *Remove unnecessary comments from specs
  *Uncomment pending specs

* Adjust modified date to be more readable in article specs

* Refactor spec to be more readable and update GitHub username test

* Remove meta erb from articles/show.html.erb

* Remove meta data from _video_player.html.erb

* Clean up useless codeand whitespace for final review

* Extract users/show data structure from template into StoriesController
  * Remove JSON-LD object from users/show.html.erb
  * Place JSON-LD for users/show.html.erb in StoriesController
  * Store user_json_ld in set_json_ld method in StoriesController
  * Call user_json_ld variable in script tag in users/show
  * Clean up trailing commas and refactor articles/show.html.erb
  * Remove redundant user/profile_header_spec.rb

* Remove unnecessary code from _profile_header and articles/show
  * Remove Organization from articles/show.html.erb
  * Remove unnecessary comments from _profile_header.html.erb

* Extract user_json_ld into separate methods to fix Code Climate failures

* Rename user_profile_details and user_same_as methods to be more explicit

* Refactored user_json_ld methods to use symbols instead of strings
  * Use symbols to fetch keys from a hash instead of strings
  * Changed user_url in data structure

* Removal of erb tags and general clean up

* Revert schema changes

* Remove unnecessary quotation marks
2020-04-15 15:03:05 -04:00
..
assets Add Snackbar component (#7302) 2020-04-15 18:24:17 +02:00
black_box [deploy] Remove Google Analytics page counts (#6969) 2020-04-14 10:44:05 -04:00
controllers [deploy] Migrate from Schema.org to JSON-LD (#6956) 2020-04-15 15:03:05 -04:00
dashboards Delete non-existing method "organization" from user_dashboard model (#6989) 2020-04-01 13:59:13 -04:00
decorators Use scopes for Follow instead of where all the time (#6149) [deploy] 2020-02-25 19:29:52 -05:00
errors [deploy] Authentication refactoring - step 1 (#7259) 2020-04-15 12:13:10 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
javascript [deploy] Add footer toggle to Onboarding's tag follow slide (#7293) 2020-04-15 18:20:37 +02:00
labor [deploy] Copy ActiveRecord methods from fastly-rails (#7145) 2020-04-13 10:46:15 -04:00
lib ensure that when Tag and ActsAsTaggableOn::Tag are updated their respective related docs are as well (#7218) 2020-04-14 08:38:09 -05:00
liquid_tags Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
mailers [deploy] Fix up connect group issues (#7051) 2020-04-02 21:58:59 -04:00
models Nullify audit logs on users delete (#7275) 2020-04-15 18:26:16 +02:00
policies [deploy] Connect: move settings to sidecar iframe, improve invitations and remove experimental features (#6903) 2020-04-01 12:13:26 -04:00
queries/internal Refactor internal mods page (#7002) 2020-04-03 10:41:09 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers [deploy] Add new user attributes to elasticsearch (#7123) 2020-04-07 13:16:15 -04:00
services [deploy] Authentication refactoring - step 1 (#7259) 2020-04-15 12:13:10 -04:00
uploaders Limit ALL Upload file sizes to 25 MB (#5356) [deploy] 2020-01-07 11:20:40 -05:00
view_objects Remove RedisRailsCache and replace with Rails.cache (#5059) [deploy] 2019-12-10 13:11:08 -06:00
views [deploy] Migrate from Schema.org to JSON-LD (#6956) 2020-04-15 15:03:05 -04:00
workers [deploy] Create a Bulk Index Elasticsearch Worker (#7265) 2020-04-15 09:08:59 -05:00