gitlab-org--gitlab-foss/config
Timothy Andrew 86f4767dc1 Fix 500 error while navigating to the `pages_domains` 'show' page.
==================
= Implementation =
==================

1. The path of the page is of the form 'group/project/pages/domains/<domain_name>'
2. Rails looks at `params[:id]` (which should be the domain name), and finds the
   relevant model record.
3. Given a domain like `foo.bar`, Rails sets `params[:id]` to `foo` (should be
   `foo.bar`), and sets `params[:format]` to `bar`
4. This commit fixes the issue by adding a route constraint, so that
   `params[:id]` is set to the entire `foo.bar` domain name.

=========
= Tests =
=========

1. Add controller specs for the `PagesDomainController`. These are
   slightly orthogonal to this bug fix (they don't fail when this bug is
   present), but should be present nonetheless.
2. Add routing specs that catch this bug (by asserting that the `id`
   param is passed as expected when it contains a domain name).
3. Modify the 'RESTful project resources' routing spec shared example to
   accomodate controllers where the controller path (such as
   `pages/domains`) is different from the controller name (such as
   `pages_domains`).
2017-01-31 22:55:33 +00:00
..
environments Remove quiet_assets in favor of built-in sprockets-rails config. 2016-06-30 16:18:05 -06:00
initializers Implement extra domains and save pages configuration 2017-01-31 22:53:57 +00:00
locales Calls to the API are checked for scope. 2016-12-16 16:29:31 +05:30
routes Fix 500 error while navigating to the `pages_domains` 'show' page. 2017-01-31 22:55:33 +00:00
README.md Update wordings by feedback from: 2016-06-23 11:45:06 +08:00
application.rb Backport timetracking frontend to CE. 2017-01-15 11:10:04 -05:00
aws.yml.example
boot.rb Enable the Rubocop DeprecatedClassMethods cop 2016-05-08 15:33:34 -06:00
database.yml.env
database.yml.mysql Gitlab from sources : proper utf8mb4 support for MySQL 5.5 to 5.7 2017-01-12 22:32:55 +01:00
database.yml.postgresql
dependency_decisions.yml Blacklist the OSL 3.0 license 2016-10-28 12:05:46 +01:00
environment.rb
gitlab.yml.example Final fixes 2017-01-31 22:53:58 +00:00
license_finder.yml Resolve feedback. 2016-06-06 13:39:36 -06:00
mail_room.yml Make mail_room idle_timeout option configurable. 2016-11-16 12:46:37 +01:00
newrelic.yml
no_todos_messages.yml Improve consistency of empty todo list messages 2016-11-18 17:40:24 +02:00
resque.yml.example Added Redis Sentinel support documentation 2016-08-04 18:55:37 +02:00
routes.rb Don't require `API::API` in routes 2016-12-12 18:17:21 +01:00
secrets.yml.example
sidekiq.yml.example
sidekiq_queues.yml Fix specs 2017-01-31 22:50:40 +00:00
unicorn.rb.example Fix typos and grammar 2016-11-14 11:01:52 +00:00
unicorn.rb.example.development

README.md

Configuration files Documentation

Note that most configuration files (config/*.*) committed into gitlab-ce will not be used for omnibus-gitlab. Configuration files committed into gitlab-ce are only used for development.

gitlab.yml

You can find most of GitLab configuration settings here.

mail_room.yml

This file is actually an YML wrapped inside an ERB file to enable templated values to be specified from gitlab.yml. mail_room loads this file first as an ERB file and then loads the resulting YML as its configuration.

resque.yml

This file is called resque.yml for historical reasons. We are NOT using Resque at the moment. It is used to specify Redis configuration values instead.