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/db
AgeCommit message (Collapse)Author
2016-12-28Revert MattermostNotificationService and SlackNotificationService to ↵Felipe Artur
MattermostService and SlackService
2016-12-27Merge branch 'master' into 'dz-rename-reserved-project-names'Dmitriy Zaporozhets
# Conflicts: # db/schema.rb
2016-12-27Merge branch 'feature/1376-allow-write-access-deploy-keys' into 'master' Douwe Maan
Allow to add deploy keys with write-access Closes #1376 See merge request !7383
2016-12-27Merge branch 'dz-rename-invalid-users' into 'master' Douwe Maan
Rename users with namespace ending with .git See merge request !8309
2016-12-27Disable timeout while removing servicesZ.J. van de Weg
On GitLab.com this migration could take about 3 minutes. Disabling the statement we know we have enough time to complete this. Fixes #25976
2016-12-26Rename users with namespace ending with .gitDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-26Merge branch 'feature/more-storage-statistics' into 'master' Sean McGivern
Add more storage statistics See merge request !7754
2016-12-24Removed return from reserved project migrationYorick Peterse
This return is redundant as the query now uses "WHERE EXISTS (...)" to filter out projects without a namespace.
2016-12-24Fix parallel renaming of reserved projectsYorick Peterse
This ensures threads don't re-use the same connection object, and use fewer queries to perform the work.
2016-12-24Rename projects with reserved path namesDmitriy Zaporozhets
We cant have project with name 'project' or 'tree' anymore. This merge request containts a migration that will find and rename all projects using reserved names by adding N digit to the end of the name. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-22Exclude non existent repository storages.Ruben Davila
2016-12-21Add more storage statisticsMarkus Koller
This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
2016-12-21Remove unused services from the databaseZ.J. van de Weg
This adds a migration to remove unused services, where the properties are empty. As the properties are empty, those do not contain any settings or other information. Fixes #25727
2016-12-21Merge branch 'dz-rename-invalid-groups' into 'master' Douwe Maan
Rename groups with .git in the end of the path Closes #25862 See merge request !8199
2016-12-21Rename groups with .git in the end of the pathDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-21Rename SlackNotificationService back to SlackServiceDouglas Barbosa Alexandre
2016-12-20Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
feature/1376-allow-write-access-deploy-keys * upstream/master: (538 commits) Reject blank environment vcariables in Gitlab::Git::RevList Add online terminal documentation Add changelog entry Add terminal UI and controller actions Fix specs Even out padding on plus button in breadcrumb menu Update font size of detail page header to 14px Update CHANGELOG.md for 8.13.10 Update CHANGELOG.md for 8.14.5 Fix Route#rename_children behavior Remove inline-block styling from status Add terminals to the Kubernetes deployment service Add a ReactiveCaching concern for use in the KubernetesService Add xterm.js 2.1.0 and a wrapper class to the asset pipeline Remove unnecessary hidden svg elements for icons. Fix consistent typo in environment.js Use a block to insert extra check for authenticate_build! Align milestone column header with count number Add Wiki import to BB importer Make CI badge hitboxes better match container ...
2016-12-19Merge remote-tracking branch 'origin/master' into improve-pipeline-fixturesKamil Trzcinski
2016-12-16Merge branch '20492-access-token-scopes' into 'master' Rémy Coutable
Resolve "Add a doorkeeper scope suitable for authentication" ## What does this MR do? - Add a single new scope (in addition to the `api` scope we've had) - `read_user` - Allow creating OAuth applications and Personal access tokens with a scope selected - Enforce scopes in the API ## What are the relevant issue numbers? - Closes #20492 - EE counterpart for this MR: gitlab-org/gitlab-ee!946 See merge request !5951
2016-12-16Merge branch 'issue_22269' into 'master' Kamil Trzciński
Mattermost Notifications Service ## What does this MR do? closes #22269 ## Screenshots ![mattermost](/uploads/de71c121f544a91305b6dfa6dc4c5738/mattermost.png) ![slack](/uploads/081d75d49239319d94332abda214fb98/slack.png) ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [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 it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !7764
2016-12-16Merge branch 'fix/25635' into 'master' Rémy Coutable
Fix 8.15 RC1 requires quite amount of downtime See https://gitlab.com/gitlab-org/gitlab-ce/issues/25635 See merge request !8106
2016-12-16Merge branch 'change_development_build_fixtures' into 'master' Sean McGivern
Made Ci::Builds to have same ref as Ci::Pipeline in dev fixtures See merge request !8110
2016-12-16Make `ChangePersonalAccessTokensDefaultBackToEmptyArray` a "post" migration.Timothy Andrew
If we leave this as a regular migration, we could have the following flow: 1. Application knows nothing about scopes. 2. First migration runs, all existing personal access tokens have `api` scope 3. Application still knows nothing about scopes. 4. Second migration runs, all tokens created after this point have no scope 5. Application still knows nothing about scopes. 6. Tokens created at this time _should have the API scope, but instead have no scope_ 7. Application code is reloaded, application knows about scopes 8. Tokens created after this point only have no scope if the user deliberately chooses to have no scopes. Point #6 is the problem here. To avoid this, we move the second migration to a "post" migration, which runs after the application code is deployed/reloaded.
2016-12-16Implement minor changes from @dbalexandre's review.Timothy Andrew
- Mainly whitespace changes. - Require the migration adding the `scope` column to the `personal_access_tokens` table to have downtime, since API calls will fail if the new code is in place, but the migration hasn't run. - Minor refactoring - load `@scopes` in a `before_action`, since we're doing it in three different places.
2016-12-16Add a `scopes` column to the `personal_access_tokens` tableTimothy Andrew
2016-12-16Improve performance on RemoveDuplicatesFromRoutes migrationDouglas Barbosa Alexandre
2016-12-16Fix the AddNameIndexToNamespace migration to be reversibleDouglas Barbosa Alexandre
2016-12-16Use optimized query to fill the routes table when running PostgreSQLDouglas Barbosa Alexandre
2016-12-16Don't use the Route model in migrationsDouglas Barbosa Alexandre
2016-12-15Change SlackService to SlackNotificationsServiceFelipe Artur
2016-12-15Made Ci::Builds to have same ref as Ci::Pipeline in dev fixturestwonegatives
2016-12-15Add an environment slugNick Thomas
2016-12-15Make the index on environment name and project id unique, fixing up any ↵Nick Thomas
duplicates
2016-12-15Merge branch 'seed-runner-token' into 'master' Kamil Trzciński
Allow users to seed the initial runner registration token using an environment variable ## What does this MR do? Allow users to seed the initial runner registration token using an environment variable ## Are there points in the code the reviewer needs to double check? - Naming, do we want to make sure we are clear it's the 'registration' token. Like GITLAB_RUNNER_REGISTRATION_TOKEN vs what I have now, GITLAB_RUNNER_TOKEN - Not sure we've tested a seed fixture before, I just made up a directory structure for the test ## Why was this MR needed? At the moment I want to use this in our idea to production demo: https://gitlab.com/gitlab-org/gitlab-ce/issues/22190 This is useful for when runner is bundled with gitlab, like in a kubernetes stack, and we want the runner to be able to register with gitlab as soon as they both come up. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [x] Added for this feature/bug - [x] 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) See merge request !6642
2016-12-14Merge branch 'master' into 'dz-remove-namespaces-path-uniq'Dmitriy Zaporozhets
Merge Request - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8013 # Conflicts: # db/schema.rb
2016-12-14Merge branch 'process-commit-worker-migration-encoding' into 'master' Rémy Coutable
Encode when migrating ProcessCommitWorker jobs ## What does this MR do? This adds encoding logic to the migration for ProcessCommitWorker, ensuring it doesn't throw errors when the input can not be converted to UTF-8 without extra help. ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/gitlab-ce/issues/25489 See merge request !8064
2016-12-13Encode when migrating ProcessCommitWorker jobsYorick Peterse
If the source encoding is not UTF-8 we need to encode the data as `JSON.dump` may throw an error if the input can not be converted to UTF-8. We only encode when necessary to reduce the overhead. Fixes gitlab-org/gitlab-ce#25489
2016-12-12Merge CSSFilipa Lacerda
2016-12-12Add index to routes table on lower path for postgresqlDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-12Modify namespace name and path validationDmitriy Zaporozhets
Currently namespace name and path have uniq validaiton which does not allow us to use same group name/path inside different groups. This commit changes validation in next way: * Allow same namespace name with different parent_id * Allow same namespace path. Uniq validation should be handled by routes table Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-08Add nested groups support on data levelDmitriy Zaporozhets
* add parent_id field to namespaces table to store relation with nested groups * create routes table to keep information about full path of every group and project * project/group lookup by full path from routes table Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-06Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
feature/1376-allow-write-access-deploy-keys * upstream/master: (488 commits) Merge branch 'issue_25064' into 'security' It's secret variables, not secure Fix dead links, add example of debug trace output, simplify titles Authorize users into imported GitLab project Document button secondary states. Update icons and color section Remove unused votes.scss Remove unused errors css Fixed MR widget content wrapping for XS viewports NIGNX -> Nginx Use pry-byebug instead byebug Fixed influence from other specs. Accept `issue new` as command to create an issue Update paranoia from 2.1.4 to 2.2.0. Use the pagination helper in the API Added changelog for #25221 Fixed top margin for Builds page status header information Satisfied eslint Fix compatibility with Internet Explorer 11 for merge requests change the date label to match the date used fix gfm doc typo about two spaces for next line transfer ...
2016-12-02Allow users to seed the initial runner registration token using an ↵DJ Mountney
environment variable This is useful for when runner is bundled with gitlab, like in a kubernetes stack, and we want the runner to be able to register with gitlab as soon as they both come up.
2016-12-01Pass commit data to ProcessCommitWorkerYorick Peterse
By passing commit data to this worker we remove the need for querying the Git repository for every job. This in turn reduces the time spent processing each job. The migration included migrates jobs from the old format to the new format. For this to work properly it requires downtime as otherwise workers may start producing errors until they're using a newer version of the worker code.
2016-11-30Make the downtime_check task happyRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30Merge branch '23666-set-null-true-for-timestamps-columns-in-migrations' into ↵Robert Speicher
'master' Add `null: true` to timestamps in migrations that does not define it This is to ensure that migrations will still be consitent when we will upgrade to Rails 5 which default to `null: false` for timestamps columns. Fixes #23666. See merge request !7791
2016-11-29Remove unnecessary database indexesValery Sizov
2016-11-29Merge branch '24880-configurable-plaintext-emails' into 'master' Sean McGivern
Add setting to enable/disable HTML emails Closes #24880 See merge request !7749
2016-11-29Add new configuration setting to enable/disable HTML emails.Ruben Davila
This new global setting will allow admins to specify if HTML emails should be sent or not, this is basically useful when system administrators want to save some disk space by avoiding emails in HTML format and using only the Plain Text version.
2016-11-28Improve pipeline fixturesKamil Trzcinski