Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-05New interruptible attribute supported in YAML parsing.Cédric Tabin
Since it is not possible to dynamically detect if a job is automatically cancellable or not, a this new attribute is necessary. Moreover, it let the maintainer of the repo to adjust the behaviour of the auto cancellation feature to match exactly what he needs.
2019-09-05Adjust routable metricBen Kochie
* Define the counter once. * Make metric name follow Prometheus naming conventions. * Add label for call method.
2019-09-04Create an event on epic actionsJan Provaznik
Creates new event when an epic is created, closed, reopened or commented.
2019-09-03Preload routes informationAndreas Brandl
This fixes a high frequency N+1 issue: `RoutableActions#find_routable!` is used across many controllers to retrieve e.g. the Project or Namespace by path. The `#find_routable!` method calls `#ensure_canonical_path` which in turn retrieves `#full_path` from the given Routable. This in turn triggers a lookup on `routes`, leading to a high frequency of these queries: ```sql SELECT "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND "routes"."source_type" = $2 LIMIT $3 ``` This is unnecessary as we already join `routes` in `Routable#find_by_full_path` anyways.
2019-08-31Avoid calling freeze on already frozen strings in app/modelsdineshpanda
2019-08-31Merge branch 'remove-ignorable-column-concern' into 'master'Michael Kozono
Remove dependency on IgnorableColumn concern Closes #66746 See merge request gitlab-org/gitlab-ce!32427
2019-08-30Add another counter to calculate method call ratioAndreas Brandl
We should see the ratio drop down when enabling the Feature. Recommendation by @andrewn
2019-08-30Add method call count instrumentationAndreas Brandl
2019-08-30Perform two-step Routable lookup by pathAndreas Brandl
In order to lookup a Project or Namespace by path, we prefer an exact match (case-sensitive) but in absence of that, we'd also take a case-insensitive match. The case-insensitive matching with preference for the exact match is a bit more involved in SQL as the exact lookup. Yet, the majority of cases will be an exact match. The thinking here is that we can optimize the lookup by performing an exact match first and only if there is no result, we perform the case-insensitive lookup. Data for GitLab.com: * We have about 15M records in routes table * About 2,500 routes exist where there's more than one record with the same `lower(path)` It is possible for a user to craft requests that would always trigger the 2-step search (e.g. we have a route for `/foo/bar`, the request is always for `/FOO/bar`). In this case, the change at hand is not beneficial as it would run an additional query. However, based on the data, it is highly likely that the vast majority of requests can be satisfied with an exact match only. The context for this change is https://gitlab.com/gitlab-org/gitlab-ce/issues/64590#note_208156463.
2019-08-30Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRobert Speicher
2019-08-30Merge branch 'security-61974-limit-issue-comment-size' into 'master'GitLab Release Tools Bot
Limit the size of issuable description and comments See merge request gitlab/gitlabhq!3267
2019-08-29Remove dependency on IgnorableColumn concerndineshpanda
2019-08-28Change the way totalNotes is calculatedIgor Drozdov
totalNotes is only used to prerender a number of skeleton containers until real notes are loaded issuable.discussions makes multiple requests, so too expensive for this This commit uses mere notes for this and sends actual totalNotes number if it's less than 10; otherwise it sends 10 - it allows us to avoid bunch of skeleton prerenderings, which are not necessary since they doesn't fit into the whole screen and disappear quite fast
2019-08-23Implement validation logic to ProjectStageAdam Hegyi
- Introducting StageEvents to define the available events - Define the event pairing rules, since some events are not compatible - Express default Cycle Analytics stages with the event structure
2019-08-23Update sort options for issues listAlexandru Croitor
Increase sort options for issues list from updated_at and create_at, to include more options close to what is required in actual issue list UI. This helps us to use REST API for issues list with sorting capabilities https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
2019-08-22Limit the size of issuable description and commentsAlexandru Croitor
Limiting the size of issuable description and comments to 1_000_000, which is close to ~1MB of ASCII characters, which represents 99.9% of all descriptions and comments we have in DB at the moment. This should help prevent DoS attacks when comments contain refference strings. Also this change updates regexp matching the namespaces paths by limiting the namespaces paths to Namespace::NUMBER_OF_ANCESTORS_ALLOWED, as we allow 20 levels deep groups. see https://gitlab.com/gitlab-org/gitlab-ce/issues/61974#note_191274234
2019-08-21Add service classes for mutating AwardEmojiLuke Duncalfe
Adding, destroying and toggling emoji previously lacked services and instead were performed through methods called on Awardable models. This led to inconsistencies where relevant todos would be marked as done only when emoji were awarded through our controllers, but not through the API. Todos could also be marked as done when an emoji was being removed. Behaviour changes - Awarding emoji through the API will now mark a relevant Todo as done - Toggling an emoji off (destroying it) through our controllers will no longer mark a relevant Todo as done Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
2019-08-14Optimise DAG processingKamil Trzciński
2019-08-08Bring scoped environment variables to coreHordur Freyr Yngvason
As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
2019-08-07Save instance administration project id in DBReuben Pereira
- This will make it easy to identify the project even if admins change the name of the project or move it.
2019-08-07Merge branch 'mc/feature/add-at-colon-variable-masking' into 'master'Grzegorz Bizon
Allow masking @ and : characters Closes #63043 See merge request gitlab-org/gitlab-ce!31065
2019-08-07Convert RestClient to Gitlab::HTTP for Prometheus MonitorDavid Wilkins
- 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
2019-08-05Use SQL to find the gap instead of iteratingHeinrich Lee Yu
Also removes unnecessary methods causing extra queries
2019-08-05Optimize rebalancing of relative positioningJan Provaznik
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.
2019-08-05Merge branch 'bvl-fix-sentry-error-grouping' into 'master'Sean McGivern
Group `parent not preloaded` errors in sentry See merge request gitlab-org/gitlab-ce!31424
2019-08-02Group `parent not preloaded` errors in sentryBob Van Landuyt
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.
2019-08-02Removes update_statistics_namespace feature flagMayra Cabrera
After measuring the impact of the namespace storage on https://gitlab.com/gitlab-org/gitlab-ce/issues/64092. It was decided that it's performant enough. So we can freely remove the feature flag Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64092
2019-08-02Make diff_refs_match_commit validation reusablePatrick Bajao
Move it to DiffPositionableNote concern which will be re-used in EE in DraftNote model.
2019-08-01Add support for DAGKamil Trzciński
This implements the support for `needs:` keyword as part of GitLab CI. That makes some of the jobs to be run out of order.
2019-07-31Fix bug when moving batches of items to the endHeinrich Lee Yu
Starts from START_POSITION when there are no existing positions. Also improves the test to actually test the behavior
2019-07-31Merge branch '54853-update-gitlab-styles' into 'master'Rémy Coutable
Update gitlab-styles to close #54853 Closes #54853 See merge request gitlab-org/gitlab-ce!31155
2019-07-29Add Job specific variablesMatija Čupić
Adds Job specific variables to facilitate specifying variables when running manual jobs.
2019-07-27Update gitlab-styles to add Lint/SafeNavigationWithEmptyKyle Wiebers
2019-07-26Merge branch 'remove-nested-groups-checks' into 'master'Lin Jen-Shin
Remove code related to object hierarchy and MySQL Closes #65056 and #65055 See merge request gitlab-org/gitlab-ce!31095
2019-07-26Prefer `flat_map` over `map` + `flatten`Peter Leitzen
Convert several occurrences of `map` + `flatten` to `flat_map` where applicable.
2019-07-25Remove code related to object hierarchy in MySQLHeinrich Lee Yu
These are not required because MySQL is not supported anymore
2019-07-24Make RelativePositioning reusableAdam Hegyi
RelativePositioning module was heavily dependent on the Issue model. This changes makes it easier to reuse the functionality provided by RelativePositioning in other models. Needed by: https://gitlab.com/gitlab-org/gitlab-ee/issues/12196
2019-07-23Document new masking requirementsMatija Čupić
2019-07-23Allow masking @ and : charactersMatija Čupić
2019-07-23Remove dead MySQL codeNick Thomas
None of this code can be reached any more, so it can all be removed
2019-07-22Merge branch ↵Douwe Maan
'64697-markdown-issues-checkbox-inside-blockquote-status-won-t-be-saved' into 'master' Markdown issues: Checkbox inside blockquote status won't be saved See merge request gitlab-org/gitlab-ce!30952
2019-07-20Fix the project auto devops APINick Thomas
If `project_auto_devops.enabled` is nil for a project, when setting any auto devops values via the API, we try to create a new row in the DB, instead of re-using the existing one. This leads to the project_id being set to nil, and the database `NOT NULL` constraint leading to a 500 response. This commit resolves the issue by correctly detecting the presence of a ProjectAutoDevops row and re-using it. Persistence is also moved away from explicit `update!` calls and into relying on `autosave: true` on the model.
2019-07-19Properly identify task lists inside a blockquoteBrett Walker
Updated the task list regex to understand blockquote characters that can come before the task item marker
2019-07-18CE port for milestones should not be set on epics issue promotionEugenia Grieff
2019-07-17Removes clusters_cte feature flagThong Kuah
This has been enabled on production without issue https://gitlab.com/gitlab-org/gitlab-ce/issues/64259
2019-07-16Don't use transactions and exceptionsReuben Pereira
Instead return error objects.
2019-07-12Upgrade to Rails 5.2Heinrich Lee Yu
Updates changed method names and fixes spec failures
2019-07-11Merge branch '51575-remove-rails-4-specific-code-from-fromunion-from_union' ↵Robert Speicher
into 'master' Remove Rails 4-specific code from `FromUnion.from_union` Closes #51575 See merge request gitlab-org/gitlab-ce!30587
2019-07-11Merge branch '64161-gitlab-fqdn' into 'master'Grzegorz Bizon
Add CI variable to provide GitLab FQDN Closes #64161 See merge request gitlab-org/gitlab-ce!30417
2019-07-11Merge branch 'banzai-avoid-redis-if-db-cache' into 'master'Douwe Maan
Banzai - avoid redis if attr is in DB cache See merge request gitlab-org/gitlab-ce!30334