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/lib/tasks
AgeCommit message (Collapse)Author
2016-07-26Disable MySQL foreign key checks before dropping all tablesDrew Blessing
2016-07-20Merge branch 'migration-downtime-tags' into 'master' Robert Speicher
Added checks for migration downtime This adds a set of checks that check/list which migrations require downtime (or not). It also comes with a CI task that fails should a migration not be tagged properly. Fixes #14545 See merge request !4911
2016-07-20Use limit parameter rather than hardcoded valueM. Ricketts
2016-07-20Added checks for migration downtimeYorick Peterse
These new checks can be used to check if migrations require downtime or not (as tagged by their authors). In CI this compares the current branch with master so migrations added by merge requests are automatically verified. To check the migrations added since a Git reference simply run: bundle exec rake gitlab:db:downtime_check[GIT_REF]
2016-07-19Merge branch 'deployment-tracking' into 'master' Rémy Coutable
Added Rake task for tracking deployments ## What does this MR do? This MR adds a Rake task to track the current version of GitLab in InfluxDB. ## Are there points in the code the reviewer needs to double check? We may want to document this Rake task in some Markdown file, but I'm not sure what the best place for this would be. ## Why was this MR needed? We want to have a more accurate overview of when deployments occurred. ## What are the relevant issue numbers? https://gitlab.com/gitlab-com/infrastructure/issues/98 ## 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) - [x] ~~API support added~~ - [x] 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) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5320
2016-07-19Added Rake task for tracking deploymentsYorick Peterse
This simply inserts the current GitLab version in the "deployments" measurement. Fixes gitlab-com/infrastructure#98
2016-07-18Upgrade Gemojione from 2.6.1 to 3.0.1.Connor Shea
This adds the 2016 emoji as well as support for using SVG images instead of PNGs. It also fixes a number of incorrectly categorized emoji and other minor issues. Upgrade Rake task for Gemojione 3.0.0 and generate sprites. Upgrade aliases.json by pulling down index.json from the gemojione repository and running the generate_aliases.rb file. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md#v301-2016-07-16 For the specific emoji added to the Unicode standard, see: http://emojione.com/releases/2.2.4/ Huge kudos to Jonathan Wiesel (@jonathanwiesel) for his work on the gemojione gem!
2016-07-05Merge branch 'update-gemoji' into 'master' Robert Speicher
Add lib/gitlab/emoji.rb instead of gitlab_emoji gem and upgrade Gemojione - No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Unless there's a particularly good reason we were using the gem? - Fixes the Rake task since it broke after all the AwardEmoji changes. - Update gemojione to 2.6.1. Spring Update changes! http://emojione.com/releases/#2.2.0 See merge request !4919
2016-06-30Merge branch 'fix_restore_warning' into 'master' Rémy Coutable
Fix restore warning message ## What does this MR do? Fix the restore Rake task so it properly outputs the database warning. This is a pretty important warning and it was not even being output. After this fix, the output looks like the screenshot below. ![Screen_Shot_2016-06-28_at_3.53.46_PM](/uploads/d250189d39fcacd0c8ec0aacf9cd930d/Screen_Shot_2016-06-28_at_3.53.46_PM.png) See merge request !4980
2016-06-30Merge branch 'remove-converalls-gem' into 'master' Dmitriy Zaporozhets
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
2016-06-30Remove coveralls as its unusedZ.J. van de Weg
2016-06-30Create (if necessary) and link the gitlab-shell secret file on the rake ↵Alejandro Rodríguez
install task
2016-06-30Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez
2016-06-29Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.Connor Shea
No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
2016-06-28Fix restore warning messageDrew Blessing
2016-06-21added nice to have - rake task and some changes to docsJames Lopez
2016-06-20fixup! override content methodZ.J. van de Weg
2016-06-20Incorporate reviewZ.J. van de Weg
2016-06-20Run rake gitlab:update_templatesZ.J. van de Weg
2016-06-20Implement backend gitlab ci dropdownZ.J. van de Weg
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.
2016-06-20Refactor Gitlab::GitignoresZJ van de Weg
2016-06-10Properly quote table name in Rake task for MySQL and PostgreSQL compatibilityStan Hu
!4318 broke the gitlab:db:drop_tables functionality for PostgreSQL. Closes #15259
2016-06-10Merge branch 'fix_issue_15259' into 'master' Stan Hu
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
2016-06-07Fix missed colorize methods.Connor Shea
2016-06-03Replace colorize gem with rainbow.Connor Shea
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
2016-05-27Fix bug with SQL syntax error during backup restorationDaniel Beyer
closes #15259
2016-05-25Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney
specifically for the schema_migrations table
2016-05-25Update hash syntax and add changelog for the gitlab:db:configure rake taskDJ Mountney
2016-05-25Add a gitlab:db:configure rake task to handle conditionally seeding or ↵DJ Mountney
migrating the database.
2016-05-25Merge branch 'fix-registry-backups' into 'master' Douwe Maan
Fix backups if registry is disabled Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/17749 See merge request !4263
2016-05-23Add rubocop-rspecRobert Speicher
Almost all cops are starting as disabled until we can fix their violations.
2016-05-23Fix backups if registry is disabledKamil Trzcinski
2016-05-20Update API and fetching taskZeger-Jan van de Weg
2016-05-20Backend for a gitignores dropdownZeger-Jan van de Weg
2016-05-19Fixed advice on invalid permissions on upload pathJazz
2016-05-17Added backup of container registryKamil Trzcinski
2016-05-10Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse
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
2016-05-10Remove the annotate rake taskJeroen van Baarsen
2016-05-09Merge branch 'cascade_drop' into 'master' Robert Speicher
Add if exists to drop command Add `IF EXISTS` as a precaution. Related to gitlab-org/gitlab-ce!4020 See merge request !4100
2016-05-09Add if exists to drop commandDrew Blessing
2016-05-06Merge branch 'annotate-models' into 'master' Douwe Maan
Update annotations on models See merge request !3962
2016-05-06Auto annotate models on migrationZeger-Jan van de Weg
[ci skip]
2016-05-03Rake drop tables with cascadeDrew Blessing
2016-04-14Use rake db:reset instead of db:setupYorick Peterse
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".
2016-04-12Merge branch 'fix_emojis_not_showing_in_autocomplete' into 'master' Robert Speicher
Fix emoji aliases not showing in autocomplete closes #14948 See merge request !3595
2016-04-09fix emoji aliases not showing in autocompleteArinde Eniola
2016-04-07Put CACHE_NAMESPACE in the Gitlab::Redis moduleJacob Vosmaer
2016-04-04Add Gitlab::Redis connection poolJacob Vosmaer
2016-03-30Merge branch 'precompile-emoji-urls' into 'master' Dmitriy Zaporozhets
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
2016-03-30Pre-calculate Emoji digestsYorick Peterse
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