summaryrefslogtreecommitdiff
path: root/db/schema.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add organization field to user profileDmitriy Zaporozhets2016-09-271-1/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add index on labels titleAhmad Sherif2016-09-231-1/+2
|
* Update db/schema.rb per most recent migrationsupdate-db-schemaYorick Peterse2016-09-211-4/+5
| | | | | It seems this wasn't updated properly when migrations were added in a previous commit.
* Update schema.rbTimothy Andrew2016-09-201-12/+12
|
* Merge remote-tracking branch 'origin/master' into 21170-cycle-analyticsTimothy Andrew2016-09-201-3/+6
|\
| * Merge branch 'master' into per-build-tokenKamil Trzcinski2016-09-191-4/+5
| |\
| | * Added missing db/schema changesKamil Trzcinski2016-09-191-1/+2
| | |
| | * Merge branch 'increase_artifact_size_column' into 'master' Yorick Peterse2016-09-161-2/+2
| | |\ | | | | | | | | | | | | | | | | Increase ci_builds artifacts_size column to 8-byte integer to allow larger files See merge request !6333
| | | * Increase ci_builds artifacts_size column to 8-byte integer to allow larger filesDrew Blessing2016-09-151-2/+2
| | | |
| | * | Added group-specific setting for LFS.Patricio Cano2016-09-151-0/+1
| | |/ | | | | | | | | | Groups can enable/disable LFS, but this setting can be overridden at the project level. Admin only
| * | Merge remote-tracking branch 'origin/master' into per-build-tokenKamil Trzcinski2016-09-151-2/+2
| |\ \ | | |/ | | | | | | | | | # Conflicts: # db/schema.rb
| | * Move pushes_since_gc to Redispushes-since-gc-redisYorick Peterse2016-09-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves tracking of the pushes since the last Git GC from PostgreSQL to Redis. This reduces the number of writes on the "projects" table. This in turn reduces the vacuuming overhead. The lease used for incrementing the counter has been removed. This lease was mostly put in place to prevent high database load but this isn't needed anymore due to the counter now being stored in Redis. Fixes gitlab-org/gitlab-ce#22125
| * | Update db/schema.rbKamil Trzcinski2016-09-131-1/+3
| |/
| * Fix DB schema to match latest migrationsh-update-db-schemaStan Hu2016-09-081-1/+1
| |
* | Improve performance of the cycle analytics page.Timothy Andrew2016-09-151-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. These changes bring down page load time for 100 issues from more than a minute to about 1.5 seconds. 2. This entire commit is composed of these types of performance enhancements: - Cache relevant data in `IssueMetrics` wherever possible. - Cache relevant data in `MergeRequestMetrics` wherever possible. - Preload metrics 3. Given these improvements, we now only need to make 4 SQL calls: - Load all issues - Load all merge requests - Load all metrics for the issues - Load all metrics for the merge requests 4. A list of all the data points that are now being pre-calculated: a. The first time an issue is mentioned in a commit - In `GitPushService`, find all issues mentioned by the given commit using `ReferenceExtractor`. Set the `first_mentioned_in_commit_at` flag for each of them. - There seems to be a (pre-existing) bug here - files (and therefore commits) created using the Web CI don't have cross-references created, and issues are not closed even when the commit title is "Fixes #xx". b. The first time a merge request is deployed to production When a `Deployment` is created, find all merge requests that were merged in before the deployment, and set the `first_deployed_to_production_at` flag for each of them. c. The start / end time for a merge request pipeline Hook into the `Pipeline` state machine. When the `status` moves to `running`, find the merge requests whose tip commit matches the pipeline, and record the `latest_build_started_at` time for each of them. When the `status` moves to `success`, record the `latest_build_finished_at` time. d. The merge requests that close an issue - This was a big cause of the performance problems we were having with Cycle Analytics. We need to use `ReferenceExtractor` to make this calculation, which is slow when we have to run it on a large number of merge requests. - When a merge request is created, updated, or refreshed, find the issues it closes, and create an instance of `MergeRequestsClosingIssues`, which acts as a join model between merge requests and issues. - If a `MergeRequestsClosingIssues` instance links a merge request and an issue, that issue closes that merge request. 5. The `Queries` module was changed into a class, so we can cache the results of `issues` and `merge_requests_closing_issues` across various cycle analytics stages. 6. The code added in this commit is untested. Tests will be added in the next commit.
* | Merge remote-tracking branch 'origin/master' into 21170-cycle-analyticsTimothy Andrew2016-09-071-46/+40
|\ \ | |/
| * Merge branch 'master' of https://dev.gitlab.org/gitlab/gitlabhqRémy Coutable2016-09-051-24/+26
| |\ | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| | * Add migration to set confidential issues events on web hooksDouglas Barbosa Alexandre2016-09-011-1/+1
| | |
| | * Add option to confidential issues events to trigger servicesDouglas Barbosa Alexandre2016-08-311-12/+13
| | |
| | * Add option to confidential issues events to trigger WebhooksDouglas Barbosa Alexandre2016-08-311-11/+12
| | |
| * | Project tools visibility levelFelipe Artur2016-09-011-6/+14
| |/
| * Remove not-null constraint on lock_version column if it existsStan Hu2016-08-301-1/+1
| | | | | | | | Closes #21678
| * Merge branch 'project-specific-lfs' into 'master' Robert Speicher2016-08-301-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added project specific enable/disable setting for LFS ## What does this MR do? Adds project specific enable/disable setting for LFS ## What are the relevant issue numbers? Needed for #18092 See merge request !5997
| | * Renamed `enable_lfs` to `lfs_enabled` for the Project field, and related fixes.project-specific-lfsPatricio Cano2016-08-301-1/+1
| | |
| | * Added project specific enable/disable setting for LFSPatricio Cano2016-08-301-0/+1
| | |
| * | Remove default value for lock_versionValery Sizov2016-08-301-1/+1
| |/
| * Drop unused CI tables and fileszj-remove-unused-ci-tablesZ.J. van de Weg2016-08-261-18/+1
| | | | | | | | | | | | | | | | These tables, web hooks and services, are unused but where not dropped with the commits d5c91bb9a601a1a344d94763654f0b0996857497 and 2988e1fbf50b3c9e803a9358933e3e969e64dcc3. The file was left too, but never called.
* | Add the "Review" cycle analytics section.Timothy Andrew2016-08-261-0/+2
| |
* | Add the "Code" Cycle Analytics section.Timothy Andrew2016-08-261-1/+12
| | | | | | | | | | | | | | | | | | 1. Record the `wip_flag_first_removed_at` and `first_assigned_to_user_other_than_author` metrics for a merge request. Use a `merge_request_metrics` table, similar to the one for `issues`. Metrics are recorded `after_save`. 2. Move larger queries to a `CycleAnalytics::Queries` module.
* | Add an `Issue::Metrics` model.Timothy Andrew2016-08-261-1/+12
|/ | | | | - And store the `first_associated_with_milestone_at` and `first_added_to_board_at` times, when an issue is saved.
* Add lock_version to merge_requests tableadd-lock-version-to-mr-schemaStan Hu2016-08-251-0/+1
| | | | | | | Closes #21465 It appears this column was mistakenly omitted in !5623 due to rebasing issues in earlier comments.
* Merge branch 'dz-merge-request-version'Douwe Maan2016-08-251-2/+1
|\
| * Fix db schema via db:migrate:resetDmitriy Zaporozhets2016-08-221-18/+16
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Merge branch 'master' into dz-merge-request-versionDmitriy Zaporozhets2016-08-221-2/+7
| |\ | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * \ Merge branch 'master' into dz-merge-request-versionDmitriy Zaporozhets2016-08-191-4/+45
| |\ \ | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * \ \ Merge branch 'master' into dz-merge-request-versionDmitriy Zaporozhets2016-08-151-61/+15
| |\ \ \ | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | Change merge request diff index to be not uniqDmitriy Zaporozhets2016-08-021-7/+7
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | Change merge_error column from string to text typeStan Hu2016-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases, the artificial 255-character limit would cause an error in MergeWorker. Closes #20593
* | | | | Revert the revert of Optimistic Lockingrevert_revert_issuable_lockValery Sizov2016-08-221-15/+17
| |_|_|/ |/| | |
* | | | Merge branch 'fix-diff-note-discussion-id' into 'master' Rubén Dávila Santos2016-08-201-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call `set_discussion_id` again in DiffNote `before_validation` because the order is important See merge request !5913
| * | | | Call `set_discussion_id` again in DiffNote `before_validation` because the ↵Douwe Maan2016-08-191-1/+2
| | | | | | | | | | | | | | | | | | | | order is important
* | | | | Support integration with Koding (online IDE)Gokmen Goksel2016-08-191-0/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Koding: #index: landing page for Koding integration If enabled it will provide a link to open remote Koding instance url for now we are also providing the sneak preview video for how integration works in detail. Repository: check whether .koding.yml file exists on repository Projects: landing page: show Run in IDE (Koding) button if repo has stack file Projects: MR: show Run in IDE Koding button if repo has stack file on active branch ProjectHelpers: add_koding_stack: stack generator for provided project With this helper we will auto-generate the required stack template for a given project. For the feature we can request this base template from the running Koding instance on integration. Currently this will provide users to create a t2.nano instance on aws and it'll automatically configures the instance for basic requirements. Projects: empty state and landing page provide shortcuts to create stack projects_helper: use branch on checkout and provide an entry point This ${var.koding_queryString_branch} will be replaced with the branch provided in query string which will allow us to use same stack template for different branches of the same repository. ref: https://github.com/koding/koding/pull/8597/commits/b8c0e43c4c24bf132670aa8a3cfb0d634acfd09b projects_helper: provide sha info in query string to use existing vms With this change we'll be able to query existing vms on Koding side based on the commit id that they've created. ref: https://github.com/koding/koding/pull/8597/commits/1d630fadf31963fa6ccd3bed92e526761a30a343 Integration: Docs: Koding documentation added Disable /koding route if integration is disabled Use application settings to enable Koding Projects_helper: better indentation with strip_heredoc usage Projects_helper: return koding_url as is if there is no project provided current_settings: set koding_enabled: false by default Koding_Controller: to render not_found once integration is disabled Dashboard_specs: update spec for Koding enabled case Projects_Helper: make repo dynamic ref: https://github.com/koding/koding/pull/8597/commits/4d615242f45aaea4c4986be84ecc612b0bb1514c Updated documentation to have right format
* | | | Merge branch 'master' into 'expiration-date-on-memberships'Sean McGivern2016-08-191-2/+6
|\ \ \ \ | | |_|/ | |/| | | | | | # Conflicts: # db/schema.rb
| * | | Merge branch 'master' into diff-line-comment-vuejsDouwe Maan2016-08-181-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * \ \ \ Merge branch 'master' into diff-line-comment-vuejsConnor Shea2016-08-171-0/+24
| |\ \ \ \
| * | | | | Store discussion_id on Note for faster discussion lookup.Douwe Maan2016-08-171-2/+4
| | | | | |
| * | | | | Merge branch 'master' into diff-line-comment-vuejsConnor Shea2016-08-161-2/+14
| |\ \ \ \ \
| * | | | | | Remove accidental addition of table and index.Connor Shea2016-08-161-10/+0
| | | | | | |
| * | | | | | Resolve feedback.Connor Shea2016-08-151-0/+10
| | | | | | |
| * | | | | | Merge branch 'master' into diff-line-comment-vuejsDouwe Maan2016-08-121-55/+7
| |\ \ \ \ \ \ | | | |_|_|_|/ | | |/| | | |