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-06-02Update specs. Add CHANGELOG entryJosh Frye
2016-06-01Refactor ParticipableYorick Peterse
There are several changes to this module: 1. The use of an explicit stack in Participable#participants 2. Proc behaviour has been changed 3. Batch permissions checking == Explicit Stack Participable#participants no longer uses recursion to process "self" and all child objects, instead it uses an Array and processes objects in breadth-first order. This allows us to for example create a single Gitlab::ReferenceExtractor instance and pass this to any Procs. Re-using a ReferenceExtractor removes the need for running potentially many SQL queries every time a Proc is called on a new object. == Proc Behaviour Changed Previously a Proc in Participable was expected to return an Array of User instances. This has been changed and instead it's now expected that a Proc modifies the Gitlab::ReferenceExtractor passed to it. The return value of the Proc is ignored. == Permissions Checking The method Participable#participants uses Ability.users_that_can_read_project to check if the returned users have access to the project of "self" _without_ running multiple SQL queries for every user.
2016-05-24Enable RSpec/NotToNot cop and auto-correct offensesRobert Speicher
Also removes the note from the development/testing.md guide
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-04-19A new branch created for a confidential issue is named ↵Timothy Andrew
`<id>-confidential-issue`.
2016-04-15Merge remote-tracking branch 'origin/master' into ↵Timothy Andrew
14566-confidential-issue-branches
2016-04-15Make a few style changes based on MR feedback.Timothy Andrew
2016-04-14Start with iid on branch creationZeger-Jan van de Weg
2016-04-13Fix the rubocop check.Timothy Andrew
2016-04-12Test the `Issue#to_branch_name` method.Timothy Andrew
2016-04-12Augment the tests for `Issue#related_branches`Timothy Andrew
- Test the case where we have a referenced merge request that's being - excluded as a "related branch" - This took a while to figure out, especially the `create_cross_references!` line.
2016-04-12Refactor `Issue#related_branches`Timothy Andrew
- Previously, the controller held the logic to calculate related branches, which was: `<branches ending with `issue.iid`> - <branches with a merge request referenced in the current issue>` - This logic belongs in the `related_branches` method, not in the controller. This commit makes this change. - This means that `Issue#related_branches` now needs to take a `User`. When we find the branches that have a merge request referenced in the current issue, this is limited to merge requests that the current user has access to. - This is not directly related to #14566, but is a related refactoring.
2016-03-23Do not allow to move issue if it has not been persistedGrzegorz Bizon
2016-03-21Merge branch 'master' into 2489-soft-delete-issuesZeger-Jan van de Weg
2016-03-21Merge branch 'issues-show-performance' into 'master' Robert Speicher
Improve performance of viewing individual issues This MR does two things: 1. `Issue#related_branches` no longer performs Git operations that aren't needed 2. The output of `Repository#exists?` is now cached and flushed properly Combined these two changes should further cut down the amount of Git operations performed when viewing individual issues (and possibly other pages). See merge request !3296
2016-03-20Merge branch 'master' into feature/issue-moveGrzegorz Bizon
* master: Fix bug where wrong commit ID was being used in a merge request diff to show old image Remove CHANGELOG item that was added during merge resolution Improve the "easy WIP & un-WIP from link" feature Fix specs \#to_branch_name now uses the iid as postfix Add label description in tooltip to labels in issue index and sidebar Easily (un)mark merge request as WIP using link Use specialized system notes when MR is (un)marked as WIP another attempt to fix oauth issue attempting to fix omniauth problem Conflicts: app/assets/javascripts/issuable_form.js.coffee
2016-03-19Tweaked performance of Issue#related_branchesYorick Peterse
Requesting the branch names of a repository works even when it's empty, thus there's no need to explicitly check for an empty repository. Removing this check cuts down the amount of Git operations which in turn cuts down request timings a bit. The regular expression used to compare branches was also moved out of the loop so it's created only once.
2016-03-19Soft delete issuablesZeger-Jan van de Weg
2016-03-19Merge branch 'master' into feature/issue-moveGrzegorz Bizon
* master: (121 commits) Dedupe labels in labels selector in Dashboard pages Refactor colors and lists Add a safeguard in MergeRequest#compute_diverged_commits_count Fix an issue when the target branch of a MR had been deleted Add avatar to issue and MR pages header Cleanup somce css colors Re-group scss variables Refactor `Todo#target` Fixes issue with filter label missing on labels & milestones Rename `Todo#to_reference` to `Todo#target_reference` Fixed failing tests Updated controller with before_action Fixed other issues based on feedback Fixes issue on dashboard issues Full labels data in JSON Fixed issue with labels dropdown getting wrong labels Update CHANGELOG Use `Note#for_project_snippet?` to skip notes on project snippet Use `Commit#short_id` instead of `Commit.truncate_sha` Reuse `for_commit?` on conditional validations Update schema info comment on todo related files ... Conflicts: app/models/issue.rb db/schema.rb spec/models/issue_spec.rb
2016-03-18\#to_branch_name now uses the iid as postfixZeger-Jan van de Weg
Given the branch name 'mep-mep' with an iid being 1, the current way, master's way, would yield a branch name of 1-mep-mep. The problem for larger projects however would be that a developer might forget what iid the issue was. When this developer would try to tab complete it would: - Or result in 20+ branches possibly - Or start with the wrong digit, try again with digit++ - Would see 20 branches, repeat Thus the obvious way of solving this is letting the dev tab complete on the issue title, which is easier to remember.
2016-03-17Prevent issue move if issue has been already movedGrzegorz Bizon
2016-03-15Incorporate reviewZeger-Jan van de Weg
2016-03-15Enhance new branch button on an issueZeger-Jan van de Weg
2016-03-15new-branch-buttonZeger-Jan van de Weg
2016-03-10Added specs for Issue#referenced_merge_requestsYorick Peterse
2015-12-09Tag model specsDouwe Maan
2015-10-16Only accept open issues and merge requestsZeger-Jan van de Weg
2015-10-12Fix mentionable specsDouwe Maan
2015-09-06Re-annotate modelsStan Hu
2015-06-22Use to_reference for issue and merge request mentionable specsRobert Speicher
2015-05-26Minor model spec cleanupsRobert Speicher
Snippet model was missing project association
2015-05-26Add `to_reference` for models that support referencesRobert Speicher
Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
2015-04-16Correct usage of `subject` in specsRobert Speicher
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-10-06Add specs for tasksVinnie Okada
Add tests for the new task list functionality in the Markdown parser and in issues and merge requests.
2014-06-27Remove mass assgnment specsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-09Re-annotate modelsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-08-26Link issues from comments and automatically close themash wilson
Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown references in descriptions, titles, or attached Notes creates a back-reference Note that links to the original referencer. Furthermore, pushing commits with commit messages that match a (configurable) regexp to a project's default branch will close any issues mentioned by GFM in the matched closing phrase. If accepting a merge request would close any Issues in this way, a banner is appended to the merge request's main panel to indicate this.
2013-08-21ReannotateDmitriy Zaporozhets
2013-07-29Fix typosJohannes Schleifenbaum
2013-06-19AnnotatedDmitriy Zaporozhets
2013-03-15reannotatedDmitriy Zaporozhets
2013-02-18Additional tests added to IssueAndrew8xx8
2013-02-18Issue uses StateMachine nowAndrew8xx8
2013-02-18Issuable consern uses StateMachine nowAndrew8xx8
2013-01-22fix testsValeriy Sizov
2013-01-19Increase Issue description size to 10k. Fixes #2545Dmitriy Zaporozhets
2013-01-03Fixed tests. added test for gitlab_ci_service modelDmitriy Zaporozhets
2012-11-19Annotated. schema updatedDmitriy Zaporozhets
2012-11-14Fix specsRiyad Preukschas