docbrown/spec
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
..
black_box Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
decorators [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
factories [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
fixtures [deploy] Decouple Twitter authentication from fetching tweets (#7920) 2020-05-19 18:05:41 -04:00
helpers Add feature flag support to Pages (#8149) 2020-06-01 09:23:19 -05:00
initializers [deploy] Add API Key to API Write Throttle (#8110) 2020-05-28 09:45:01 -05:00
labor [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
lib Routine rubocop fixes (#8137) 2020-05-29 11:56:52 +02:00
liquid_tags Also allow Asciinema URLs, not only IDs (#8288) 2020-06-05 15:37:45 +02:00
mailers Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
models [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
policies Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
queries/internal Limit the Number of API Keys a User Can Have (#7870) 2020-05-15 11:33:02 +02:00
requests [deploy] Add path_redirects table and internal view (#8161) 2020-06-05 10:28:33 -04:00
routing Remove harcoded shop strings (#7319) 2020-04-16 14:51:23 +02:00
serializers/search Clear Elasticsearch Data Instead of Resetting Entire Index for Specs (#7602) 2020-04-30 11:59:10 -04:00
services [deploy] Remove All Notification Count Helper Classes (#8221) 2020-06-02 09:48:02 -05:00
support Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
system [deploy] Streamline Tag parsing for both editors (#8175) 2020-06-05 08:46:24 -04:00
tasks [deploy] Create FastlyConfig & refactor params safe list (#7630) 2020-05-01 11:23:48 -04:00
uploaders Some RSpec fixes (#6757) 2020-03-24 13:16:19 -04:00
views [deploy] Authentication refactoring: add available and enabled providers (#7505) 2020-04-28 16:16:28 +02:00
workers [deploy] Ignore Unfound Elasticsearch Docs and Records (#8225) 2020-06-02 08:32:16 -05:00
rails_helper.rb Stub Percy.snapshot During Specs (#8286) 2020-06-05 09:25:03 +02:00
spec_helper.rb Update .simplecov (#8078) 2020-05-27 14:37:21 -04:00