docbrown/spec/requests
Duke Greene dd7e34ac53
define api v1 routes for organizations (#19681)
* define api routes and create controllers, sketch out index and create actions

* add api v1 organizations CRUD spec and docs spec, need to run swagger

* swagger dry run on admin organizations routes, typo fix in api.rb

* flesh out specs and sketch out admin actions

* move actions out of concerns/include pattern and into v1 inline

* remove private constant call

* add v1 accept header to doc spec, fix syntax in a before block

* update controllers to address failing specs

* simplify controller and clarify route config

* flesh out tests for errors

* fix long line

* add missing commas

* return username show route to v0 concern controller

* create separate show route and action name, remove nesting from create/update params requirement

* clean up syntax in controller params and update show path in specs; move routes

* fix up syntax in params permit

* create organization in index spec

* one more syntax tweak for org params

* refactoring to one show route that handles username or id

* tweak spec syntax to expect the right array

* tweak controller and specs, simplify routing to show

* remove create route, action, and specs from this branch

* add clarifying comment in show controller action

* add explicit not found return to show route

* fix controller formatting causing 404 errors

* remove comment, update specs

* remove commment and fix id show response and specs

* fix show route and request spec for username param

* update unauthorized user specs to use put for now instead of post, regenerate swagger docs

* adjust update 422 spec to break org validity

* fix admin update spec, rerun swagger

* reorganiza controller actions, update specs, ensure authorized update and delete

* improve spec, handle finding one org more gracefully, delete via worker

* copy routes into api namespace instead of moving them from general namespace

* update param in v0 show route to fit more general naming

* regenerate v1 swagger docs

* use profile image url getter in update controller response

* update swagger docs and remove unneeded comment from org' model

* configure organizations destroy action for super admins only (for now)
2023-07-19 09:51:05 -04:00
..
admin Admin Area: Bulk assign user roles (#19733) 2023-07-18 18:41:54 +05:30
api define api v1 routes for organizations (#19681) 2023-07-19 09:51:05 -04:00
articles Fix bugs with article moderator notifications (and make tests less flaky) (#19688) 2023-07-14 17:29:45 +02:00
incoming_webhooks/mailchimp Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
notifications Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
podcasts Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
shared_examples Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
stories Upgrade ruby 3.0.6 (#19651) 2023-07-06 16:42:20 -04:00
user Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00
api_secrets_create_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
api_secrets_destroy_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
article_approvals_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
async_info_spec.rb Async Hamburger Menu Implementation + Caching Optimizations (#18818) 2022-12-20 20:00:08 +02:00
badges_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
billboard_events_spec.rb Rename DisplayAdEventsController to BillboardEventsController (#19771) 2023-07-19 08:51:22 -04:00
billboards_spec.rb Rename DisplayAdsController to BillboardsController (#19738) 2023-07-12 09:42:46 -04:00
collections_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
comments_create_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
comments_destroy_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
comments_spec.rb Prevent comments by the staff account from being hidden (#19698) 2023-07-10 11:46:46 +01:00
comments_update_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
credits_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
dashboard_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
devices_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
discussion_locks_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
editor_spec.rb Consistent rendering on preview: comments and articles (#19361) 2023-04-27 14:08:15 +03:00
email_subscriptions_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
feedback_messages_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
followings_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
follows_bulk_show_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
follows_bulk_update_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
follows_create_spec.rb Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
follows_show_spec.rb Expands Follows request specs (#19096) 2023-02-10 09:02:38 -05:00
ga_events_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
github_repos_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
image_uploads_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
invitations_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
liquid_embeds_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
liquid_tags_request_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
listings_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
moderations_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
notification_counts_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
notification_subscriptions_spec.rb Still trying to fix notification caching when un/subscribing (#19754) 2023-07-17 11:23:55 +02:00
notifications_spec.rb Fix bugs with article moderator notifications (and make tests less flaky) (#19688) 2023-07-14 17:29:45 +02:00
onboardings_spec.rb Follow-ups for suggested organizations follows during onboarding (#19619) 2023-06-29 11:49:01 +02:00
open_search_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
organizations_update_spec.rb Remove Dark and Light Nav Logo Image from Organization (#19309) 2023-05-08 17:01:03 -04:00
page_views_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
pages_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
poll_skips_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
poll_votes_spec.rb Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
profile_field_groups_request_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
profile_pins_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
profile_preview_cards_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
profiles_request_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
rating_votes_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
reactions_spec.rb Cleanup multiple reactions feature flag (#19257) 2023-04-07 17:14:10 +02:00
reading_list_items_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
registrations_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
response_templates_spec.rb Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
search_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
sidebars_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
sitemaps_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
social_previews_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
stories_index_spec.rb Resolves false-positive UnsafeRedirectError (#19297) 2023-04-07 09:17:56 -04:00
stories_show_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
stripe_active_cards_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
tag_adjustments_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
tags_spec.rb Refactoring onboarding (#19525) 2023-05-25 10:03:12 +02:00
universal_links_spec.rb Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
user_blocks_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
user_subscriptions_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
video_states_update_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00
videos_spec.rb Rubocop fixes in spec/requests (#18946) 2023-01-12 19:10:16 +03:00