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
2016-07-07Represent DiffRefs as proper class instead of tuple arrayDouwe Maan
2016-07-05New :request_access ability to replace a ugly helperRémy Coutable
- Group / project members cannot request access - Group members cannot request access to a group's project This addresses an issue where project owners could request access to their own project, leading to UI inconsistency where their requester status would replace their owner status. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-02Merge branch 'explicit-requesters-scope' into 'master' Douwe Maan
Exclude requesters from Project#members, Group#members and User#members ## What does this MR do? It excludes requesters from the `Project#members`, `Group#members` and `User#members` associations, and adds new `Project#requesters` and `Group#requesters` associations. ## Are there points in the code the reviewer needs to double check? No. ## Why was this MR needed? Without this, if you call `project.members`, requesters are included in the results! This is at best misleading, and at worst can lead to security issues. By excluding requesters from the `#members` associations, we avoid introducing security inadvertently since you have to call the `#requesters` association explicitly to get requesters. ## What are the relevant issue numbers? This is something I realized while fixing the security issue #19102. ## Does this MR meet the acceptance criteria? - [x] I don't think this needs a CHANGELOG since this is an internal change - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4946
2016-07-01Enable Style/EmptyLines cop, remove redundant onesGrzegorz Bizon
2016-07-01Exclude requesters from Project#members, Group#members and User#membersRémy Coutable
And create new Project#requesters, Group#requesters scopes. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-30Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez
2016-06-29Be explicit which project and user ID are memoizedStan Hu
2016-06-29Memoize the maximum access level for the author of notesStan Hu
In #19273, we saw that retrieving ProjectTeam#human_max_access for each note takes the bulk of the time when rendering certain issues or merge requests. We observe that most of the comments in an issue are typically done by the same users. This MR memoizes the max access level by user ID.
2016-06-23Remove Haml helpers from the visibility level spec.Connor Shea
2016-06-18Correctly adds commit ID into dropdownPhil Hughes
Removes un-used method Fixes other Ruby issues
2016-06-17Ensure group/project owners can see their members' access_levelRémy Coutable
When you are the last owner of a group or the owner of a project, you don't have the :update_<source>_member / :destroy_<source>_member abilities, but you do have the :admin_<source>_member so you should be able to see your members access levels. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-17Merge branch 'remove_jiraissue' into 'master' Robert Speicher
Remove JiraIssue model and replace references with ExternalIssue This MR Removes unused JiraIssue class and replaces references with ExternalIssue Closes #18203 See merge request !4659
2016-06-16Remove JiraIssue model and replace references with ExternalIssueIlan Shamir
2016-06-15Fix permission checks in member rowRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14UI and copywriting improvementsRémy Coutable
+ Move 'Edit Project/Group' out of membership-related partial + Show the access request buttons only to logged-in users + Put the request access buttons out of in a more visible button + Improve the copy in the #remove_member_message helper Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14Factorize access request routes into a new :access_requestable route concernRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14Add request access for groupsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-14Remove deprecated issues_tracker and issues_tracker_id from projectDouglas Barbosa Alexandre
2016-06-09Merge branch '18019-fix-wiki-linking' into 'master' Rémy Coutable
Fix wiki linking behavior for markdown wiki pages Related to #18019 - As per the documentation in !4372 ## TODO - [ ] !4432 Have wiki linking behave as per the documentation - [x] Move `WikiLinkFilter` specs to the pipeline level - [x] Verify current behavior on wiki `show` page - [x] Fix current behavior on wiki `show` page - [x] Verify current behaviour on wiki preview - [x] Fix current behaviour on wiki preview - [x] Rewrite all links and get preview links working - [x] Make sure all links are on-par with the wiki `show` page - [x] TDD `WikiLinkFilter` and get it working - [x] Hook `WikiLinkFilter` up - [x] Fix tests - [x] Fix `markdown_spec` - [x] Fix `wiki` spinach feature - [x] Wait for [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/4f50dd2/builds) to pass - [x] Make sure all wiki-related pages are working as expected (history, all pages, etc.) - [x] Test in different ruby versions - [x] GitLab instances hosted on a relative URL - [x] Non-markdown rendering formats? - [x] RDoc - [x] ASCIIDoc - [x] Create issues to fix things for RDoc and ASCIIDoc - [x] Gauge performance impact - [x] Refactor - [x] Re-organize commits - [x] Make sure [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/f860e9a8dcabe7d5f160c32fc549807c98baa4a1/builds) passes - [x] Respond to @rymai's comments - [x] `class WikiLinkFilter < HTML::Pipeline::Filter` - [x] blank line after guard clause - [x] keyword arguments for `wiki` and `slug` - [x] invert the condition - [x] inline `user` in spec - [x] Make sure spec names are not out of date - [x] Comment for each rewrite rule - [x] Add CHANGELOG entry - [x] Reorganize commits - [x] Make sure [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/19b91e749a6320d12fb299d33f1f6440777e0e26/builds) passes - [ ] Wait for merge See merge request !4432
2016-06-09Hook up the updated `WikiLinkFilter` to the wiki controllers.Timothy Andrew
- Need to pass in a `page_slug` to the filter, so it can rewrite based on the current page (all links are rewritten to the level of the app root). - The earlier `markdown_preview` endpoint was at the level of the wiki. We need to know the current page (for rewriting, as above), so this commit moves the endpoint to the level of a wiki page. - Fix all tests
2016-06-06Merge remote-tracking branch 'origin/master' into rename-ci-commitKamil Trzcinski
2016-06-02Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski
2016-05-30Merge branch 'master' into awardablesZJ van de Weg
2016-05-25Merge branch 'master' into awardablesZJ van de Weg
2016-05-24Enable RSpec/NotToNot cop and auto-correct offensesRobert Speicher
Also removes the note from the development/testing.md guide
2016-05-18Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet
# Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb
2016-05-18Create DiffFilter and change SystemNoteService#change_title to use ↵Adam Butler
Gitlab::Diff::InlineDiff
2016-05-13Merge branch 'rs-cleanup-events_helper_spec' into 'master' Douwe Maan
Clean up EventsHelper spec Extracted from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4090 See merge request !4133
2016-05-13Clean up EventsHelper specRobert Speicher
2016-05-12more readable specs for enabled_button_based_providers and ↵Andrei Gliga
button_based_providers_enabled?
2016-05-12DRYing enabled_button_based_providers testsAndrei Gliga
2016-05-12enabled_button_based_providers into their own describe sectionAndrei Gliga
2016-05-12use stub_application_setting insteadAndrei Gliga
2016-05-12between ""Andrei Gliga
2016-05-12tests for button_based_providers_enabled? helper method of AuthHelperAndrei Gliga
2016-05-12tests for enabled_button_based_providers helper method of AuthHelperAndrei Gliga
2016-05-11Merge branch 'master' into awardablesZeger-Jan van de Weg
2016-05-09Merge branch 'rs-backport-ee-372' into 'master' Rémy Coutable
Backport changes from gitlab-org/gitlab-ee!372 Mostly replaces several Spinach tests with RSpec Feature tests. See merge request !4043
2016-05-07Update SVG sanitizer to conform to SVG 1.1Stan Hu
Use a custom Loofah scrubber since sanitize 2.x transformers are inadequate to handle case-sensitive SVG attributes. sanitize parses documents as HTML instead of XML, which causes all SVG attribute names (e.g. viewBox) to be downcased. * SVG element list: https://www.w3.org/TR/SVG/eltindex.html * SVG attribute list: https://www.w3.org/TR/SVG/attindex.html Closes #14555
2016-05-06Create table for award emojiZeger-Jan van de Weg
2016-05-05Sanitize repo paths in new project error messageStan Hu
Closes #17243
2016-05-05Backport changes from gitlab-org/gitlab-ee!372Robert Speicher
Mostly replaces several Spinach tests with RSpec Feature tests.
2016-05-03Merge remote-tracking branch 'dev/master' into 'master'Robert Speicher
2016-04-26Updated label links to work correctly for filteringPhil Hughes
See !3846#note_5033951
2016-04-25Ensure URL in all Service subclasses are validRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-25Fix license detection to detect all license files, not only known licensesRémy Coutable
Fixes #15470. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-22Merge branch 'rs-diff_view' into 'master' Rémy Coutable
Always read diff_view setting from the cookie Prior, when the user had their view set to "parallel" and then visited a merge request's changes tab _without_ passing the `view` parameter via query string, the view would be parallel but the `Notes` class was always instantiated with the default value from `diff_view` ("inline"), resulting in broken markup when the form to add a line note was dynamically inserted. The cookie is set whenever the view is changed, so this value should always be up-to-date. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14557 and https://gitlab.com/gitlab-org/gitlab-ce/issues/15285 See merge request !3732
2016-04-21Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński
Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
2016-04-19Merge branch 'imported-ghe-project-names-links-to-github' into 'master' Robert Speicher
Fix GitHub project's link in the import page when provider has a custom URL Closes gitlab-org/gitlab-ee#478 See merge request !3803
2016-04-19Fix GitHub project's link on import page when provider has a custom URLDouglas Barbosa Alexandre