docbrown/spec/requests/user
Julianna Tetreault 97c46cfbf8
Refactor User-Specific JSON-LD in the Stories::Controller (#7731)
* Refactor user_same_as_json_ld method to be more readable

* Refactor user JSON-LD to be less verbose in Stories::Controller
  * Removes set_user_same_as_json_ld method
  * Removes set_user_profile_json_ld method
  * Adds user_works_for and user_disambiguating_description
  * Adds inline logic to the data structure
  * Simplifies user_same_as method

* Add documentation around specific data properties

* Add .reject to user_json_ld to remove key, value if value blank
  * Checks for blank values and rejects key,value if blank
  * Accounts for JSON-LD preference for no key,value if blank

* Add reject and compact to worksFor in Stories::Controller
  * Ensures any nil/empty values for worksFor are removed
  * Cleans up existing code within Stories::Controller

* Add test for values that eval to true when .blank? is called
  * Adds test to check that empty key/values are not included
  * Adds test to check that nil key/values are not included
  * Refactors variables to be inline in user_show_spec
  * Refactors existing code in user_show_spec

* Add reject for blank values to user_same_as in Stories::Contrroller
  * Adds a check for email_public to email

* Fix typo within comment in Stories::Controller

* Add ternary operation to email in Stories::Controller
2020-05-20 14:40:34 -06:00
..
user_destroy_spec.rb Dont Allow Multiple User Destroy Requests (#7685) 2020-05-06 09:01:23 -04:00
user_organization_spec.rb [deploy] Remove logging of image data to Datadog (#7829) 2020-05-13 16:23:42 -04:00
user_profile_spec.rb Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
user_settings_spec.rb [deploy] Remove logging of image data to Datadog (#7829) 2020-05-13 16:23:42 -04:00
user_show_spec.rb Refactor User-Specific JSON-LD in the Stories::Controller (#7731) 2020-05-20 14:40:34 -06:00
user_suggestions_spec.rb Allow admins to configure default users to follow during onboarding (#7637) [deploy] 2020-05-01 14:03:48 -07:00