summaryrefslogtreecommitdiff
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'sh-break-out-invited-group-members' into 'master'Ash McKenzie2019-08-121-0/+4
|\ | | | | | | | | | | | | Make it easier to find invited group members Closes #61948 See merge request gitlab-org/gitlab-ce!28436
| * Merge branch 'master' into sh-break-out-invited-group-membersStan Hu2019-08-0916-152/+165
| |\
| * | Rename search_invited to search_invite_emailStan Hu2019-08-091-1/+1
| | |
| * | Merge branch 'master' into sh-break-out-invited-group-membersStan Hu2019-08-0722-163/+196
| |\ \
| * | | Make it easier to find invited group membersStan Hu2019-08-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had a number of team members struggle to find invited members of a group. Searching for the e-mail address did not work because search only works with members with user accounts. This commit changes two things: 1. Breaks out the invited members into a separate table. 2. Adds search capability for the invited members. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61948
* | | | Split MR widget into cached and non-cached serializersIgor2019-08-092-1/+17
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Splits auto-refreshing of MR widget into 2 requests: - the one which uses etag-caching and invalidates the fields on change - the one without caching The idea is to gradually move all the fields to etag-cached endpoint
* | | Revert "Merge branch ↵Winnie Hellmann2019-08-091-2/+2
| | | | | | | | | | | | | | | | | | '4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" This reverts merge request !30613
* | | Merge branch '39217-remove-kubernetes-service-integration' into 'master'James Lopez2019-08-093-135/+0
|\ \ \ | | | | | | | | | | | | | | | | Remove KubernetesService integration See merge request gitlab-org/gitlab-ce!31365
| * | | Final removal of KubernetesService39217-remove-kubernetes-service-integrationTiger2019-08-083-135/+0
| | | | | | | | | | | | | | | | | | | | | | | | Creating new records has been disabled, and all existing records been migrated to clusters as of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
* | | | Bring scoped environment variables to coreHordur Freyr Yngvason2019-08-083-4/+88
| | | | | | | | | | | | | | | | As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
* | | | CE port for bulk updating group labelsEugenia Grieff2019-08-082-0/+2
| | | | | | | | | | | | | | | | - Original EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14827
* | | | Fix public/private starrers counts in special cases20137-starrersCamil Staps2019-08-071-0/+1
| | | |
* | | | Handle reviewer comments on !24690Camil Staps2019-08-072-8/+10
| | | |
* | | | Make users.private_profile default false (previously had no default value)Camil Staps2019-08-071-2/+2
| | | |
* | | | Remove postgres-specific SQL from UsersStarProjectCamil Staps2019-08-071-2/+2
| | | |
* | | | Expose time since starring on project/:id/starrers API endpoint; exclude ↵Camil Staps2019-08-072-1/+10
| | | | | | | | | | | | | | | | private profiles here as well
* | | | Remove private profiles from starrers view of projectsCamil Staps2019-08-071-0/+1
| | | |
* | | | Change sorting options for starrers: name (asc/desc), most/least recent starCamil Staps2019-08-072-1/+25
| | | |
* | | | Add /starrers view for projectsCamil Staps2019-08-071-0/+1
|/ / /
* | | Save instance administration project id in DBReuben Pereira2019-08-072-1/+10
| | | | | | | | | | | | | | | - This will make it easy to identify the project even if admins change the name of the project or move it.
* | | Support dashboard params for metrics dashboardSarah Yasonik2019-08-072-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/62971 Adds support to EnvironmentsController#metrics_dashboard for the following params: group, title, y_label These params are used to uniquely identify a panel on the metrics dashboard. Metrics are stored in several places, so this adds utilities to find a specific panel from the database or filesystem depending on the metric specified. Also moves some shared utilities into separate classes, notably default values and errors.
* | | Merge branch 'mc/feature/add-at-colon-variable-masking' into 'master'Grzegorz Bizon2019-08-071-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow masking @ and : characters Closes #63043 See merge request gitlab-org/gitlab-ce!31065
| * | | Document new masking requirementsmc/feature/add-at-colon-variable-maskingMatija Čupić2019-07-231-1/+2
| | | |
| * | | Allow masking @ and : charactersMatija Čupić2019-07-231-1/+1
| | | |
* | | | ActiveSession.cleaned_up_lookup_entries to use Redis#pipelinedImre Farkas2019-08-071-2/+4
| |_|/ |/| |
* | | Use separate Kubernetes namespaces per environmentTiger Watson2019-08-076-86/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kubernetes deployments on new clusters will now have a separate namespace per project environment, instead of sharing a single namespace for the project. Behaviour of existing clusters is unchanged. All new functionality is controlled by the :kubernetes_namespace_per_environment feature flag, which is safe to enable/disable at any time.
* | | Convert RestClient to Gitlab::HTTP for Prometheus MonitorDavid Wilkins2019-08-073-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Closes #60024 - Change PrometheusClient.new to accept a base url instead of an already created RestClient - Use Gitlab::HTTP in PrometheusClient instead of creating RestClient in PrometheusService - Move http_options from PrometheusService to PrometheusClient (follow_redirects: false) - ensure that base urls don't have the trailing slash - Created a `PrometheusClient#url` method that might not be strictly required - Change rescued exceptions from RestClient::* to HTTParty::ResponseError where possible and StandardError for the rest
* | | Fix nil take regressionmc/bug/nil-takeMatija Čupić2019-08-071-5/+4
| | |
* | | Merge branch '43080-speed-up-deploy-keys' into 'master'Thong Kuah2019-08-064-11/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Improve the performance of viewing deploy keys Closes #43080 See merge request gitlab-org/gitlab-ce!31384
| * | | Speed up loading and filtering deploy keys and their projectsNick Thomas2019-08-053-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes how we eager-load projects, routes, and namespaces required by the deploy keys endpoint, getting a 10x improvement in my local testing. The endpoint still doesn't scale in-general, but going from ~13 seconds to dump a 63K result to generating the same thing in ~1.6 seconds seems like a good improvement to me.
| * | | Stop using pluck to get deploy keys for a userNick Thomas2019-08-052-6/+6
| | | |
| * | | Fix a bug in User#accessible_deploy_keysNick Thomas2019-08-051-1/+1
| | | |
* | | | Merge branch 'make-issue-boards-importable' into 'master'Sean McGivern2019-08-061-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Make issue boards importable See merge request gitlab-org/gitlab-ce!31434
| * | | | Make issue boards importableJason Colyer2019-08-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added Importable to models/list.rb - Did unless: :importable? on board validation - Created changelog - Modified haml to show issue boards are importable - Added needed spec tests - Modified project.json to include board information - Added relevant models to all_models - Added relevant models to import_export - Added relevant models to safe_model_attributes
* | | | | Add MergeRequestDiff#lines_count convenience methodbackport-productivty-analytics-migrationsPavel Shutsin2019-08-061-0/+6
| | | | |
* | | | | Add group level container repository endpointsSteve Abrams2019-08-051-0/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | API endpoints for requesting container repositories and container repositories with their tag information are enabled for users that want to specify the group containing the repository rather than the specific project.
* | | | Merge branch 'jprovazn-fix-positioning' into 'master'Sean McGivern2019-08-051-36/+75
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Optimize relative re-positioning See merge request gitlab-org/gitlab-ce!30938
| * | | | Use SQL to find the gap instead of iteratingHeinrich Lee Yu2019-08-051-91/+66
| | | | | | | | | | | | | | | | | | | | Also removes unnecessary methods causing extra queries
| * | | | Optimize rebalancing of relative positioningJan Provaznik2019-08-051-25/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving of neighbour items was done recursively - this was extremely expensive when multiple items had to be moved. This change optimizes the code to find nearest possible gap where items can be moved and moves all of them with single update query.
* | | | | Merge branch '60664-kubernetes-applications-uninstall-cert-manager' into ↵Thong Kuah2019-08-051-6/+30
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Kubernetes > Applications > Uninstall Cert Manager" See merge request gitlab-org/gitlab-ce!31166
| * | | | Allow Cert-Manager to be uninstalled60664-kubernetes-applications-uninstall-cert-managerTiger2019-08-051-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our current version of Cert-Manager does not uninstall cleanly, and we must manually remove custom resource definitions.
* | | | | Merge branch 'prefer-to-use-process-pipeline-worker' into 'master'Sean McGivern2019-08-052-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Extend PipelineProcessWorker to accept a list of builds See merge request gitlab-org/gitlab-ce!31425
| * | | | | Extend PipelineProcessWorker to accept a list of buildsprefer-to-use-process-pipeline-workerKamil Trzciński2019-08-022-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes used worker from `BuildProcessWorker` to `PipelineProcessWorker` to make pipeline processing much simpler. We process `pipeline_id`, based on some triggers.
* | | | | | Merge branch 'georgekoltsov/55474-outbound-setting-system-hooks' into 'master'Rémy Coutable2019-08-053-5/+8
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Add outbound setting for system hooks See merge request gitlab-org/gitlab-ce!31177
| * | | | | Refactor SystemHookUrlValidator and specsGeorge Koltsov2019-08-022-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify SystemHookUrlValidator to inherit from PublicUrlValidator Refactor specs to move out shared examples to be used in both system hooks and public url validators.
| * | | | | Add outbound requests setting for system hooksGeorge Koltsov2019-08-023-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This MR adds new application setting to network section `allow_local_requests_from_system_hooks`. Prior to this change system hooks were allowed to do local network requests by default and we are adding an ability for admins to control it.
* | | | | | Merge branch 'properly-process-all-needs' into 'master'Sean McGivern2019-08-051-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly process all needs Closes #65488 See merge request gitlab-org/gitlab-ce!31415
| * | | | | | Properly process `needs:` with `when:`properly-process-all-needsKamil Trzciński2019-08-021-0/+4
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, some of the jobs with `needs:` would be processed in stages, it means that `when:` for such jobs would not be respected. This changes the behavior to have a separate execution paths for jobs with `needs:`.
* | | | | | Merge branch 'bvl-fix-sentry-error-grouping' into 'master'Sean McGivern2019-08-051-2/+2
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | Group `parent not preloaded` errors in sentry See merge request gitlab-org/gitlab-ce!31424
| * | | | | Group `parent not preloaded` errors in sentryBob Van Landuyt2019-08-021-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I still haven't found a moment to look into the exact cases that causes this error, but we're not loosing any information this way. In fact, it will be easier to find the right information as we only need to look to one entry in Sentry.