- 20 6月, 2018 4 次提交
-
-
由 blackst0ne 提交于
Since Rails 5.0 `request.format` is being set depending on the route extension. In commits pages we pass a ref as a URL parameter. If the ref is an extension-like, Rails converts it and sets to `request.format`. E.g. if the ref is `some_branch.atom`, Rails starts responding with `atom` format, but it should response with `html` because `.atom` is the part of ref name, not the format. This commit explicitly sets `request.format` to `:html` when needed.
-
由 Jasper Maes 提交于
Rails5 fix expected: 0 times with any arguments received: 1 time with arguments: DashboardController
-
由 Jasper Maes 提交于
-
由 Hiroyuki Sato 提交于
-
- 19 6月, 2018 2 次提交
-
-
-
由 Jasper Maes 提交于
-
- 18 6月, 2018 1 次提交
-
-
由 Imre Farkas 提交于
With text/calendar as Content-Type, the browser always downloads the content as a file (even ignoring the Content-Disposition header). We want to display the content inline when accessed from GitLab, similarly to the RSS feed.
-
- 16 6月, 2018 2 次提交
-
-
由 blackst0ne 提交于
Since Rails 5 request.format gets set by extension if it's not explicitly set. That means artifacts_controller#file no longer works as expected. This commit explicitly sets request.format for artifacts_controller#file.
-
由 Mario de la Ossa 提交于
-
- 15 6月, 2018 7 次提交
-
-
由 Phil Hughes 提交于
-
由 Phil Hughes 提交于
Closes #46192
-
由 Douwe Maan 提交于
-
由 blackst0ne 提交于
In Rails 4.2 if params[:format] is empty, Rails set it to :html But since Rails 5.0 the framework now looks for an extension. E.g. for `blob/master/CHANGELOG.md` in Rails 4 the format would be `:html`, but in Rails 5 on it'd be `:md` This commit explicitly sets the `:html` format for all requests unless `:format` is set by a client e.g. by JS for XHR requests.
-
由 Tim Zallmann 提交于
-
由 Tim Zallmann 提交于
-
由 Jasper Maes 提交于
-
- 14 6月, 2018 1 次提交
-
-
由 James Edwards-Jones 提交于
-
- 13 6月, 2018 1 次提交
-
-
由 Bob Van Landuyt 提交于
The `errors/access_denied` page should not fail to render when no message is provided. When accessing something as a sessionless user, we should also display the terms message if possible.
-
- 09 6月, 2018 1 次提交
-
-
由 Bob Van Landuyt 提交于
When a user checks the `accept` checkbox, we will track that acceptance as usual. That way they don't need to accept again after they complete the registration. When an unauthenticated user visits the `/-/users/terms` page, there is no button to accept, decline or continue. The 'current-user menu' is also hidden from the top bar.
-
- 08 6月, 2018 1 次提交
-
-
由 Mario de la Ossa 提交于
-
- 07 6月, 2018 3 次提交
-
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Sean McGivern 提交于
When filtering issues with a search string in a group, we observed on GitLab.com that Postgres was using an inefficient query plan, preferring the (global) trigram indexes on description and title, rather than using a filter on the restricted set of issues within the group. Change the callers of the IssuableFinder to use a CTE in this case to fence the rest of the query from the LIKE filters, so that the optimiser is forced to perform the filter in the order we prefer. This will only force the use of a CTE when: 1. The use_cte_for_search params is truthy. 2. We are using Postgres. 3. We have passed the `search` param. The third item is important - searching issues using the search box does not use the finder in this way, but contructs a query and appends `full_search` to that. For some reason, this query does not suffer from the same issue. Currenly, we only pass this param when filtering issuables (issues or MRs) in a group context.
-
由 Stan Hu 提交于
We have a number of import errors occurring with 422 errors, and it's hard to determine why they are happening. This change will surface the errors in the log lines. Relates to #47365
-
- 06 6月, 2018 9 次提交
-
-
由 Sean McGivern 提交于
We had `item_project_ids` to help make slow queries on the dashboard faster, but this isn't necessary any more - the queries are plenty fast, and we forbid searching the dashboard without filters.
-
由 Mike Greiling 提交于
-
由 Stan Hu 提交于
There's no need to add a redundant message to the errors if the model is invalid. This cleans up the message as well for the importer.
-
由 Stan Hu 提交于
Importing a project from GitHub for a project namespace that already exists would show an unhelpful error, "An error occurred while importing project." We now add the base message from Projects::CreateService when this fails. Closes #47365
-
由 Ash McKenzie 提交于
-
由 Ash McKenzie 提交于
-
由 Ash McKenzie 提交于
#close_merge_request_without_source_project -> close_merge_request_if_no_source_project
-
由 Bob Van Landuyt 提交于
This allows us to report JSON parse exceptions to clients and ignore them in sentry.
-
由 Nick Thomas 提交于
-
- 05 6月, 2018 8 次提交
-
-
由 Alexis Reigel 提交于
-
由 Alexis Reigel 提交于
-
由 Alexis Reigel 提交于
-
由 Alexis Reigel 提交于
-
由 Bob Van Landuyt 提交于
When we want to show an access denied message to a user, we don't have to hide the resource's existence. So in that case we render a 403, this 403 is not handled by nginx on omnibus installs, making sure the message is visible to the user.
-
由 tauriedavis 提交于
We show a blue flash banner if the user already accepted, and show a button allowing them to continue to the application.
-
由 Mario de la Ossa 提交于
-
由 Mario de la Ossa 提交于
-