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-10-06Merge branch ↵Kamil Trzciński
'feature/sm/35954-create-kubernetes-cluster-on-gke-from-k8s-service' into 'master' Create Kubernetes cluster on GKE from k8s service Closes #35954 See merge request gitlab-org/gitlab-ce!14470
2017-10-05authorizations_controller_spec. cluster_policy_spec.Shinya Maeda
2017-10-03Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Jarka Kadlecova
18608-lock-issues-v2 # Conflicts: # db/schema.rb
2017-09-29moved fork checks into policiesPhil Hughes
2017-09-28Support custom attributes on usersMarkus Koller
2017-09-25Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 18608-lock-issuesJarka Kadlecova
# Conflicts: # app/assets/javascripts/notes/components/issue_comment_form.vue
2017-09-22Refactor spec/policies/project_policy_spec.rb to minimize the diff with EERémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-20Merge remote-tracking branch 'origin/master' into 18608-lock-issuesLuke "Jared" Bennett
2017-09-18Allow DEVELOPER role to admin milestonesFelipe Artur
2017-09-14Create system notes for MR too, improve doc + clean up codeJarka Kadlecova
2017-09-14Support discussion locking in the backendJarka Kadlecova
2017-09-07Make Members with Owner and Master roles always able to create subgroupsRuben Davila
2017-09-06Fix ability when Share lock is offMichael Kozono
2017-09-06Fix “Share lock” policy for deeply nested groupsMichael Kozono
2017-09-06Specify nested_groups specsMichael Kozono
2017-09-06Enforce share_with_group_lock rulesMichael Kozono
…in Groups::UpdateService instead of only in the browser.
2017-08-22Fixes group policy specs on MySQL.Tiago Botelho
2017-08-21Improves subgroup creation permissionsTiago Botelho
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-08-01Ensure all project factories use `:repository` trait or `:empty_project`Robert Speicher
2017-07-27Use described_class when possibleRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27Remove superfluous type defs in specsKeifer Furzland
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-25Merge branch '30634-protected-pipeline' into 'master'Kamil Trzciński
Implement "Block pipelines on protected branches" Closes #30634, #34616, and #33130 See merge request !11910
2017-07-25Allow admin to read_users_list even if it's restrictedLin Jen-Shin
2017-07-24Don't treat anonymous users as owners when group has pending invitesSean McGivern
The `members` table can have entries where `user_id: nil`, because people can invite group members by email. We never want to include those as members, because it might cause confusion with the anonymous (logged out) user.
2017-07-24Associate Issues tab only with internal issues trackerJarka Kadlecova
2017-07-18Unify build policy tests and pipeline policy testsLin Jen-Shin
2017-07-18Restore some tests from masterLin Jen-Shin
2017-07-18Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin
* upstream/master: (25 commits) Remove unneeded asserts and add tests for inactive RequestStore Rename the methods to make it fit with current name Follow feedback on the merge request Make sure it checks against the tag only when it's a tag Renamed Gitaly services fix transient rspec failure due to Poll.js race condition Refactor variables initialization in dropzone_input.js cache the cache key... avoid #respond_to? in Cache.id_for cache DeclarativePolicy.class_for at the class level Update 9.3-to-9.4.md fix padding on filtered search dropdown. Styles should only apply to li in list Cache Note#notable for commits and fix tests Add changelog entry Update the comments for the new functionality Use RequestStoreWrap for Commit#author Skip dead jobs queue for web hooks and project services Add RequestStoreWrap to cache via RequestStore Don't track cached queries in Gitlab::PerformanceBar::PeekQueryTracker Add changelog entry ...
2017-07-18Make sure it checks against the tag only when it's a tagLin Jen-Shin
2017-07-17Protect manual actions against protected tag tooLin Jen-Shin
2017-07-05Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin
* upstream/master: (67 commits) Revert "Merge branch 'revert-12499' into 'master'" Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion Document that GitLab 9.3 requires the TRIGGER permission on MySQL Instrument Unicorn with Ruby exporter Remove group modal like remove project modal. Closes #33130 Update prometheus client gem Enables the option in user preferences to turn on the new navigation Simplify authentication logic in the v4 users API for !12445. wait_for_requests is not needed when AJAX is not in play Don't resolve fork relationships for projects pending delete Clean up the ForkedProjectLink specs Remove unnecessary clear_stubs calls Add test for GitalyClient::Ref#find_ref_name DeleteMergedBranchesService should not delete protected branches Optimize creation of commit API by using Repository#commit instead of Repository#commits Update CHANGELOG.md for 9.3.4 Make autosize fields more performant and remove broken autosize handle Update GITLAB_SHELL_VERSION to 5.1.1 Fixed the y_label not setting correctly for each graph on the monitoring dashboard Refactor and copyedit "Using Docker images" docs ...
2017-07-04Fix bad conflict resolutionLin Jen-Shin
2017-07-04Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin
* upstream/master: (119 commits) Speed up operations performed by gitlab-shell Change the force flag to a keyword argument add image - issue boards - moving card copyedit == ee !2296 Reset @full_path to nil when cache expires Replace existing runner links with icons and tooltips, move into btn-group. add margin between captcha and register button Eagerly create a milestone that is used in a feature spec Adjust readme repo width Resolve "Issue Board -> "Remove from board" button when viewing an issue gives js error and fails" Set force_remove_source_branch default to false. Fix rubocop offenses Make entrypoint and command keys to be array of strings Add issuable-list class to shared mr/issue lists to fix new responsive layout New navigation breadcrumbs Restore timeago translations in renderTimeago. Fix curl example paths (missing the 'files' segment) Automatically hide sidebar on smaller screens Fix typo in IssuesFinder comment Make Project#ensure_repository force create a repo ...
2017-07-04Consistently check permission for creating pipelines,Lin Jen-Shin
updating builds and updating pipelines. We check against being able to merge or push if the ref is protected.
2017-07-03Implement review comments for !12445 from @jneen.Timothy Andrew
- Fix duplicate `prevent` declaration - Add spec for `GlobalPolicy`
2017-06-27convert all the policies to DeclarativePolicyhttp://jneen.net/
2017-06-27update the specs to not require a set to be returnedhttp://jneen.net/
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-14Correct RSpec/SingleLineHook cop offensesRobert Speicher
2017-06-13Update tests and applicationKamil Trzcinski
2017-06-08Merge branch '25934-project-snippet-vis' into 'security-9-2'DJ Mountney
Fix visibility when referencing snippets See merge request !2101
2017-06-07Merge branch '3191-deploy-keys-update' into 'master'Rémy Coutable
Implement ability to update deploy keys Closes #3191 See merge request !10383
2017-06-05Allow group reporters to manage group labelsSean McGivern
Previously, only group masters could do this. However, project reporters can manage project labels, so there doesn't seem to be any need to restrict group labels further. Also, save a query or two by getting a single GroupMember object to find out if the user is a master or not.
2017-06-02Implement ability to update deploy keysAlexander Randa
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-10Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan
Refactor snippets finder & dont return internal snippets for external users See merge request !2094
2017-05-09Robustify environment policy specs to pass on EEGrzegorz Bizon
2017-05-08Add confirm delete protected branch modalSam Rose