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
AgeCommit message (Collapse)Author
2016-11-16Includes page specific JSFilipa Lacerda
2016-10-28Create cycle analytics bundlePhil Hughes
This prevents VueJS being included in application.js & therefore included on everypage
2016-10-21Re-organize queues to use for SidekiqYorick Peterse
Dumping too many jobs in the same queue (e.g. the "default" queue) is a dangerous setup. Jobs that take a long time to process can effectively block any other work from being performed given there are enough of these jobs. Furthermore it becomes harder to monitor the jobs as a single queue could contain jobs for different workers. In such a setup the only reliable way of getting counts per job is to iterate over all jobs in a queue, which is a rather time consuming process. By using separate queues for various workers we have better control over throughput, we can add weight to queues, and we can monitor queues better. Some workers still use the same queue whenever their work is related. For example, the various CI pipeline workers use the same "pipeline" queue. This commit includes a Rails migration that moves Sidekiq jobs from the old queues to the new ones. This migration also takes care of doing the inverse if ever needed. This does require downtime as otherwise new jobs could be scheduled in the old queues after this migration completes. This commit also includes an RSpec test that blacklists the use of the "default" queue and ensures cron workers use the "cronjob" queue. Fixes gitlab-org/gitlab-ce#23370
2016-10-20Create protected branches bundleAlfredo Sumaran
2016-10-13Refactor JS codeAlfredo Sumaran
- Use a store base object to manage application state. - Add a service to handle ajax requests. - Load code only when needed
2016-10-06Merge commit 'dev/security' into 'master'Rémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-04Don't send Private-Token headers to SentryJacob Vosmaer
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22537
2016-09-29Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRémy Coutable
2016-09-28Use a ConnectionPool for Rails.cache on Sidekiq serversPaco Guzman
It’s important to remember that connections on ConnectionPool are created when needed so if modify the objects later to create those connections weird things could happen https://gitlab.com/gitlab-com/infrastructure/issues/464#note_15850653
2016-09-26Set a restrictive CORS policy on the API for credentialed requestsNick Thomas
Cross-origin requests can still be made, as long as the client doesn't use the Rails session cookie to do so. Existing clients should not be setting 'withCredentials: true', so this should be fine.
2016-09-26Move Rack::Attack and Rack::Cors middlewares to be before Warden::ManagerNick Thomas
2016-09-22Revert "Merge branch '22364-rails-cache-redis-connection-pool' into 'master'"Rubén Dávila Santos
This reverts merge request !6429
2016-09-20Use a ConnectionPool for Rails.cache on Sidekiq serversPaco Guzman
2016-08-19Merge branch 'ace-ventura' into 'master' Jacob Schatz
Ace ventura ## What does this MR do? Makes Ace only load when it's actually necessary. The only two places it seems to be used is for Snippets and the File (Blob) Editor. Before minification or compression, this takes the application.js down from 2.2MB to 1.6MB, and also removes two inline scripts :D Compressed/Minified: master: 317KB/1.1MB, ace-ventura: 220KB/771KB ## Are there points in the code the reviewer needs to double check? That this doesn't just completely break anything. ## Why was this MR needed? Ace is a big library, this allows us to only load it when necessary. ## What are the relevant issue numbers? #14372 ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] 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 !4914
2016-08-18Only load Ace on Snippets and file edit pages.Connor Shea
2016-08-17Merge branch 'master' into diff-line-comment-vuejsConnor Shea
2016-08-17Added simulate drag JS for testsPhil Hughes
2016-08-17Hooked up JS to allow issues to be moved between columnsPhil Hughes
2016-08-13Merge branch 'master' into diff-line-comment-vuejsDouwe Maan
2016-08-04Deduplicated resque.yml loading from several placesGabriel Mazetto
We will trust redis configuration params loading to Gitlab::RedisConfig.
2016-07-26Correctly resolves/unresolves discussionsPhil Hughes
2016-07-26convert CS to JSPhil Hughes
2016-07-24Diff line comments resolvePhil Hughes
2016-07-20Merge branch 'rename-js-files' into 'master' Fatih Acet
Replace namespace-specific application.js files with namespace-bundle.js files. Following up on the per-page JavaScript improvements, I wanted to replace the use of `application.js` with `namespace-bundle.js` to prevent confusion when downloading more than one application.js file. This is pretty much just for the sake of clarity. cc: @alfredo1 See merge request !5221
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-15Replace namespace-specific application.js files with namespace-bundle.js files.Connor Shea
2016-07-14Load Javascript U2F library selectively.Timothy Andrew
1. Only on supported Chrome versions 2. Mainly, this lets us simplify the javascript-based U2F check to `window.u2f`, where `window.u2f` can either be loaded from the GitLab server (for Chrome) or from the Firefox extension. 3. This is a better way to provide browser detection for U2F.
2016-06-30Split Cropper.js from the main JavaScript manifest.Connor Shea
2016-06-23Add precompilation for relevant assets.Connor Shea
2016-06-10Replace raphael-rails with raphael.js so it can be split from the rest of ↵Connor Shea
the JavaScript. The gem isn't maintained anymore anyway. Added a network folder with an application.js including raphael components, since that's the only page using it currently.
2016-06-02Attempt to fix the user page.Connor Shea
2016-06-02Remove d3 except for on pages where it's necessary.Connor Shea
2016-05-25New confirmation email :fire:Robert Speicher
2016-05-20Merge branch 'fix-generator-templates-directory' into 'master' Jeroen van Baarsen
Move generator templates to generator_templates/ See merge request !4217
2016-05-19Move generator templates to generator_templates/Yorick Peterse
Since we eager load everything in lib/ putting ERB code in .rb files will result in syntax errors. By moving the templates to ./generator_templates we can work around this.
2016-05-17Syntax-highlight diffs in push emailsSean McGivern
Based on: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/151
2016-05-10Fix a few places where autoloading would failRémy Coutable
- Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-10Add eager load paths to help prevent dependency load issues with Sidekiq workersStan Hu
Attempts to address #13521, #14825 Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-30Add more parameters to the filter_parameters config.Connor Shea
Adds Sentry DSN, Webhooks, Deploy Keys, etc. Alphabetized the parameters and included line breaks between each parameter. Easier to merge into EE if there are any differences. This also seems to be the more popular syntax for adding new parameters, from what I can find.
2016-04-07Put CACHE_NAMESPACE in the Gitlab::Redis moduleJacob Vosmaer
2016-04-04Add Gitlab::Redis connection poolJacob Vosmaer
2016-03-19Inline mailer CSS using premailer.Douwe Maan
# Conflicts: # Gemfile.lock
2016-03-11Filter import_url params because they may contain auth information. Fixes #14199Josh Frye
2016-03-09Parse config/resque.yml in one place onlyJacob Vosmaer
2016-03-04Don't generate factories automaticallyRobert Speicher
2016-02-29Use dedicated relative_url.rb initializerArtem Sidorenko
in order to have it the same way like in omnibus
2016-02-19Merge branch 'rs-emoji' into 'master' Douwe Maan
Update Gemojione for new hotness :sparkles: Before | After ------ | ----- ![Screen_Shot_2016-02-12_at_3.38.43_PM](/uploads/299e5ffe38c91657085741261a678f81/Screen_Shot_2016-02-12_at_3.38.43_PM.png) | ![Screen_Shot_2016-02-12_at_3.38.09_PM](/uploads/ccee29719a6445a9efd2498391a7eea0/Screen_Shot_2016-02-12_at_3.38.09_PM.png) See merge request !2800
2016-02-18Use SCAN during 'rake cache:clear'Jacob Vosmaer
This allows 'rake cache:clear' to delete millions of keys without choking. It requires Redis 2.8.0 or newer but we needed that already anyway.
2016-02-12Update Emoji asset pathRobert Speicher
Now that we're serving assets directly from the Gemojione gem's path, the images are not in an `emoji/` sub-folder.
2016-02-10Merge branch 'doc_relative_url' into 'master' Achilleas Pipinellis
Add documentation on relative URL support closes #12773 See merge request !2770