docbrown/app/controllers
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
..
admin Ignore unused tags columns (#6947) 2020-03-30 16:57:13 +02:00
api/v0 Upgrade Rubocop to 0.81 (#7219) 2020-04-11 10:10:04 +02:00
concerns [deploy] Copy set_surrogate_key_header from fastly-rails (#7108) 2020-04-07 12:04:55 -04:00
incoming_webhooks Add health check endpoint for Mailchimp unsubscribe webhook (#6034) [deploy] 2020-02-12 15:55:21 -05:00
internal Upgrade Rubocop to 0.81 (#7219) 2020-04-11 10:10:04 +02:00
notifications
oauth Change Webhook::DestroyJob to Wehook::DestroyWorker and move to sidekiq (#5424) [deploy] 2020-01-13 12:38:10 -06:00
stories [deploy] Fix Feeds' VARIANTS issue (#7282) 2020-04-14 16:10:41 -04:00
additional_content_boxes_controller.rb Fix (some) n+1/eager loading issues (#5294) [deploy] 2020-01-08 18:48:24 -05:00
api_secrets_controller.rb Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
application_controller.rb Rescue error and add specs (#7292) 2020-04-15 10:34:00 -04:00
application_metal_controller.rb Add ApplicationMetalController to relevant controllers (#4937) 2019-11-26 16:29:07 -05:00
article_approvals_controller.rb Allow tag mods to approve posts even if they mod just one tag (#6525) [deploy] 2020-03-08 15:42:38 -04:00
articles_controller.rb [deploy] Update manual Fastly header assignments (#7119) 2020-04-07 13:22:32 -04:00
async_info_controller.rb Remove variants from backend portion of onboarding (#7118) [deploy] 2020-04-06 16:30:11 -07:00
badges_controller.rb Add badges index page. (#4236) 2019-10-06 17:34:52 -04:00
blocks_controller.rb
buffer_updates_controller.rb
buffered_articles_controller.rb Various optimizations (#6249) [deploy] 2020-02-25 13:42:24 -05:00
chat_channel_memberships_controller.rb [deploy] 🚀Feature: chat action messages if a member added, left or removed from the group (#7105) 2020-04-08 18:14:34 -04:00
chat_channels_controller.rb [deploy] Small design and functionality touches to /connect (#7234) 2020-04-11 10:56:52 -04:00
classified_listings_controller.rb handle missing displayed_classified_listing for moderate views (#6881) [deploy] 2020-03-26 12:24:26 -05:00
comments_controller.rb Create implicit experience level rating vote upon creating of readinglist reaction (#6522) [deploy] 2020-03-10 10:59:49 -04:00
credits_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
dashboards_controller.rb Use scopes for Follow instead of where all the time (#6149) [deploy] 2020-02-25 19:29:52 -05:00
display_ad_events_controller.rb Ignore unused display_ads columns (#6785) 2020-03-25 17:59:53 -04:00
email_subscriptions_controller.rb Add accept attribute to the video upload (#6296) 2020-02-26 08:37:47 -05:00
events_controller.rb Return a 404 response If @event is Not Found (#5798) [deploy] 2020-02-03 11:30:52 -05:00
feedback_messages_controller.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
followings_controller.rb Move followings to internal API (#6494) 2020-03-06 19:33:26 +01:00
follows_controller.rb Rename DataDog to Datadog (#6226) 2020-02-21 12:00:30 -05:00
ga_events_controller.rb Remove RedisRailsCache and replace with Rails.cache (#5059) [deploy] 2019-12-10 13:11:08 -06:00
github_repos_controller.rb Fix Github repo pin and and unpin (#6582) [deploy] 2020-03-11 17:50:13 +01:00
html_variant_successes_controller.rb Move HtmlVariantSuccessesCreate from job to inline (#5879) [deploy] 2020-02-04 10:24:39 -08:00
html_variant_trials_controller.rb Move HtmlVariantTrial#create inline (#5901) [deploy] 2020-02-04 17:29:46 -08:00
html_variants_controller.rb
image_uploads_controller.rb [deploy] Log image data to Datadog for file name too long error (#7200) 2020-04-09 18:25:26 -04:00
liquid_embeds_controller.rb Modify headers to allow embed (#3935) 2019-09-03 16:38:04 -04:00
live_articles_controller.rb Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
messages_controller.rb [deploy] 🚀Feature: chat action messages if a member added, left or removed from the group (#7105) 2020-04-08 18:14:34 -04:00
moderations_controller.rb Show hidden comments on article mod page (#6493) 2020-03-06 16:12:07 -05:00
notification_subscriptions_controller.rb soft save notification_subscription and then check persisted (#5962) [deploy] 2020-02-10 16:37:28 -05:00
notifications_controller.rb Fix behavior of Organization comments and posts urls (#6383) 2020-03-02 11:49:25 -05:00
omniauth_callbacks_controller.rb [deploy] Authentication refactoring - step 1 (#7259) 2020-04-15 12:13:10 -04:00
onboardings_controller.rb Cache onboarding at edge (#6966) 2020-03-31 16:12:14 +02:00
organizations_controller.rb Rescue error and add specs (#7292) 2020-04-15 10:34:00 -04:00
page_views_controller.rb Only Update page_views When They Are Valid (ie created) (#5195) [deploy] 2019-12-26 11:28:18 -06:00
pages_controller.rb Add CodeNewbie staff redirect (#7272) 2020-04-14 20:54:42 -04:00
partnerships_controller.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
podcast_episodes_controller.rb Feat: #3498 Display episode's published_at (#4272) 2019-10-08 17:06:46 -04:00
podcasts_controller.rb Rescue error and add specs (#7292) 2020-04-15 10:34:00 -04:00
poll_skips_controller.rb Use find_or_create_by to avoid duplicate records (#5092) 2019-12-12 12:01:15 -06:00
poll_votes_controller.rb
pro_accounts_controller.rb
pro_memberships_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
profile_pins_controller.rb CacheBuster refactoring (#4766) 2019-11-13 10:51:23 -05:00
pusher_controller.rb
rating_votes_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
reactions_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
reading_list_items_controller.rb Update ReadingListItemsController#update to return NotAuthorized (#5658) 2020-01-23 13:22:48 -05:00
registrations_controller.rb Don't run the service worker on /enter (#6353) 2020-02-28 12:35:15 -05:00
response_templates_controller.rb [deploy] Add response templates to user settings (#6823) 2020-03-26 14:48:00 -04:00
search_controller.rb [deploy] Refactor search_documents Method Into Search Base.rb Class (#7260) 2020-04-14 08:39:50 -05:00
service_worker_controller.rb Replace serviceworker-rails gem with custome implementation (#4987) [deploy] 2019-12-03 08:50:56 -05:00
shell_controller.rb Add edge caching to shell (#5146) [deploy] 2019-12-16 19:08:59 -05:00
sitemaps_controller.rb [deploy] Update manual Fastly header assignments (#7119) 2020-04-07 13:22:32 -04:00
social_previews_controller.rb Custom social preview template for tags (#6290) [deploy] 2020-02-27 17:56:21 -05:00
stories_controller.rb [deploy] Migrate from Schema.org to JSON-LD (#6956) 2020-04-15 15:03:05 -04:00
stripe_active_cards_controller.rb Add DataDog monitors (#6188) 2020-02-25 11:06:25 -08:00
tag_adjustments_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
tags_controller.rb Move onboarding tags from public to internal API (#6329) 2020-03-06 19:34:31 +01:00
twilio_tokens_controller.rb
twitch_live_streams_controller.rb
twitch_stream_updates_controller.rb Replace Airbrake with Honeybadger (#5007) [deploy] 2019-12-05 11:29:51 -06:00
user_blocks_controller.rb Routine rubocop lint fixes (#4638) [ci skip] 2019-10-30 10:46:57 -04:00
users_controller.rb [deploy] Log image data to Datadog for file name too long error (#7200) 2020-04-09 18:25:26 -04:00
video_chats_controller.rb [deploy] Remove old video code and clean up some functionality (#7217) 2020-04-10 12:54:49 -04:00
video_states_controller.rb Return not_found Response If Video's Related Article is Not Found (#5169) [deploy] 2019-12-19 09:41:59 -06:00
videos_controller.rb Improve video controllers caching and retrieving (#5709) [deploy] 2020-01-27 15:51:12 -05:00