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
2017-05-31Introduce source to pipeline entityKamil Trzcinski
2017-05-29Merge branch 'rework-authorizations-performance' into 'master'Douwe Maan
Rework project authorizations and nested groups for better performance See merge request !10885
2017-05-25Merge branch 'fix-kubernetes-namespace' into 'master'Grzegorz Bizon
Fix terminals support for Kubernetes service Closes #31754 See merge request !11653
2017-05-25Merge branch '17848-web-hook-logging' into 'master'Dmitriy Zaporozhets
Implement Web Hooks calls logging Closes #17848 See merge request !11027
2017-05-25Fix terminals support for Kubernetes serviceKamil Trzcinski
It was broken, because we introduced a default namespace, which was not used by terminal methods.
2017-05-25Implement web hooks loggingAlexander Randa
* implemented logging of project and system web hooks * implemented UI for user area (project hooks) * implemented UI for admin area (system hooks) * implemented retry of logged webhook * NOT imeplemented log remover
2017-05-24create User#rss_token in user factory explicitelyAlexis Reigel
otherwise we'll have to use `user.reload` in the specs to get the current rss_token value.
2017-05-23Merge branch 'issue_32225' into 'master'Robert Speicher
Add transient head_pipeline_of to pipeline factories See merge request !11566
2017-05-23Add feature test with unicode traceShinya Maeda
Squashed commit of the following: commit 43e5bba774e9e383dd55c665e82f6fcfc4ebfc4f Author: Shinya Maeda <gitlab.shinyamaeda@gmail.com> Date: Mon Apr 17 17:28:44 2017 +0900 Add fix commit 09610eebdf22ad048812bb86022504b2ad917e19 Author: Shinya Maeda <gitlab.shinyamaeda@gmail.com> Date: Mon Apr 17 17:03:49 2017 +0900 Add trace test
2017-05-22Add transient head_pipeline_of to pipeline factoriesFelipe Artur
2017-05-18Merge branch 'fix_removing_invited_member' into 'master'Rémy Coutable
Fix: Deleting an invited member causes 500 error Closes #32504 See merge request !11481
2017-05-18Fix: Deleting an invited member causes 500 errorValery Sizov
2017-05-18If TestEnv#set_repo_refs fails, clean test repos and retryRémy Coutable
Sometimes, new references are not retrieved when a `git fetch` is called in a bare repos. The easiest solution is to cleanup the test repos and retry in this case. This only happens when a new ref is added to TestEnv::BRANCH_SHA or TestEnv::FORKED_BRANCH_SHA. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-18Factorize TestEvent#copy_repoRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-17Use CTEs for nested groups and authorizationsYorick Peterse
This commit introduces the usage of Common Table Expressions (CTEs) to efficiently retrieve nested group hierarchies, without having to rely on the "routes" table (which is an _incredibly_ inefficient way of getting the data). This requires a patch to ActiveRecord (found in the added initializer) to work properly as ActiveRecord doesn't support WITH statements properly out of the box. Unfortunately MySQL provides no efficient way of getting nested groups. For example, the old routes setup could easily take 5-10 seconds depending on the amount of "routes" in a database. Providing vastly different logic for both MySQL and PostgreSQL will negatively impact the development process. Because of this the various nested groups related methods return empty relations when used in combination with MySQL. For project authorizations the logic is split up into two classes: * Gitlab::ProjectAuthorizations::WithNestedGroups * Gitlab::ProjectAuthorizations::WithoutNestedGroups Both classes get the fresh project authorizations (= as they should be in the "project_authorizations" table), including nested groups if PostgreSQL is used. The logic of these two classes is quite different apart from their public interface. This complicates development a bit, but unfortunately there is no way around this. This commit also introduces Gitlab::GroupHierarchy. This class can be used to get the ancestors and descendants of a base relation, or both by using a UNION. This in turn is used by methods such as: * Namespace#ancestors * Namespace#descendants * User#all_expanded_groups Again this class relies on CTEs and thus only works on PostgreSQL. The Namespace methods will return an empty relation when MySQL is used, while User#all_expanded_groups will return only the groups a user is a direct member of. Performance wise the impact is quite large. For example, on GitLab.com Namespace#descendants used to take around 580 ms to retrieve data for a particular user. Using CTEs we are able to reduce this down to roughly 1 millisecond, returning the exact same data. == On The Fly Refreshing Refreshing of authorizations on the fly (= when users.authorized_projects_populated was not set) is removed with this commit. This simplifies the code, and ensures any queries used for authorizations are not mutated because they are executed in a Rails scope (e.g. Project.visible_to_user). This commit includes a migration to schedule refreshing authorizations for all users, ensuring all of them have their authorizations in place. Said migration schedules users in batches of 5000, with 5 minutes between every batch to smear the load around a bit. == Spec Changes This commit also introduces some changes to various specs. For example, some specs for ProjectTeam assumed that creating a personal project would _not_ lead to the owner having access, which is incorrect. Because we also no longer refresh authorizations on the fly for new users some code had to be added to the "empty_project" factory. This chunk of code ensures that the owner's permissions are refreshed after creating the project, something that is normally done in Projects::CreateService.
2017-05-16Merge branch 'bvl-rename-build-events-to-job-events' into 'master' Douwe Maan
Rename `build_events` to `job_events` Closes #31620 See merge request !11287
2017-05-15Revert "Merge branch 'bvl-rename-build-events-to-job-events' into 'master'"Douwe Maan
This reverts merge request !11287
2017-05-15Rename `build_events` to `job_events` in codeBob Van Landuyt
2017-05-11Remove rails dependent: :destroy statementZ.J. van de Weg
Enforced by the database, and no callbacks need to be called. Combined with 7b9b2c6099 and 294a8b8a6d this resolves gitlab-org/gitlab-ce#31799
2017-05-10Enable the Style/TrailingCommaInLiteral copRémy Coutable
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-08Add Pipeline Schedules that supersedes experimental Trigger ScheduleZeger-Jan van de Weg
2017-05-06Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into ↵Kamil Trzciński
'master' Check access to a branch when user triggers manual action Closes #20261 See merge request !10494
2017-05-05Merge branch '12910-personal-snippets-notes' into 'master' Sean McGivern
Support comments for personal snippets Closes #12910 See merge request !11090
2017-05-05Support comments for personal snippetsJarka Kadlecova
2017-05-04Backport avatar-related spec changes from gitlab-org/gitlab-ee@4b464eaaeeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-03Merge branch 'master' into ↵Grzegorz Bizon
feature/gb/manual-actions-protected-branches-permissions * master: (103 commits) Include missing project attributes to Import/Export Create the rest of the wiki docs Fill in information about creating the wiki Home page Move wiki doc to its own index page Create initial file for Wiki documentation Default to null user when asignee is unselected Re-enable ref operations with gitaly after not-found fix #31560 Add repo parameter to gitaly:install and workhorse:install Remove N+1 queries when checking nodes visible to user Don't validate reserved words if the format doesn't match Revert "Shorten and improve some job names" Remove unused initializer DRY the `<<: *except-docs` a bit in `.gitlab-ci.yml` Make the static-analysis job be run for docs branches too Add download_snippet_path helper Refresh the markdown cache if it was `nil` Add some documentation for the new migration helpers Update comments Display comments for personal snippets Update docs on creating a project ...
2017-05-02Merge branch '12910-personal-snippets-notes-show' into 'master' Sean McGivern
Display comments for personal snippets See merge request !10974
2017-05-02Merge branch '19364-webhook-edit' into 'master' Dmitriy Zaporozhets
Implement ability to update hooks Closes #19364 See merge request !10816
2017-05-02Display comments for personal snippetsJarka Kadlecova
2017-05-02Merge branch 'master' into ↵Grzegorz Bizon
feature/gb/manual-actions-protected-branches-permissions * master: (314 commits) Better Explore Groups view Update Carrierwave and fog-core Add specs for Gitlab::RequestProfiler Add scripts/static-analysis to run all the static analysers in one go Shorten and improve some job names Group static-analysis jobs into a single job Don't blow up when email has no References header Update CHANGELOG.md for 9.1.2 Add changelog Add changelog Show Raw button as Download for binary files Use blob viewers for snippets Fix typo Fixed transient failure related to dropdown animations Revert "Merge branch 'tc-no-todo-service-select' into 'master'" fix link to MR 10416 Another change from .click -> .trigger('click') to make spec pass Change from .click -> .trigger('click') to make spec pass Disable AddColumnWithDefaultToLargeTable cop for pre-existing migrations Add AddColumnWithDefaultToLargeTable cop ... Conflicts: spec/requests/api/jobs_spec.rb
2017-05-01Update Carrierwave and fog-coreZeger-Jan van de Weg
2017-04-28Implement ability to update hooksAlexander Randa
2017-04-28Resolve "Add more tests for spec/controllers/projects/builds_controller_spec.rb"Dosuken shinya
2017-04-27Merge branch 'remove-invalid-services' into 'master' Douwe Maan
Remove invalid services with nil or empty type See merge request !10847
2017-04-27tadds migration to remove invalid servicesTiago Botelho
2017-04-26Merge branch '26437-closed-by' into 'master' Rémy Coutable
Add issues/:iid/closed_by api endpoint Closes #26437 See merge request !10511
2017-04-25Skip issuable without a project in IssuableExtractor#extractLin Jen-Shin
Closes #31280
2017-04-22Merge branch 'master' into ↵Grzegorz Bizon
feature/gb/manual-actions-protected-branches-permissions * master: (274 commits) Update VERSION to 9.2.0-pre Update CHANGELOG.md for 9.1.0 Update Auto Deploy documentation Disable import URL field in New project form since it's hidden by default Remove reference to burndown charts since they don't exist for ce. Use master_password for Sentinel Refactor Discussions docs Start versioning cached markdown fields Refactor add_users method for project and group Improved the spec Now correctly tests against different forms Refactor environments components into vue files - part 3 Adding animation for all dropdown fix placeholder visibility submodule_links: handle urls that don't end with .git Add help regarding vue resource and where to include it Append .json to ajax endpoint to prevent browser to display raw json Fixed the preview keyboard shortcut focusing wrong tab Fix broken link Added new discussions docs Started on resolvable discussions docs ...
2017-04-19Don't delete a branch involved in an open merge request in "Delete all ↵Stan Hu
merged branches" service Customers were surprised by the previous behavior, which destroyed branches even though an open merge request existed for it. Closes #29427
2017-04-13Merge branch 'master' into ↵Grzegorz Bizon
feature/gb/manual-actions-protected-branches-permissions * master: (641 commits) Revert "Fix registry for projects with uppercases in path" Fix registry for projects with uppercases in path Move event icons into events_helper Reset New branch button when issue state changes Add link to environments on kubernetes.md Indent system notes on desktop screens Improve webpack-dev-server compatibility with non-localhost setups. Add changelog entry Fix recent searches icon alignment in Safari Use preload to avoid Rails using JOIN Fix NUMBER_OF_TRUNCATED_DIFF_LINES re-definition error Prepare for zero downtime migrations Fix filtered search input width for IE Fix the `gitlab:gitlab_shell:check` task Fixed random failures with Poll spec Include CONTRIBUTING.md file when importing .gitlab-ci.yml templates Let uses hide verbose output by default Separate examples for each other Collapse similar sibling scenarios Use empty_project for resources that are independent of the repo ... Conflicts: app/views/projects/ci/builds/_build.html.haml
2017-04-12Add issues/:iid/closed_by api endpointmhasbini
2017-04-10Add specsDouwe Maan
2017-04-08Merge branch 'master' into new-resolvable-discussionDouwe Maan
2017-04-08Merge branch 'adam-finish-5993-closed-issuable' into 'master' Douwe Maan
Add indication for closed or merged issuables in GFM Closes #1369 See merge request !9462
2017-04-07Merge branch 'master' into new-resolvable-discussionLuke "Jared" Bennett
2017-04-07Add indication for closed or merged issuables in GFMAdam Buckland
Example: for issues that are closed, the links will now show '[closed]' following the issue number. This is done as post-process after the markdown has been loaded from the cache as the status of the issue may change between the cache being populated and the content being displayed. In order to avoid N+1 queries problem when rendering notes ObjectRenderer populates the cache of referenced issuables for all notes at once, before the post processing phase. As a part of this change, the Banzai BaseParser#grouped_objects_for_nodes method has been refactored to return a Hash utilising the node itself as the key, since this was a common pattern of usage for this method.
2017-04-07Merge branch ↵Sean McGivern
'dosuken123/gitlab-ce-2989-run-cicd-pipelines-on-a-schedule-idea1-basic-backend-implementation-with-quick-ui' into 'master' Add "engineering" UI for Pipeline Schedule See merge request !10533
2017-04-07Merge branch '18471-restrict-tag-pushes-protected-tags' into 'master' Douwe Maan
Protected Tags Closes #18471 See merge request !10356
2017-04-07Update tests to cover trigger scheduleKamil Trzcinski
2017-04-07Fix ref referenceKamil Trzcinski