summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into issue_3945issue_3945Rubén Dávila2016-01-202-0/+8
|\
| * Merge branch 'feature/check-against-rbl-only' into 'master'Robert Speicher2016-01-202-1/+9
| |\ | | | | | | | | | | | | | | | | | | | | | Split from !2455 References #9092 See merge request !2515
| | * Add IP blocking against DNSBL at sign-upfeature/check-against-rbl-onlyTomasz Maczukin2016-01-202-1/+9
| | |
* | | Merge branch 'master' into issue_3945Douwe Maan2016-01-202-0/+10
|\ \ \ | |/ /
| * | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Jeroen Nijhof2016-01-205-13/+108
| |\ \ | | |/ | | | | | | | | | | | | | | | sentry-integration Conflicts: db/schema.rb
| * | Add sentry integrationJeroen Nijhof2016-01-182-1/+11
| | |
* | | Save and use actual diff base commit for MR diff highlightingDouwe Maan2016-01-202-14/+20
| |/ |/|
* | Merge branch 'master' into user-ldap-emailDouwe Maan2016-01-193-12/+75
|\ \ | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * | Greatly improve external_issue_tracker performanceimprove-project-external-issue-trackersYorick Peterse2016-01-193-13/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This greatly improves the performance of Project#external_issue_tracker by moving most of the fields queried in Ruby to the database and letting the database handle all logic. Prior to this change the process of finding an external issue tracker was along the lines of the following: 1. Load all project services into memory. 2. Reduce the list to only services where "issue_tracker?" returns true 3. Reduce the list from step 2 to service where "default?" returns false 4. Find the first service where "activated?" returns true This has to two big problems: 1. Loading all services into memory only to reduce the list down to a single item later on is a waste of memory (and slow timing wise). 2. Calling Array#select followed by Array#reject followed by Array#find allocates extra objects when this really isn't needed. To work around this the following service fields have been moved to the database (instead of being hardcoded): * category * default This in turn means we can get the external issue tracker using the following query: SELECT * FROM services WHERE active IS TRUE AND default IS FALSE AND category = 'issue_tracker' AND project_id = XXX LIMIT 1 This coupled with memoizing the result (just as before this commit) greatly reduces the time it takes for Project#external_issue_tracker to complete. The exact reduction depends on one's environment, but locally the execution time is reduced from roughly 230 ms to only 2 ms (= a reduction of almost 180x). Fixes gitlab-org/gitlab-ce#10771
* | | Allow LDAP users to change their email if it was not set by the LDAP serverDouwe Maan2016-01-192-1/+32
|/ /
* | Add limit change for 'data' column in 'events' when using MySQLTomasz Maczukin2016-01-181-0/+1
|/
* Raise hook url limitKirilll Zaycev2016-01-152-9/+14
|
* Seed db on development with artifacts metadata fixtureGrzegorz Bizon2016-01-141-5/+18
|
* Add artifacts metadata uploader filedGrzegorz Bizon2016-01-142-0/+6
| | | | | Artifacts metadata field will be used to store a filename of gzipped file containing metadata definition for given artifacts archive.
* Seed db with CI build artifacts using a zip archiveGrzegorz Bizon2016-01-141-1/+1
|
* Remove artifacts metadata column from databaseGrzegorz Bizon2016-01-142-12/+0
|
* Improve CI builds seederGrzegorz Bizon2016-01-141-22/+59
|
* Add database seed for build artifactsGrzegorz Bizon2016-01-141-7/+18
|
* Improve CI builds fixturesGrzegorz Bizon2016-01-141-8/+21
|
* Add initial fixtures for CI buildsGrzegorz Bizon2016-01-141-0/+12
|
* Add artifacts metadata field to `ci_builds`Grzegorz Bizon2016-01-141-0/+5
|
* Remove alert_type attribute from BroadcastMessageRobert Speicher2016-01-132-1/+5
|
* Make the metrics sampler interval configurableYorick Peterse2016-01-132-253/+261
|
* Added an index on milestones.titleYorick Peterse2016-01-071-0/+5
| | | | | | Certain pages (e.g. the group wide issues page) filter miletones by their title. Without an index this will result in a sequence scan on a large dataset increasing the total loading time of a page.
* Remove InfluxDB username/passwordremove-influxdb-credentialsYorick Peterse2016-01-062-11/+15
| | | | | InfluxDB over UDP doesn't use authentication, thus there's no need for these settings.
* markdown fixesAndriy Dyadyura2016-01-051-260/+260
|
* remove public field from namespace and refactoringnamespace-clean_upValery Sizov2016-01-042-5/+9
|
* Write to InfluxDB directly via UDPYorick Peterse2015-12-293-41/+51
| | | | | | | | | | | | | This removes the need for Sidekiq and any overhead/problems introduced by TCP. There are a few things to take into account: 1. When writing data to InfluxDB you may still get an error if the server becomes unavailable during the write. Because of this we're catching all exceptions and just ignore them (for now). 2. Writing via UDP apparently requires the timestamp to be in nanoseconds. Without this data either isn't written properly. 3. Due to the restrictions on UDP buffer sizes we're writing metrics one by one, instead of writing all of them at once.
* reCAPTCHA is configurable through Admin Settings, no reload needed.Gabriel Mazetto2015-12-282-1/+13
|
* Move InfluxDB settings to ApplicationSettingrelocate-influxdb-settingsYorick Peterse2015-12-282-1/+27
|
* Grace period support for TFAGabriel Mazetto2015-12-242-0/+8
|
* WIP require two factor authenticationGabriel Mazetto2015-12-242-0/+10
|
* Merge branch 'emoji-picker-fix' into 'master' Valery Sizov2015-12-242-1/+16
|\ | | | | | | | | | | | | Emoji picker: better alias handling related to https://gitlab.com/gitlab-org/gitlab-ce/issues/3576 See merge request !2198
| * Emoji picker: better alias handlingValery Sizov2015-12-242-1/+16
| |
* | Make migrations reversibleKamil Trzcinski2015-12-237-5/+12
|/
* Merge branch 'add_email_unlock' into 'master' Robert Speicher2015-12-212-0/+6
|\ | | | | | | | | | | | | | | | | | | | | Allow account unlock via email We see a lot of users get confused about what it means when your account gets locked. Many try to reset their password and are still faced with a lockout. With this change, users receive an email that allows them to unlock their account immediately. The previous behavior where the account is auto-unlocked after a time also still works. See merge request !2049
| * Allow account unlock via emailDrew Blessing2015-12-142-0/+6
| |
* | Backport JIRA serviceDrew Blessing2015-12-181-0/+50
| |
* | Fix ci_projects migration by using the value only from latest row [ci skip]Kamil Trzcinski2015-12-171-1/+2
|/ | | | | This is needed, because for some projects we have duplicate ci_projects. This was introduced by lack of DB uniqueness on ci_projects.gitlab_id.
* Merge branch 'master' into ci/persist-registration-tokenGrzegorz Bizon2015-12-142-4/+8
|\ | | | | | | | | | | | | | | | | * master: Move CI admin builds and runners specs to correct directory Fix 500 when viewing specific runners on runners page Fix Ci::Project migration not migrating columns that cannot be NULL Fix MySQL migration of CI emails Minor fix in flow 'Merge when build succeeds'
| * Fix Ci::Project migration not migrating columns that cannot be NULL [ci skip]Kamil Trzcinski2015-12-141-3/+3
| |
| * Fix MySQL migration of CI emails [ci skip]Kamil Trzcinski2015-12-141-1/+5
| |
* | Merge branch 'master' into ci/persist-registration-tokenGrzegorz Bizon2015-12-1411-9/+232
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) Fix runners admin view Fix migrations Rename mention of gitlab-git-http-server to gitlab-workhorse Bump Redis requirement to 2.8 for Sidekiq 4 requirements Fix wording on runner setup page add details on how to change saml button label Fix tests Move awards back to gray panel and few improvements to sidebar Few UI improvements to new sidebar implementation Fix tests for new issuable sidebar Update changelog Implement new sidebar for merge request page Make edit link on issuable sidebar works Redesign issue page for new sidebar Move awards css to separate file Implement issuable sidebar partial Update CHANGELOG Clarify cache behavior Run builds from projects with enabled CI Use Gitlab::Git instead of Ci::Git ... Conflicts: db/schema.rb
| * Merge branch 'ci-project-migrate' into 'master' Kamil Trzciński2015-12-146-9/+103
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci Project migrate - This doesn't migrate: allow_git_fetch, coverage_regex, timeout. Since this are project configuration settings I would propose to migrate them to `.gitlab-ci.yml`. - This requires offline migrations. - It simplifies database models making all CI objects to be attached to: Project. - It removes Ci::Project, but makes /ci/projects working by adding method: Project.find_by_ci_id for backward compatibility (badges, triggers). - We should add default `timeout` to Application Settings. - It misses specs. - It is based on ci-services-migrate for now. - It removes CI events. - It removes administrator CI projects overview. - It removes CI application settings. In 8.4 or 8.5 we can remove redundant tables and columns. See merge request !1987
| | * Rename columns and rename migrationsKamil Trzcinski2015-12-116-3/+5
| | |
| | * Add runners tokenKamil Trzcinski2015-12-113-5/+8
| | |
| | * Migrate CI::Project to ProjectKamil Trzcinski2015-12-116-7/+96
| | |
| * | Fix migrations [ci skip]Kamil Trzcinski2015-12-144-10/+19
| |/
| * Enhance migrate CI emailsKamil Trzcinski2015-12-111-4/+23
| |
| * Migrate SlackService and HipChat serviceKamil Trzcinski2015-12-104-1/+66
| |