summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fixes-for-internal-auth-disabled' into 'master'Sean McGivern2017-07-143-1/+31
|\ | | | | | | | | Fixes needed when GitLab sign-in is not enabled See merge request !12491
| * Fixes needed when GitLab sign-in is not enabledRobin Bobbitt2017-07-133-1/+31
| | | | | | | | | | | | | | | | | | When sign-in is disabled: - skip password expiration checks - prevent password reset requests - don’t show Password tab in User Settings - don’t allow login with username/password for Git over HTTP requests - render 404 on requests to Profiles::PasswordsController
* | Support multiple Redis instances based on queue typePaul Charlton2017-07-111-2/+2
|/
* Merge branch 'fix/gb/stage-id-reference-background-migration' into 'master'Grzegorz Bizon2017-07-081-0/+33
|\ | | | | | | | | | | | | Add build stage_id reference background migration Closes #34151 See merge request !12513
| * Merge branch 'master' into 'fix/gb/stage-id-reference-background-migration'Grzegorz Bizon2017-07-077-2/+149
| |\ | | | | | | | | | | | | # Conflicts: # app/models/concerns/each_batch.rb # spec/models/concerns/each_batch_spec.rb
| * | Do not schedule bg migration when it is not neededGrzegorz Bizon2017-07-071-1/+1
| | |
| * | Schedule stage_id bg migrations in batches of 10Grzegorz Bizon2017-07-071-3/+6
| | |
| * | Use new `each_batch` helper instead of custom oneGrzegorz Bizon2017-07-071-6/+8
| | | | | | | | | | | | In stage_id backgrond migration.
| * | Merge remote-tracking branch 'origin/active-record-each-batch' into ↵Grzegorz Bizon2017-07-075-5/+327
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix/gb/stage-id-reference-background-migration * origin/active-record-each-batch: (59 commits) Added EachBatch for iterating tables in batches Extend MR tabs a bit to cover up the avatar holder and collapse icon on scroll Update VERSION to 9.4.0-pre. Add CHANGELOG Fix some N+1 queries in the GET /projects API Don't show auxiliary blob viewer for README when there is no wiki Improve & fix the performance bar UI and behavior Remove orphaned haml files Fixed CHANGELOG.md for 9.3.4 release Add table for merge request commits 34727 Remove two columned layout from project member settings Just draw :legacy_builds Re-enable polling for environments Cleanup minor UX issues in the performance dashboard Upgrade GitLab Workhorse to v2.3.0 Added test for the chart legend Use correct field for label name, fix default for unit to be blank Fix shorter route helpers in production environment Encode certificate-authority-data in base64 Revert "Merge branch 'winh-mr-widget-no-pipeline' into 'master'" ...
| * | | Schedule stage_id background migration in rangesGrzegorz Bizon2017-07-071-9/+8
| | | |
| * | | Reduce a delay between stage_id scheduled migrationsGrzegorz Bizon2017-07-071-1/+1
| | | |
| * | | Do not override original AR5 batching interfaceGrzegorz Bizon2017-07-071-2/+5
| | | |
| * | | Improve specs for background stage_id ref migrationGrzegorz Bizon2017-07-071-6/+5
| | | |
| * | | Perform stage_id ref backgound migration in bulksGrzegorz Bizon2017-07-071-3/+3
| | | |
| * | | Use ActiveRecord 5 batching to schedule bg migrationGrzegorz Bizon2017-07-071-4/+3
| | | |
| * | | Add specs for delayed stage_id background migrationsGrzegorz Bizon2017-07-071-3/+4
| | | |
| * | | Schedule background migration only when it is neededGrzegorz Bizon2017-07-071-4/+6
| | | |
| * | | Find builds that require a migration in batchesGrzegorz Bizon2017-07-071-3/+6
| | | |
| * | | Add initial build stage_id ref background migrationGrzegorz Bizon2017-07-071-0/+10
| | | |
| * | | Add initial stage_id background migration filesGrzegorz Bizon2017-07-071-0/+12
| | | |
* | | | Merge branch 'fix_migrations_in_the_future' into 'master'Douwe Maan2017-07-074-1/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix migrations in the future Closes #34832 See merge request !12719
| * | | | Make wrong migrations idempotentfix_migrations_in_the_futureFelipe Artur2017-07-073-3/+11
| | | | |
| * | | | fix migrations in the futureFelipe Artur2017-07-074-1/+7
| | |_|/ | |/| |
* | | | Merge branch 'master' into '33929-allow-to-enable-perf-bar-for-a-group'Sean McGivern2017-07-075-2/+96
|\ \ \ \ | |/ / / | | | | | | | | # Conflicts: # db/schema.rb
| * | | Merge branch ↵Kamil Trzciński2017-07-073-0/+54
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'feature/intermediate/32568-adding-variables-to-pipelines-schedules' into 'master' Add variables to pipelines schedules Closes #32568 See merge request !12372
| | * \ \ Merge from master(Fix conflicts)Shinya Maeda2017-07-073-0/+53
| | |\ \ \
| | * \ \ \ merge from masterShinya Maeda2017-07-078-15/+380
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | * | | | Fix StaticAnlysysShinya Maeda2017-07-051-1/+1
| | | | | |
| | * | | | pipeline_schedule_variables model/dbShinya Maeda2017-07-051-1/+1
| | | | | |
| | * | | | Fix StaticAnlysysShinya Maeda2017-07-051-1/+1
| | | | | |
| | * | | | pipeline_schedule_variables model/dbShinya Maeda2017-07-053-0/+54
| | | | | |
| * | | | | Native group milestonesFelipe Artur2017-07-073-2/+42
| | |_|/ / | |/| | |
* | | | | Merge branch 'master' into 33929-allow-to-enable-perf-bar-for-a-groupSean McGivern2017-07-077-5/+380
|\ \ \ \ \ | |/ / / /
| * | | | Basic BE changeShinya Maeda2017-07-073-0/+53
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix static-snalysis Move the precedence of group secure variable before project secure variable. Allow project_id to be null. Separate Ci::VariableProject and Ci::VariableGroup Add the forgotton files Add migration file to update type of ci_variables Fix form_for fpr VariableProject Fix test Change the table structure according to the yorik advice Add necessary migration files. Remove unnecessary migration spec. Revert safe_model_attributes.yml Fix models Fix spec Avoid self.variable. Use becomes for correct routing. Use unique index on group_id and key Add null: false for t.timestamps Fix schema version Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable Rename the rest of them Add the rest of files Basic BE change Fix static-snalysis Move the precedence of group secure variable before project secure variable. Allow project_id to be null. Separate Ci::VariableProject and Ci::VariableGroup Add the forgotton files Add migration file to update type of ci_variables Fix form_for fpr VariableProject Fix test Change the table structure according to the yorik advice Add necessary migration files. Remove unnecessary migration spec. Revert safe_model_attributes.yml Fix models Fix spec Avoid self.variable. Use becomes for correct routing. Use unique index on group_id and key Add null: false for t.timestamps Fix schema version Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable Rename the rest of them Add the rest of files Implement CURD Rename codes related to VariableGroup and VariableProject FE part Remove unneccesary changes Make Fe code up-to-date Add protected flag to migration file Protected group variables essential package Update schema Improve doc Fix logic and spec for models Fix logic and spec for controllers Fix logic and spec for views(pre feature) Add feature spec Fixed bugs. placeholder. reveal button. doc. Add changelog Remove unnecessary comment godfat nice catches Improve secret_variables_for arctecture Fix spec Fix StaticAnlysys & path_regex spec Revert "Improve secret_variables_for arctecture" This reverts commit c3216ca212322ecf6ca534cb12ce75811a4e77f1. Use ayufan suggestion for secret_variables_for Use find instead of find_by Fix spec message for variable is invalid Fix spec remove variable.group_id = group.id godffat spec nitpicks Use include Gitlab::Routing.url_helpers for presenter spec
| * | | Add table for merge request commitsSean McGivern2017-07-062-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an ID-less table with just three columns: an association to the merge request diff the commit belongs to, the relative order of the commit within the merge request diff, and the commit SHA itself. Previously we stored much more information about the commits, so that we could display them even when they were deleted from the repo. Since 8.0, we ensure that those commits are kept around for as long as the target repo itself is, so we don't need to duplicate that data in the database.
| * | | Add many foreign keys to the projects tableYorick Peterse2017-07-064-5/+291
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for relying on Rails' "dependent" option for data removal, which is _incredibly_ slow (even when using :delete_all) when deleting large amounts of data. This also ensures data consistency is enforced on DB level and not on application level (something Rails is really bad at). This commit also includes various migrations to add foreign keys to tables that eventually point to "projects" to ensure no rows get orphaned upon removing a project.
* | | Allow to enable the Performance Bar for a group from the admin areaRémy Coutable2017-07-062-1/+11
|/ / | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-07-057-11/+153
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * upstream/master: (149 commits) Revert change to design. Go back to scrollable page Fixes the column widths for the new navigation options in settings Migrate #submodule_url_for to Gitaly Add test example for external commit status retries Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb Fix build for !12300. Log rescued exceptions to Sentry Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths Revert "Merge branch 'revert-12499' into 'master'" Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion Improve the overall UX for the new monitoring dashboard 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 Add Jasmine tests for `OAuthRememberMe` Simplify authentication logic in the v4 users API for !12445. Use stub_application_setting when testing ApplicationHelper#support_url wait_for_requests is not needed when AJAX is not in play ...
| * \ Merge branch 'master' into 'fix/gb/improve-stage-id-foreign-key-migration'fix/gb/improve-stage-id-foreign-key-migrationGrzegorz Bizon2017-07-045-1/+112
| |\ \ | | |/ | | | | | | # Conflicts: # db/schema.rb
| | * Only indent if the subsequent line is a subqueryLin Jen-Shin2017-06-291-12/+12
| | |
| | * Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-291-0/+113
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-ci_variables-environment_scope * upstream/master: (192 commits) Minor edits Job details won't scroll horizontally to show long lines Bring back branches badge to main project page Inserts exact matches of username, email and name to the top of the user search list Limit OpenGraph image size to 64x64 Improve changelog Split up MergeRequestsController Add parent_id back to the tests Make changelog more descriptive Update README.md to reflect where "Secret variables" are located Improve tests text Rename members_count to members_count_with_descendants and expose only to group admins Fix a bug where an invalid sort param value was passed to Gitaly Drop default ORDER scope when calling a find method on a Sortable model Add tests for project import state transition: [:started] => [:finished] Add CHANGELOG Perform housekeeping only when an import of a fresh project is completed Strip trailing whitespace in relative submodule URL Adjust projects spec on namespace fields Add "members_count" and "parent_id" data on namespaces API ...
| | * | Better indent the SQLadd-ci_variables-environment_scope-mysqlLin Jen-Shin2017-06-271-7/+10
| | | |
| | * | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-2712-0/+31
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-ci_variables-environment_scope * upstream/master: (226 commits) Polish sidebar toggle Add changelog entry Fix optional args for POST :id/variables Update CHANGELOG.md for 9.3.1 Bump bootsnap to 1.1.1 Add explicit message when no runners on admin Fix endpoint not being update correctly Remove unused Gitlab::Git::Commit#to_diff argument Drop GFM support for the title of Milestone/MergeRequest in template Handle Promise rejections in mr_widget_pipeline_spec.js Handle missing pipeline in merge request widget Store merge request ref_fetched status in the database Tag a spec as :nested_groups since it fails on MySQL Bump premailer-rails gem to 1.9.7 and its dependencies to prevent network retrieval of assets Truncate long job names in environment view; wrap author to next line Replaces 'dashboard/merge_requests' spinach with rspec Update GITLAB_SHELL_VERSION to 5.0.6 Fix click not being able to find the current element to use trigger('click') instead make accepting mrs more prominent Remove last references to job for pipeline charts ...
| | * | | Rename instead of delete, feedback:Lin Jen-Shin2017-06-272-45/+35
| | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12363#note_33449374
| | * | | Add back project_id index for MySQL if revertingLin Jen-Shin2017-06-231-2/+7
| | | | |
| | * | | Remove old project_id index and make sure mysql workLin Jen-Shin2017-06-233-5/+34
| | | | |
| | * | | We cannot delete the index for MySQL, because fkLin Jen-Shin2017-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | foreign key, I mean.
| | * | | Remove duplicated records and add unique constraintLin Jen-Shin2017-06-224-2/+70
| | | | |
| | * | | Add environment_scope column to ci_variables tableLin Jen-Shin2017-06-212-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is merely to make CE and EE more compatible. See the EE merge request at: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2112
| * | | | Check foreign keys in migration in separate conditionalGrzegorz Bizon2017-07-041-1/+15
| | | | |