Commit 42b48e0f authored by Rémy Coutable's avatar Rémy Coutable

Merge remote-tracking branch 'origin/master' into ce-to-ee

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parents df9a632e 61ac2076
......@@ -445,7 +445,7 @@ ee_compat_check:
retry: 0
artifacts:
name: "${CI_JOB_NAME}_${CI_COMIT_REF_NAME}_${CI_COMMIT_SHA}"
when: on_failure
when: always
expire_in: 10d
paths:
- ee_compat_check/patches/*.patch
......
Please view this file on the master branch, on stable branches it's out of date.
## 10.2.0 (2017-11-22)
### Fixed (17 changes)
- Geo - Does not move projects backed by hashed storage when handling renamed events. !3066
- Geo: Don't sync disabled project wikis. !3109
- Reconfigure the Geo tracking database pool size when running as Sidekiq. !3181
- Geo - Ensures that leases were returned. !3241
- Fix (un)approver names not being shown in plaintext emails. !3266
- Add post-migration to drain all Geo related redis queues. !3289
- Prevent the Geo log cursor from running on primary nodes. !3411
- Reduce the number of Elasticsearch client instances that are created. !3432
- Fix generated clone URLs for wikis on Geo secondaries. !3448
- Remove duplicate delete button in epic.
- Fix: Failed to rebase MR from forked repo.
- Fix: Geo API bug. Statistic is not collected when prometheus is disabled.
- Geo - Ensure that repository deletions in a primary node are correctly deleted in a secondary node.
- Geo: Fix handling of nil values on advanced section in admin screen.
- Redirect to existing group boards using old URL if there is no subgroup called 'boards'.
- Geo - Allow Sidekiq to retry failed jobs to rename project repositories.
- Geo: Ensure database is connected before attempting to check for secondary status.
### Changed (4 changes)
- Add project actions in Audit events. !3160
- Add group actions in Audit events. !3176
- Geo: Don't retry repositories or files until everything has been backfilled. !3182
- Improve Codeclimate UI.
### Performance (1 change)
- Reduce the quiet times between scheduler runs on Geo secondaries. !3185
### Added (19 changes, 1 of them is from the community)
- Make the maximum capacity of Geo backfill operations configurable. !3107
- Mirrors can now hard fail, keeping them from being retried until a project admin takes action. !3117
- View/edit epic at group level. !3126
- Add worker to prune the Geo Event Log. !3172
- julian7 Add required_groups option to SAML config, to restrict access to GitLab to specific SAML groups. !3223 (Balazs Nagy)
- Geo: Expire and resync attachments from renamed projects in secondary nodes when using legacy storage. !3259
- On Secondary read-only Geo Nodes now a flash banner is shown on all pages. !3260
- Make GeoLogCursor Highly Available. !3305
- Allow Geo repository sync over HTTPS. !3341
- Allow persisting board configuration in order to automatically filter issues.
- Improve error handling.
- Add epics list and add epics to nav sidebar.
- Introduce EEU lincese with epics as the first feature.
- Add ability to create new epics.
- Add sidebar for epic.
- Add delete epic button.
- Allow admins to globally disable all remote mirrors from application settings page.
- Add support for logging Prometheus metrics for Geo.
- Use PostgreSQL FDW for Geo downloads.
### Other (2 changes, 1 of them is from the community)
- Suppress MergeableSelector warning candidates in EE-only files. !3225 (Takuya Noguchi)
- Enhance the documentation for gitlab-ctl replicate-geo-database. !3268
## 10.1.4 (2017-11-14)
- No changes.
......
This diff is collapsed.
......@@ -3,23 +3,9 @@
# Automatically sets the layout and ensures an administrator is logged in
class Admin::ApplicationController < ApplicationController
before_action :authenticate_admin!
before_action :display_read_only_information
layout 'admin'
def authenticate_admin!
render_404 unless current_user.admin?
end
def display_read_only_information
return unless Gitlab::Database.read_only?
flash.now[:notice] = read_only_message
end
private
# Overridden in EE
def read_only_message
_('You are on a read-only GitLab instance.')
end
end
......@@ -114,6 +114,7 @@ class Note < ActiveRecord::Base
includes(:author, :noteable, :updated_by,
project: [:project_members, { group: [:group_members] }])
end
scope :with_metadata, -> { includes(:system_note_metadata) }
after_initialize :ensure_discussion_id
before_validation :nullify_blank_type, :nullify_blank_line_code
......@@ -177,7 +178,13 @@ class Note < ActiveRecord::Base
end
def cross_reference?
system? && matches_cross_reference_regex?
return unless system?
if force_cross_reference_regex_check?
matches_cross_reference_regex?
else
SystemNoteService.cross_reference?(note)
end
end
def diff_note?
......@@ -390,4 +397,10 @@ class Note < ActiveRecord::Base
def set_discussion_id
self.discussion_id ||= discussion_class.discussion_id(self)
end
def force_cross_reference_regex_check?
return unless system?
SystemNoteMetadata::TYPES_WITH_CROSS_REFERENCES.include?(system_note_metadata&.action)
end
end
class SystemNoteMetadata < ActiveRecord::Base
# These notes's action text might contain a reference that is external.
# We should always force a deep validation upon references that are found
# in this note type.
# Other notes can always be safely shown as all its references are
# in the same project (i.e. with the same permissions)
TYPES_WITH_CROSS_REFERENCES = %w[
commit cross_reference
close duplicate
relate unrelate
].freeze
ICON_TYPES = %w[
commit description merge confidential visible label assignee cross_reference
title time_tracking branch milestone discussion task moved
......
......@@ -637,6 +637,10 @@ module SystemNoteService
create_note(NoteSummary.new(issuable, issuable.project, author, body, action: action))
end
def cross_reference?(note_text)
note_text =~ /\A#{cross_reference_note_prefix}/i
end
private
def notes_for_mentioner(mentioner, noteable, notes)
......
---
title: Allow admins to globally disable all remote mirrors from application settings
page.
merge_request:
author:
type: added
---
title: Add project actions in Audit events
merge_request: 3160
author:
type: changed
---
title: Add group actions in Audit events
merge_request: 3176
author:
type: changed
---
title: Allow persisting board configuration in order to automatically filter issues
merge_request:
author:
type: added
---
title: On Secondary read-only Geo Nodes now a flash banner is shown on all pages
merge_request: 3260
author:
type: added
---
title: Improve Codeclimate UI
merge_request:
author:
type: changed
---
title: Mirrors can now hard fail, keeping them from being retried until a project
admin takes action.
merge_request: 3117
author:
type: added
---
title: Improve error handling
merge_request:
author:
type: added
---
title: julian7 Add required_groups option to SAML config, to restrict access to GitLab
to specific SAML groups.
merge_request: 3223
author: Balazs Nagy
type: added
---
title: Allow Geo repository sync over HTTPS
merge_request: 3341
author:
type: added
---
title: Geo - Does not move projects backed by hashed storage when handling renamed events
merge_request: 3066
author:
type: fixed
---
title: Make the maximum capacity of Geo backfill operations configurable
merge_request: 3107
author:
type: added
---
title: View/edit epic at group level
merge_request: 3126
author:
type: added
---
title: Add epics list and add epics to nav sidebar
merge_request:
author:
type: added
---
title: Geo - Ensures that leases were returned.
merge_request: 3241
author:
type: fixed
---
title: 'Geo: Don''t sync disabled project wikis'
merge_request: 3109
author:
type: fixed
---
title: Reduce the number of Elasticsearch client instances that are created
merge_request: 3432
author:
type: fixed
---
title: 'Geo: Expire and resync attachments from renamed projects in secondary nodes
when using legacy storage'
merge_request: 3259
author:
type: added
---
title: Introduce EEU lincese with epics as the first feature
merge_request:
author:
type: added
---
title: Reconfigure the Geo tracking database pool size when running as Sidekiq
merge_request: 3181
author:
type: fixed
---
title: 'Geo: Don''t retry repositories or files until everything has been backfilled'
merge_request: 3182
author:
type: changed
---
title: Reduce the quiet times between scheduler runs on Geo secondaries
merge_request: 3185
author:
type: performance
---
title: Enhance the documentation for gitlab-ctl replicate-geo-database
merge_request: 3268
author:
type: other
---
title: Suppress MergeableSelector warning candidates in EE-only files
merge_request: 3225
author: Takuya Noguchi
type: other
---
title: Fix (un)approver names not being shown in plaintext emails
merge_request: 3266
author:
type: fixed
---
title: Add ability to create new epics
merge_request:
author:
type: added
---
title: Document a failure mode for large repositories in Geo
merge_request: 3500
author:
type: other
---
title: Prevent the Geo log cursor from running on primary nodes
merge_request: 3411
author:
type: fixed
---
title: Fix generated clone URLs for wikis on Geo secondaries
merge_request: 3448
author:
type: fixed
---
title: 'Fix: Geo API bug. Statistic is not collected when prometheus is disabled'
merge_request:
author:
type: fixed
---
title: Move retry button in job page to sidebar
title: Don't user issuable_sort cookie for epics collection
merge_request:
author:
type: fixed
---
title: Fix user autocomplete in subgroups
title: Enable scoped boards for Early Adopters
merge_request:
author:
type: fixed
---
title: Add sidebar for epic
merge_request:
author:
type: added
---
title: Geo - Ensure that repository deletions in a primary node are correctly deleted
in a secondary node
merge_request:
author:
type: fixed
---
title: 'Geo: Fix handling of nil values on advanced section in admin screen'
merge_request:
author:
type: fixed
---
title: Add delete epic button
merge_request:
author:
type: added
---
title: Make GeoLogCursor Highly Available
merge_request: 3305
author:
type: added
---
title: Redirect to existing group boards using old URL if there is no subgroup called
'boards'
merge_request:
author:
type: fixed
---
title: Geo - Allow Sidekiq to retry failed jobs to rename project repositories
merge_request:
author:
type: fixed
---
title: Remove duplicate delete button in epic
merge_request:
author:
type: fixed
---
title: 'Geo: Ensure database is connected before attempting to check for secondary
status'
merge_request:
author:
type: fixed
---
title: Add support for logging Prometheus metrics for Geo
merge_request: !3187
author:
type: added
---
title: Use PostgreSQL FDW for Geo downloads
merge_request:
author:
type: added
---
title: Add post-migration to drain all Geo related redis queues
merge_request: 3289
author:
type: fixed
---
title: Add worker to prune the Geo Event Log
merge_request: 3172
author:
type: added
---
title: Remove duplicate read-only flash message on admin pages
merge_request: 3495
author:
type: fixed
---
title: Remove update merge request worker tagging.
merge_request:
author:
type: removed
---
title: Added possibility to enter past date in /spend command to log time in the past
merge_request: 3044
author: g3dinua, LockiStrike
type: changed
---
title: Suggest to rename the remote for existing repository instructions
merge_request: 14970
author: helmo42
type: added
---
title: Fixes 404 error to 'Issues assigned to me' and 'Issues I've created' when issues
are disabled
merge_request: 15021
author: Jacopo Beschi @jacopo-beschi
type: fixed
---
title: Add API endpoints for Pages Domains
merge_request: 13917
author: Travis Miller
type: added
---
title: Update participants and subscriptions button in issuable sidebar to be async
merge_request: 14836
author:
type: changed
---
title: Issue JWT token with registry:catalog:* scope when requested by GitLab admin
merge_request: 14751
author: Vratislav Kalenda
type: added
---
title: Improve DashboardController#activity.json performance
merge_request: 14985
author:
type: performance
---
title: Decrease ABC threshold to 54.28
merge_request: 14920
author: Maxim Rydkin
type: other
---
title: Add readme only option as project view
merge_request: 14900
author:
type: changed
---
title: Decrease Perceived Complexity threshold to 14
merge_request: 14231
author: Maxim Rydkin
type: other
---
title: Adds project_id to pipeline hook data
merge_request: 15044
author: Jacopo Beschi @jacopo-beschi
type: added
---
title: Remove filter icon from search bar
merge_request:
author:
type: other
---
title: Tighten up whitelisting of certain Geo routes
merge_request: 15082
author:
type: fixed
---
title: Include the changes in issuable webhook payloads
merge_request: 14308
author:
type: added
---
title: Fix problem with issuable header wrapping when content is too long
merge_request:
author:
type: fixed
---
title: Fix bad type checking to prevent 0 count badge to be shown
merge_request:
author:
type: fixed
---
title: Fixed 'Removed source branch' checkbox in merge widget being ignored.
merge_request: 14832
author:
type: fixed
---
title: Case insensitive search for branches
merge_request: 14995
author: George Andrinopoulos
type: fixed
---
title: Refactor have_http_status into have_gitlab_http_status
merge_request: 14958
author: Jacopo Beschi @jacopo-beschi
type: added
---
title: Fix flash errors showing up on a non configured prometheus integration
merge_request: 35652
author:
type: fixed
---
title: Add metric tagging for sidekiq workers
merge_request: 15111
author:
type: added
---
title: Reorganize welcome page for new users
merge_request:
author:
type: other
---
title: Decreases z-index of select2 to a lower number of our navigation bar
merge_request:
author:
type: fixed
---
title: Add applications section to GKE clusters page to easily install Helm Tiller,
Ingress
merge_request:
author:
type: added
---
title: Hashed Storage support for Attachments
merge_request: 15068
author:
type: added
---
title: Get Project Branch API shows an helpful error message on invalid refname
merge_request: 14884
author: Jacopo Beschi @jacopo-beschi
type: added
---
title: Improve performance of the /projects/:id/repository/branches API endpoint
merge_request: 15215
author:
type: performance
---
title: Expose project visibility as CI variable - CI_PROJECT_VISIBILITY
merge_request: 15193
author:
type: added
---
title: Replace WikiPage::CreateService calls with wiki_page factory in specs
merge_request: 14850
author: Jacopo Beschi @jacopo-beschi
type: changed
---
title: Add a latest_merge_request_diff_id column to merge_requests
merge_request: 15035
author:
type: performance
---
title: Change background color of nav sidebar to match other gl sidebars
merge_request:
author:
type: changed
---
title: While displaying a commit, do not show list of related branches if there are
thousands of branches
merge_request: 14812
author:
type: other
---
title: Removed extra border radius from .file-editor and .file-holder when editing
a file
merge_request: 14803
author: Rachel Pipkin
type: fixed
---
title: Moves placeholders components into shared folder with documentation. Makes
them easier to reuse in MR and Snippets comments
merge_request:
author:
type: other
---
title: Don't create build failed todos when the job is automatically retried
merge_request:
author:
type: fixed
---
title: Remove create MR button from issues when MRs are disabled
merge_request: 15071
author: George Andrinopoulos
type: fixed
---
title: Update Merge Request polling so there is only one request at a time
merge_request: 15032
author:
type: fixed
---
title: Moves mini graph of pipeline to the end of sentence in MR widget. Cleans HTML
and tests
merge_request:
author:
type: fixed
---
title: Internationalized tags page
merge_request: 38589
author:
type: other
---
title: Add new diff discussions on MR diffs tab in "realtime"
merge_request: 14981
author:
type: fixed
---
title: Add sort runners on admin runners
merge_request: 14661
author: Takuya Noguchi
type: added
---
title: Cleanup data-page attribute after each Karma test
merge_request: 14742
author:
type: fixed
---
title: Fix timezone bug in Pikaday and upgrade Pikaday version
merge_request:
author:
type: fixed
---
title: Removed d3.js from the graph and users bundles and used the common_d3 bundle
instead
merge_request: 14826
author:
type: other
---
title: 14830 Move GitLab export option to top of import list when creating a new project
merge_request:
author:
type: changed
---
title: Enables scroll to bottom once user has scrolled back to bottom in job log
merge_request:
author:
type: fixed
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment