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
path: root/lib
AgeCommit message (Collapse)Author
2016-09-21fix import/export security specs after mergeJames Lopez
2016-09-21Merge branch 'and-you-get-awards' into 'master' Rémy Coutable
And Snippets get awards ## What does this MR do? Makes snippets more awesome, by making them awardables ## Why was this MR needed? Because Snippets were left behind. ## What are the relevant issue numbers? Closes #17878 See merge request !4456
2016-09-21Merge branch 'add_spec_for_committer_hash' into 'master' Rémy Coutable
Add spec covering 'committer_hash' Adds a missing spec from changes added in !5822 See merge request !6433
2016-09-21Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2016-09-21Merge branch 'post-merge-improve-of-ci-permissions' into 'master' Rémy Coutable
Post-merge improve of CI permissions Improves code from !6409 See merge request !6432
2016-09-21Merge branch '21170-cycle-analytics' into 'master' Stan Hu
Cycle Analytics: first iteration ## What does this MR do? - Implement the first iteration of the "Cycle Analytics" feature. ## What are the relevant issue numbers? - Closes #21170 ## Screenshots ![cycle_analytics_screencast.gif](/uploads/d23c3c912caa6935fd47b53ca3a56b97/cycle_analytics.gif) ## Backend Tasks - [x] Implementation - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Make heuristics more modular - [x] Scope to project - [x] Date range (30 days, 90 days) - [x] Access restriction - [x] Test - [x] Find a better way to test these phases - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Test for "end case happens before start case" - [x] Consolidate helper - [x] Miniboss review - [x] Performance testing with mock data - [x] Improve performance - [x] Pre-calculate "merge requests closing issues - [x] Pre-calculate everything else - [x] Test performance against 10k issues - [x] Test all pre-calculation code - [x] Ci::Pipeline -> build start/finish - [x] Ci::Pipeline#merge_requests - [x] Issue -> record default metrics after save - [x] MergeRequest -> record default metrics after save - [x] Deployment -> Update "first_deployed_to_production_at" for MR metrics - [x] Git Push -> Update "first commit mention" for issue metrics - [x] Merge request create/update/refresh -> Update "merge requests closing issues" - [x] Remove `MergeRequestsClosingIssues` when necessary - [x] Changes to unblock Fatih - [x] Add summary data - [x] `stats` should be array - [x] Let `stats` be `null` if all `stats` are null - [x] Indexes for "merge requests closing issues" - [x] Test summary data - [x] Scope everything to project - [x] Find out why tests were passing - [x] Filter should include issues/MRs which have made it to production within the range - [x] Don't create duplicate `MergeRequestsClosingIssues` - [x] Fix tests - [x] MySQL median - [x] Assign to Douwe for review - [x] Fix conflicts - [x] Implement suggestions from Yorick's review - [x] Test on PG - [x] Test on MySQL - [x] Refactor - [x] Cleanup - [x] What happens if we have no data at all? - [x] Extract common queries to methods / scopes - [x] Remove unused queries - [x] Downtime for foreign key migrations - [x] Find a way around "if issue.metrics.present?" all over the place - [x] Find a way around "if merge_request.metrics.present?" all over the place - [x] Test migrations on a fresh database - [x] MySQL - [x] Pg - [x] Access issues - While the project is public and the visibility is set to "Everyone with access", you cannot visit the cycle analytics page when signed out. - [x] CHANGELOG - [x] Implement suggestions from Douwe's review - [x] First set of comments - [x] Second set of comments - [x] Third set of comments - [x] Fourth set of comments - [x] Make sure build is green - [ ] Make issue for "polish" - [ ] EE MR See merge request !5986
2016-09-21Implement fourth round of comments from @DouweM.Timothy Andrew
- Pluralize summary titles - Remove the `run_query` method - always return sql strings from the `date_time_sql` methods
2016-09-20Improve indentation in `Gitlab::Database::Median`Timothy Andrew
2016-09-20Implement a second round of review comments from @DouweM.Timothy Andrew
- Don't use `TableReferences` - using `.arel_table` is shorter! - Move some database-related code to `Gitlab::Database` - Remove the `MergeRequest#issues_closed` and `Issue#closed_by_merge_requests` associations. They were either shadowing or were too similar to existing methods. They are not being used anywhere, so it's better to remove them to reduce confusion. - Use Rails 3-style validations - Index for `MergeRequest::Metrics#first_deployed_to_production_at` - Only include `CycleAnalyticsHelpers::TestGeneration` for specs that need it. - Other minor refactorings.
2016-09-20Add spec covering 'committer_hash'Dan Dunckel
2016-09-20Improve JwtController implementationKamil Trzcinski
2016-09-20Merge branch 'add_optional_author_for_commits' into 'master' Rémy Coutable
Add optional 'author' param when making commits This fulfills https://gitlab.com/gitlab-org/gitlab-ce/issues/20789 by adding the ability to specify a user's ID to be used as the author of a commit. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20789 See merge request !5822
2016-09-20Post-merge improve of CI permissionsKamil Trzcinski
2016-09-20Fix rubocop spec.Timothy Andrew
And `scss_lint`
2016-09-20Implement (some) comments from @DouweM's review.Timothy Andrew
- Move things common to `Issue` and `MergeRequest` into `Issuable` - Move more database-specific functions into `Gitlab::Database` - Indentation changes and other minor refactorings.
2016-09-20Merge branch 'feature/github-edit-path' into 'master' Rémy Coutable
Lets the user choose a namespace and name on Github imports Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/14971 See merge request !5728
2016-09-20Implement review comments from @yorickpeterseTimothy Andrew
1. Change multiple updates to a single `update_all` 2. Use cascading deletes 3. Extract an average function for the database median. 4. Move database median to `lib/gitlab/database` 5. Use `delete_all` instead of `destroy_all` 6. Minor refactoring
2016-09-20Merge branch 'lfs-support-for-ssh-enabled' into 'master' Douwe Maan
LFS support for ssh enabled ## What does this MR do? This is follow-up after https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043 which is falsely shown as merged due to: https://gitlab.com/gitlab-org/gitlab-ce/issues/22334 ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? See merge request !6413
2016-09-20Move logic to check ci? or lfs_deploy_token? to Gitlab::Auth::ResultKamil Trzcinski
2016-09-20modify github import JS and controller so we can now specify a namespace ↵James Lopez
and/or name for a project. - Fixed and added specs. - Added different namespace options depending on user privilages - Updated docs.
2016-09-20Use early return in lfs_token_checkKamil Trzcinski
2016-09-20Merge branch 'rs-trailing-spaces-in-regex-messages' into 'master' Rémy Coutable
Remove trailing spaces from messages in Gitlab::Regex See merge request !6426
2016-09-20Merge branch 'ldap_user_attr_method' into 'master' Douwe Maan
Move LDAP user attributes to a method ## What does this MR do? This is a change that supports an EE fix. This small change needs to be made in CE to prevent future merge conflicts. See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/736 for the EE changes. See merge request !6377
2016-09-20Merge branch 'strip-key-comments-for-gitlab-shell' into 'master' Robert Speicher
Strip comments before sending keys to gitlab-shell ## Why was this MR needed? https://gitlab.com/gitlab-org/gitlab-ce/issues/22167 encoding issues in comment text. ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/gitlab-ce/issues/22167 See merge request !6381
2016-09-20Merge branch '22065-group-members-api-returning-null-user-details' into ↵Robert Speicher
'master' Ensure invitees are not returned in Members API ## What are the relevant issue numbers? Closes #22065 See merge request !6370
2016-09-20Remove trailing spaces from messages in Gitlab::RegexRobert Speicher
2016-09-19Add optional 'author' param when making commitsDan Dunckel
2016-09-19Fix tests for Snippets toggling awardsZ.J. van de Weg
Also incorporate feedback
2016-09-19API support for Award Emoji on SnippetsZ.J. van de Weg
2016-09-19Snippets get award emoji! :thumbsup:Z.J. van de Weg
2016-09-19Merge branch 'issue_20978' into 'master' Rémy Coutable
Allow to set request_access_enabled for groups and projects using API Closes #20978 See merge request !6359
2016-09-19Allow to set request_access_enabled for groups and projects using APIFelipe Artur
2016-09-19Revert "Revert all changes introduced by ↵Kamil Trzcinski
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043" This reverts commit 6d43c95b7011ec7ec4600e00bdc8df76bb39813c.
2016-09-19Merge branch 'per-build-token-without-lfs' into 'master' Rémy Coutable
Make CI to use the permission of the user who is trigger the build This is continuation of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5735, but with removed all LFS code that is added by: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043. This also incorporates most of LFS code added in !6043 to simplify further merge. See merge request !6409
2016-09-19Merge branch 'fix/import-export-db-errors' into 'master' Rémy Coutable
Fix import/export database errors Fixes protected branches errors when importing a project including them Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21295 Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21799 See merge request !6099
2016-09-19Solve code review commentsKamil Trzcinski
2016-09-19Properly support Gitlab::Auth::ResultKamil Trzcinski
2016-09-19Revert all changes introduced by ↵Kamil Trzcinski
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043
2016-09-19Move Gitlab::Auth.Result to separate fileKamil Trzcinski
2016-09-19Merge branch 'master' into per-build-tokenKamil Trzcinski
2016-09-19Stop putting private tokens in GonNick Thomas
2016-09-19Enable Warden for the Grape APINick Thomas
The practical effect of this commit is to make the API check the Rails session cookie for authentication details. If the cookie is present and valid, it will be used to authenticate. The API now has several authentication options for users. They follow in this order of precedence: * Authentication token * Personal access token * OAuth2 Bearer token (Doorkeeper - application access) * Rails session cookie
2016-09-19Remove some dead code from the Grape APINick Thomas
The `guard_all!` method is never called, and `guard!` is not implemented. The `doorkeeper_guard!` method is also never called, and is mostly the same as its non-bang counterpart.
2016-09-19Support pushing via SSHKamil Trzcinski
2016-09-19Don't leak build tokens in build logsKamil Trzcinski
2016-09-19Fix permissions for creating container imagesKamil Trzcinski
2016-09-19Fix validation regexs (+1 squashed commit)Kamil Trzcinski
Squashed commits: [f9a9315] Use : to test invalid environment name
2016-09-19Fix scope of the CI config key nodes in jobs entryGrzegorz Bizon
2016-09-19Fix environments handlingKamil Trzcinski
2016-09-19Restore validation of CI job environment nameGrzegorz Bizon