summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'remove-converalls-gem' into 'master' Dmitriy Zaporozhets2016-06-301-3/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove coveralls as its unused This gem is unused so could be removed. @dzaporozhets @connorshea We've discussed this some time ago on Slack See merge request !5001
| * | Remove coveralls as its unusedremove-converalls-gemZ.J. van de Weg2016-06-301-3/+1
| |/
* | Create (if necessary) and link the gitlab-shell secret file on the rake ↵shardsAlejandro Rodríguez2016-06-291-0/+2
| | | | | | | | install task
* | Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-297-172/+191
|/
* added nice to have - rake task and some changes to docsJames Lopez2016-06-211-0/+13
|
* fixup! override content methodZ.J. van de Weg2016-06-201-1/+1
|
* Incorporate reviewZ.J. van de Weg2016-06-201-8/+10
|
* Run rake gitlab:update_templatesZ.J. van de Weg2016-06-201-1/+1
|
* Implement backend gitlab ci dropdownZ.J. van de Weg2016-06-201-32/+23
| | | | | | | This commit builds on the groundwork in ee008e300b1ec0abcc90e6a30816ec0754cea0dd, which refactored the backend so the same code could be used for new dropdowns. In this commit its used for templates for the `.gitlab-ci.yml` files.
* Refactor Gitlab::GitignoresZJ van de Weg2016-06-202-46/+61
|
* Properly quote table name in Rake task for MySQL and PostgreSQL compatibilityfix-issue-15259-postgresqlStan Hu2016-06-091-1/+1
| | | | | | !4318 broke the gitlab:db:drop_tables functionality for PostgreSQL. Closes #15259
* Merge branch 'fix_issue_15259' into 'master' Stan Hu2016-06-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug with SQL syntax error during backup restoration ## What does this MR do? It properly escapes the table name in the `DROP TABLE IF EXISTS ...` statement used during restore of a backup. ## Are there points in the code the reviewer needs to double check? Please check compatibility with PostgreSQL ## Why was this MR needed? Fix an issue with backups can not be restored if MySQL is used as database for GitLab. ## What are the relevant issue numbers? #15259 ## Screenshots (if relevant) - See merge request !4318
| * Fix bug with SQL syntax error during backup restorationDaniel Beyer2016-05-271-1/+1
| | | | | | closes #15259
* | Fix missed colorize methods.Connor Shea2016-06-061-1/+1
| |
* | Replace colorize gem with rainbow.Connor Shea2016-06-0315-189/+189
|/ | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney2016-05-251-1/+1
| | | | specifically for the schema_migrations table
* Update hash syntax and add changelog for the gitlab:db:configure rake taskDJ Mountney2016-05-251-2/+1
|
* Add a gitlab:db:configure rake task to handle conditionally seeding or ↵DJ Mountney2016-05-251-0/+11
| | | | migrating the database.
* Merge branch 'fix-registry-backups' into 'master' Douwe Maan2016-05-251-6/+14
|\ | | | | | | | | | | | | Fix backups if registry is disabled Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/17749 See merge request !4263
| * Fix backups if registry is disabledKamil Trzcinski2016-05-231-6/+14
| |
* | Add rubocop-rspecrs-rubocop-rspecRobert Speicher2016-05-231-0/+1
|/ | | | | Almost all cops are starting as disabled until we can fix their violations.
* Update API and fetching taskZeger-Jan van de Weg2016-05-201-12/+32
|
* Backend for a gitignores dropdownZeger-Jan van de Weg2016-05-201-0/+26
|
* Fixed advice on invalid permissions on upload pathJazz2016-05-191-1/+1
|
* Added backup of container registryKamil Trzcinski2016-05-161-0/+21
|
* Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse2016-05-101-44/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the annotate gem and delete old annotations In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 /cc @yorickpeterse See merge request !4099
| * Remove the annotate rake taskJeroen van Baarsen2016-05-101-44/+0
| |
* | Merge branch 'cascade_drop' into 'master' Robert Speicher2016-05-091-1/+3
|\ \ | |/ |/| | | | | | | | | Add if exists to drop command Add `IF EXISTS` as a precaution. Related to gitlab-org/gitlab-ce!4020 See merge request !4100
| * Add if exists to drop commandDrew Blessing2016-05-091-1/+3
| |
* | Merge branch 'annotate-models' into 'master' Douwe Maan2016-05-061-0/+44
|\ \ | |/ |/| | | | | | | | | Update annotations on models See merge request !3962
| * Auto annotate models on migrationannotate-modelsZeger-Jan van de Weg2016-05-061-0/+44
| | | | | | | | [ci skip]
* | Rake drop tables with cascadeDrew Blessing2016-05-031-1/+4
|/
* Use rake db:reset instead of db:setupYorick Peterse2016-04-141-1/+1
| | | | | | | | | | | | Using db:reset ensures existing tables are first dropped. This in turn ensures that we can drop tables regardless of any foreign key constraints. While CE currently doesn't have any foreign keys EE defines the following relation: remote_mirrors.project_id -> projects.id MySQL will complain whenever you try to drop the "projects" table first even when using "DROP TABLE ... CASCADE".
* Merge branch 'fix_emojis_not_showing_in_autocomplete' into 'master' Robert Speicher2016-04-121-2/+13
|\ | | | | | | | | | | | | Fix emoji aliases not showing in autocomplete closes #14948 See merge request !3595
| * fix emoji aliases not showing in autocompletefix_emojis_not_showing_in_autocompleteArinde Eniola2016-04-091-2/+13
| |
* | Put CACHE_NAMESPACE in the Gitlab::Redis moduleJacob Vosmaer2016-04-071-1/+1
| |
* | Add Gitlab::Redis connection poolJacob Vosmaer2016-04-041-12/+13
|/
* Merge branch 'precompile-emoji-urls' into 'master' Dmitriy Zaporozhets2016-03-301-14/+34
|\ | | | | | | | | | | | | | | | | Pre-calculate Emoji digests cc @dzaporozhets @rspeicher @marin Do you happen to know if we allow users to configure asset hosts anywhere in Omnibus and such? I've not been able to find any reference to "asset_host" so it seems we don't allow this (which is a good thing as this simplifies the code). See merge request !3458
| * Pre-calculate Emoji digestsprecompile-emoji-urlsYorick Peterse2016-03-301-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By pre-calculating the digests we can manually construct the emoji URLs, removing the need for using Rails' asset URL helpers. The reason we don't want to use these helpers for Emojis is two-fold: 1. Rails' image_url() method is slow, really slow. For one it _might_ have to calculate digests but it also performs a lot of other intensive operations (judging by the source code and based on measuring timings). 2. We have a lot of Emoji which coupled with the above can result in it taking minutes to load Emoji autocomplete data. Using this pre-calculation setup generating the digests takes around 7 seconds (including the time it takes to start Rails/Rake), and only around 600 milliseconds to load _all_ the autocomplete data of a project (measured locally). This commit _does_ change the Emoji URLs from absolute to relative URLs as these are much easier to generate. To update the Emoji data simply run: rake gemojione:digests Then commit any changes. Fixes gitlab-org/gitlab-ce#14009
* | Improve and finish the fallback to the In-Reply-To and References header for ↵2364-fallback-to-in-reply-to-headerRémy Coutable2016-03-251-15/+0
|/ | | | | | | | | | | | | | | | the reply-by-email feature A few things to note: - The IncomingEmail feature is now enabled even without a correctly-formatted sub-address - Message-ID for new thread mail are kept the same so that subsequent notifications to this thread are grouped in the thread by the email service that receives the notification (i.e. In-Reply-To of the answer == Message-ID of the first thread message) - To maximize our chance to be able to retrieve the reply key, we look for it in the In-Reply-To header and the References header - The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]" - Improve docs thanks to Axil
* Reload the schema before restoring a database backupDrew Blessing2016-03-212-8/+61
|
* Follow the CSS Style Guide rules for unitless zero values.connorshea2016-03-161-0/+1
| | | | | | | | Updated Emoji Rake task to conform to style guide. Discussed in #14299. [ci skip]
* Merge branch 'master' into git-2-7-3Douwe Maan2016-03-151-0/+10
|\
| * Add SCSS Lint, CSSComb config file, run SCSS Lint in GitLab CI, add ↵connorshea2016-03-141-0/+10
| | | | | | | | | | | | documentation for SCSS Style Guide. See !3069 for more information.
* | Bump Git version requirement to 2.7.3Douwe Maan2016-03-151-1/+1
|/
* Merge branch 'remove-benchmark-suite' into 'master' Douwe Maan2016-03-111-11/+2
|\ | | | | | | | | | | | | Removed benchmark suite and its documentation Related issue: gitlab-org/gitlab-ce#13718 See merge request !3137
| * Removed benchmark suite and its documentationremove-benchmark-suiteYorick Peterse2016-03-101-11/+2
| | | | | | | | | | | | | | | | | | The rationale for this can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/13718 but in short the benchmark suite no longer serves a good purpose now that we have proper production monitoring in place. Fixes gitlab-org/gitlab-ce#13718
* | web hooks to webhooksashleys2016-03-101-7/+7
| |
* | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵redis-config-parserJacob Vosmaer2016-03-101-0/+121
|\ \ | |/ | | | | redis-config-parser
| * Merge branch 'rs-sprite-task' into 'master' Dmitriy Zaporozhets2016-03-091-0/+121
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `gemojione:sprite` Rake task This task will generate a standard and Retina sprite of all of the current Gemojione Emojis, with the accompanying SCSS map. It will not appear in `rake -T` output, and the dependent gems are not included in the Gemfile by default, because this task will only be needed occasionally. See merge request !3130