docbrown/app/controllers/internal
Alex f7430ccd16
[deploy] Add path_redirects table and internal view (#8161)
* Create migrations

* Create PageRedirect model

* Refactor migration and add timestamps

* Add routes for internal/page_redirects

* Add index controller action and view

* Change background color of version in /internal

* Add page_redirect factory and index specs

* Fix specs

* Use ransack for search

* Alphabetize internal sidenav

* Rename spec

* Add edit view with destroy button

* Refactor page_redirect form partial

* Update error messages and fix redirect

* Small fixes and hookup new and create

* Specs FTW

* Fix migration, overridden --> source

* Add PageRedirect model specs

- Validate presence of status

* Update routes

* Code climate fixes

* Add old_slug_url and new_slug_url helper methods

* Prevent updating old_slug, refactor _form

* Add URLs to index view for slugs

* Better spec wording

* Change version to badges and add to edit view

* Update destroy response

* slug --> path 🙈

* Add PageRedirects to seed file

* Fix seed file

* ACTUALLY fix the seed file

* slug --> path in PageRedirect factory

* Remove bug fix from seeds file

* Move menu items to controller constant

* Update source type validation in model spec

* Rename page_redirect --> path_redirect

* Add AuditLog for admin create, destroy, and update

* Remove redundant index

* Cleanup old name of page_redirect

* Remove old model

* Update AuditLog to :internal

* Titleize search placeholder task in internal

* Add comment to explain MENU_ITEMS constant

* Add warning text on edit page about many updates

* Remove default and allow null on source

* Fix comment

* Add path_redirect validations and model specs

- Validate old_path != new_path
- Validate new_path isn't an existing redirect
2020-06-05 10:28:33 -04:00
..
application_controller.rb [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
articles_controller.rb [deploy] Rename positive_reactions_count to public_reactions_count in logic (#7926) 2020-05-26 12:36:28 -04:00
badges_controller.rb Improve dropdown UX for internal/badges (#5880) [deploy] 2020-02-04 09:02:14 -08:00
broadcasts_controller.rb Allow Admins to Delete Broadcasts (#8258) [deploy] 2020-06-03 15:15:27 -06:00
buffer_updates_controller.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
chat_channels_controller.rb [deploy] Connect: move settings to sidecar iframe, improve invitations and remove experimental features (#6903) 2020-04-01 12:13:26 -04:00
comments_controller.rb [deploy] Rename positive_reactions_count to public_reactions_count in logic (#7926) 2020-05-26 12:36:28 -04:00
configs_controller.rb Display Jobs Banner if User searches jobs or job (#8259) 2020-06-04 15:17:23 +02:00
events_controller.rb Remove code related to /live_articles (#7822) 2020-05-13 09:26:13 -04:00
feedback_messages_controller.rb Optimize FeedbackMessagesController#index (#7736) 2020-05-11 12:35:08 -04:00
growth_controller.rb Remove variants from backend portion of onboarding (#7118) [deploy] 2020-04-06 16:30:11 -07:00
listings_controller.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
moderator_actions_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
mods_controller.rb Refactor internal mods page (#7002) 2020-04-03 10:41:09 -04:00
negative_reactions_controller.rb Increase the number of negative reactions per page (#6840) 2020-03-25 14:18:24 -04:00
organization_memberships_controller.rb Fix typo (#3789) 2019-08-22 12:51:05 -04:00
organizations_controller.rb [deploy] Credit refactoring (#7841) 2020-05-14 18:04:26 -04:00
pages_controller.rb Add social image to internal/pages form (#6401) [deploy] 2020-03-02 11:38:01 -05:00
path_redirects_controller.rb [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
permissions_controller.rb Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
podcasts_controller.rb Fetch podcast's episodes from /internal (#6593) [deploy] 2020-03-11 17:25:12 -04:00
reactions_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
response_templates_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
sponsorships_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
tags_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
tools_controller.rb Replace dev.to with ApplicationConfig in a few locations (#6008) [deploy] 2020-02-11 14:48:27 -05:00
users_controller.rb [deploy] Fix badge count update after merge (#8210) 2020-06-01 14:01:46 -04:00
webhook_endpoints_controller.rb Show webhooks list in internal (#3997) 2019-09-10 09:43:21 -04:00
welcome_controller.rb Replace dev.to with ApplicationConfig in a few locations (#6008) [deploy] 2020-02-11 14:48:27 -05:00