docbrown/spec
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
..
controllers/concerns Fix connect account bug from settings (#18824) 2022-12-09 09:58:04 -06:00
decorators Subscribe to Comment Functionality (#19555) 2023-07-10 17:11:46 +02:00
factories Fix bugs with article moderator notifications (and make tests less flaky) (#19688) 2023-07-14 17:29:45 +02:00
fixtures Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
generator Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
helpers Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00
initializers Add forgot_password_throttle (#19175) 2023-02-27 09:25:29 -05:00
lib Subscribe to Comment Functionality (#19555) 2023-07-10 17:11:46 +02:00
liquid_tags Change feed billboard font size to fs-base and link embed adjustments (#19697) 2023-07-07 09:13:11 -04:00
mailers Add missing notify_mailer_preview (#19714) 2023-07-10 16:35:57 -04:00
models Language detection with CLD3 (#19756) 2023-07-17 08:57:20 -04:00
policies Subscribe to Comment Functionality (#19555) 2023-07-10 17:11:46 +02:00
queries Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests define api v1 routes for organizations (#19681) 2023-07-19 09:51:05 -04:00
routing Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove deprecated Organization's columns (#19396) 2023-06-26 10:36:33 -04:00
services Language detection with CLD3 (#19756) 2023-07-17 08:57:20 -04:00
support Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00
system Fixe deprecation message in specs (#19694) 2023-07-07 15:39:09 -04:00
tasks Change rake spec setup (#19012) 2023-01-30 10:51:38 -05:00
uploaders Remove Remaining logo_svg Code (#16291) 2022-02-22 12:05:16 -07:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
view_objects Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
views Rename Admin::DisplayAds controller to Billboards (#19687) 2023-07-07 08:11:35 -04:00
workers Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00
i18n_spec.rb Show missing translation keys when test fails (#16637) 2022-02-17 16:21:29 -06:00
rails_helper.rb Upgrade ruby 3.0.6 (#19651) 2023-07-06 16:42:20 -04:00
spec_helper.rb Add Codecov (#18580) 2022-10-18 10:08:23 -04:00
swagger_helper.rb Add ability to assign arbitrary segment ID to /display_ads API (#19529) 2023-05-31 18:11:35 +02:00