summaryrefslogtreecommitdiff
path: root/spec/policies
Commit message (Collapse)AuthorAgeFilesLines
* Update policies unit testsTomasz Maczukin2017-11-272-14/+37
| | | | | This commit also makes spec/policies/namespace_policy_spec.rb file to be compatible with the same file in GitLab EE.
* Improve specShinya Maeda2017-11-071-9/+27
|
* Merge branch 'master' into fix/sm/31771-do-not-allow-jobs-to-be-erased-newShinya Maeda2017-11-071-3/+3
|\
| * specs for policies.Shinya Maeda2017-10-311-3/+3
| |
* | Add doc. Fix spec. Add erase_build in protected_ref ruleShinya Maeda2017-11-071-11/+29
| |
* | Fix spec. Revert update check.Shinya Maeda2017-11-061-6/+5
| |
* | Do not allow jobs to be erasedShinya Maeda2017-11-061-0/+42
|/
* Merge branch ↵Kamil Trzciński2017-10-061-0/+28
|\ | | | | | | | | | | | | | | | | '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
| * authorizations_controller_spec. cluster_policy_spec.Shinya Maeda2017-10-051-0/+28
| |
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Jarka Kadlecova2017-10-032-0/+57
|\ \ | |/ | | | | | | | | | | 18608-lock-issues-v2 # Conflicts: # db/schema.rb
| * moved fork checks into policiesfork-btn-enabled-user-groupsPhil Hughes2017-09-292-0/+43
| |
| * Support custom attributes on usersMarkus Koller2017-09-281-0/+14
| |
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 18608-lock-issuesJarka Kadlecova2017-09-251-47/+86
|\ \ | |/ | | | | | | # Conflicts: # app/assets/javascripts/notes/components/issue_comment_form.vue
| * Refactor spec/policies/project_policy_spec.rb to minimize the diff with EErc/refactor-project_policy_spec-ceRémy Coutable2017-09-221-47/+86
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge remote-tracking branch 'origin/master' into 18608-lock-issuesLuke "Jared" Bennett2017-09-202-4/+18
|\ \ | |/
| * Allow DEVELOPER role to admin milestonesissue_32215Felipe Artur2017-09-182-4/+18
| |
* | Create system notes for MR too, improve doc + clean up codeJarka Kadlecova2017-09-142-4/+21
| |
* | Support discussion locking in the backendJarka Kadlecova2017-09-142-0/+82
|/
* Make Members with Owner and Master roles always able to create subgroups30473-allow-creation-of-subgroups-with-gitlab_default_can_create_group-set-to-falseRuben Davila2017-09-071-2/+2
|
* Fix ability when Share lock is offMichael Kozono2017-09-061-44/+60
|
* Fix “Share lock” policy for deeply nested groupsMichael Kozono2017-09-061-8/+34
|
* Specify nested_groups specsMichael Kozono2017-09-061-1/+1
|
* Enforce share_with_group_lock rulesMichael Kozono2017-09-061-0/+48
| | | | …in Groups::UpdateService instead of only in the browser.
* Fixes group policy specs on MySQL.fix-group-policy-specs-on-mysqlTiago Botelho2017-08-221-0/+6
|
* Improves subgroup creation permissions35845-improve-subgroup-creation-permissionsTiago Botelho2017-08-211-0/+30
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-025-11/+11
|
* Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-013-6/+6
|
* Use described_class when possibleRémy Coutable2017-07-272-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-279-9/+9
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous type defs in specsKeifer Furzland2017-07-272-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '30634-protected-pipeline' into 'master'Kamil Trzciński2017-07-252-53/+89
|\ | | | | | | | | | | | | Implement "Block pipelines on protected branches" Closes #30634, #34616, and #33130 See merge request !11910
| * Unify build policy tests and pipeline policy testsLin Jen-Shin2017-07-182-13/+32
| |
| * Restore some tests from masterLin Jen-Shin2017-07-181-5/+33
| |
| * Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-181-8/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 ...
| * \ Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-051-0/+34
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 ...
| * | | Fix bad conflict resolutionLin Jen-Shin2017-07-042-8/+8
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-0412-275/+300
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 ...
| * | | | Consistently check permission for creating pipelines,Lin Jen-Shin2017-07-042-35/+64
| | | | | | | | | | | | | | | | | | | | | | | | | updating builds and updating pipelines. We check against being able to merge or push if the ref is protected.
* | | | | Allow admin to read_users_list even if it's restrictedLin Jen-Shin2017-07-251-0/+20
| | | | |
* | | | | Don't treat anonymous users as owners when group has pending invitesSean McGivern2017-07-241-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Associate Issues tab only with internal issues trackerJarka Kadlecova2017-07-241-0/+24
| |_|_|/ |/| | |
* | | | Make sure it checks against the tag only when it's a tag34927-protect-manual-actions-on-tagsLin Jen-Shin2017-07-181-0/+19
| | | |
* | | | Protect manual actions against protected tag tooLin Jen-Shin2017-07-171-6/+19
| |_|/ |/| |
* | | Implement review comments for !12445 from @jneen.34141-allow-unauthenticated-access-to-the-users-apiTimothy Andrew2017-07-031-0/+34
| |/ |/| | | | | | | - Fix duplicate `prevent` declaration - Add spec for `GlobalPolicy`
* | convert all the policies to DeclarativePolicyhttp://jneen.net/2017-06-272-3/+3
| |
* | update the specs to not require a set to be returnedhttp://jneen.net/2017-06-2711-271/+296
|/
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-142-6/+18
|
* Update tests and applicationfix-external-ci-servicesKamil Trzcinski2017-06-131-0/+12
|
* Merge branch '25934-project-snippet-vis' into 'security-9-2'DJ Mountney2017-06-081-2/+2
| | | | | | Fix visibility when referencing snippets See merge request !2101