summaryrefslogtreecommitdiff
path: root/app/models/project_services
Commit message (Collapse)AuthorAgeFilesLines
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-016-8/+0
|
* Merge branch 'rubocop/enable-space-after-cops' into 'master' Robert Speicher2016-06-292-2/+2
|\ | | | | | | | | | | | | Enable Style/SpaceAfterComma and Colon Rubocop cops See #17478 See merge request !4991
| * Enable Style/SpaceAfterComma Rubocop coprubocop/enable-space-after-copsGrzegorz Bizon2016-06-292-2/+2
| |
* | Removed redudant methods implemented by parent classTim2016-06-292-15/+0
| |
* | Set field defaults to be the same as IssueTrackerServiceTim2016-06-291-3/+3
| | | | | | | | Rebased to resolve merge conflicts
* | Added Bugzilla as external issue tracker optionTim2016-06-291-0/+37
|/ | | | | | Requested in #14669 Added note to changelog
* Fix broken URI joining for `teamcity_url` with suffixesRémy Coutable2016-06-141-18/+19
| | | | | | | | | | | | | | | If one had configured a `teamcity_url` like http://foo.bar/teamcity in the previous implementation the plugin directed it's request i.e. to http://foo.bar/httpAuth/... instead of http://foo.bar/teamcity/httpAuth/... `URI.join` only works correctly, if the prefix URL has - at least one or more trailing '/' - the appended parts are _not_ prefixed with '/' The current implementation should work with all sorts of TeamCity base URLs. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Factorize duplicated code into a method in BambooService and update specsRémy Coutable2016-06-141-20/+17
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix broken URI joining for `bamboo_url` with suffixesBenjamin Schmid2016-06-141-4/+4
| | | | | | | | | | | | | | If one had configured a `bamboo_url` like http://foo.bar/bamboo in the previous implementation the plugin directed it's request i.e. to http://foo.bar/rest/... instead of http://foo.bar/bamboo/rest/... `URI.join` only works correctly, if the prefix URL has - at least one or more trailing '/' - the appended parts are _not_ prefixed with '/' The current implementation should work with all sorts of Bamboo base URLs. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Honor credentials on calling Bamboo CI triggerBenjamin Schmid2016-06-141-4/+13
| | | | | | | | | | | | | | This improves the Bamboo Service and provides a fix for situations, where the build trigger won't work, because Bamboo is requiring authentication also for the trigger GET. The change now does provide additional HTTP Basic Auth parameters if user credentials were provided and appends an request parameter indicating the HTTP Basic Authentication should be used. This aligns interaction with Bamboo with the other calls this service executes. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove deprecated issues_tracker and issues_tracker_id from projectDouglas Barbosa Alexandre2016-06-131-15/+3
|
* Enable Lint/AmbiguousOperator rubocop coprubocop/enable-ambiguous-operator-rubocop-lintGrzegorz Bizon2016-06-031-1/+1
| | | | See #17478
* Enable Lint/LiteralInCondition rubocop coprubocop/enable-literal-in-condition-copGrzegorz Bizon2016-05-301-1/+1
| | | | | | Checks of literals used in conditions. See #17478
* Seconds plural slackAran Koning2016-05-241-2/+2
|
* Improve issue formatting in Slack serviceJeroen van Baarsen2016-05-181-3/+16
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-1/+1
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-0924-576/+0
| | | | | | | | | 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
* Annotate the modelsZeger-Jan van de Weg2016-05-0624-120/+192
|
* Ensure URL in all Service subclasses are validRémy Coutable2016-04-254-4/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* formatting and test structureSebastian Klier2016-04-201-1/+1
|
* add slack notifications for wiki pagesSebastian Klier2016-04-202-1/+57
| | | | update changelog
* format merge request references properlyBen Bodenmiller2016-04-183-4/+4
|
* Allow empty recipient list when pusher is addedFrank Groeneveld2016-04-141-3/+7
| | | | Closes #13574
* Merge branch 'fix-trailing-slash-in-bamboo_url' into 'master' Robert Speicher2016-04-131-10/+10
|\ | | | | | | | | | | | | | | | | Fix a bug with trailing slash in bamboo_url Also, improve specs for BambooService Similar to !3679. See merge request !3680
| * Fix a bug with trailing slash in bamboo_urlRémy Coutable2016-04-131-10/+10
| | | | | | | | | | | | | | | | Also, improve specs for BambooService Similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/3515 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Improve TeamcityService and its specsfix-trailing-slash-in-teamcity_url-3515Rémy Coutable2016-04-131-3/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Fix a bug with trailing slash in teamcity_urlCharles May2016-04-121-13/+18
|/ | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/3515
* Ensure empty recipients are rejected in BuildsEmailServiceRémy Coutable2016-04-061-4/+7
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Added & use Gitlab::Routing for URL helpersroutingYorick Peterse2016-04-012-2/+2
| | | | | | | Rails' "url_helpers" method creates an anonymous Module (which a bunch of methods) on every call. By caching the output of this method in a dedicated method we can shave off about 10 seconds of loading time for an issue with around 200 comments.
* Handle nil descriptions in Slack issue messagesStan Hu2016-03-281-1/+1
| | | | Closes #14676
* add SHA256 to secure_comparefix/token-timing-attackJames Lopez2016-03-081-1/+1
|
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵James Lopez2016-03-081-2/+4
|\ | | | | | | fix/token-timing-attack
| * Add commit message to JIRA's notification payload.Rubén Dávila2016-03-031-2/+4
| |
* | fix token issue - timing attackJames Lopez2016-03-021-1/+1
|/
* Revert "Merge branch 'issue_5854' into 'master' "revert-6f85eb38Dmitriy Zaporozhets2016-02-291-4/+2
| | | This reverts merge request !2992
* Add commit message to JIRA's notification payload.Rubén Dávila2016-02-261-2/+4
|
* Use project.web_url instead deprecated repository.homepage in PushoverServiceRémy Coutable2016-02-161-1/+1
|
* Greatly improve external_issue_tracker performanceimprove-project-external-issue-trackersYorick Peterse2016-01-193-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge branch 'fix/reference_filter_uri_decode_error_for_master' into 'master' Douwe Maan2016-01-131-4/+4
|\ | | | | | | | | | | | | | | | | Fix #9963 reference_filter "Encoding::CompatibilityError" bug with some complex URL; https://github.com/gitlabhq/gitlabhq/pull/9964 @DouweM See merge request !2383
| * Use CGI.escape instead of URI.escape, because URI is obsoleted.Jason Lee2016-01-121-4/+4
| | | | | | | | ref: https://github.com/ruby/ruby/commit/238b979f1789f95262a267d8df6239806f2859cc
* | Mention channel/key bug in irkerd docsLandon2016-01-121-3/+4
|/ | | | | | | Per this issue: https://gitlab.com/esr/irker/issues/2 A documentation update was added to irkerd (https://gitlab.com/esr/irker/commit/190808c37d4ab5f0f16fe35352ff36863c2732d5) but the bug is still there. Making a note of it here could save someone a lot of hassle. This could probably be worded better if someone else wants to take a stab at it.
* Merge branch 'fix_jira_shortterm' into 'master' Robert Speicher2016-01-101-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Do not call API if there is no API URL Fixes #5878 CE users may not be interested in the new JIRA features. In this case, we should detect they haven't set an API URL and fallback to the behavior pre-8.3. This patch does that very easily. There are planned improvements to JIRA in future releases such as gitlab-org/gitlab-ce#5541 which will make this more configurable. See merge request !2341
| * Do not call API if there is no API URLDrew Blessing2016-01-071-0/+3
| |
* | Merge branch 'suppress-allow-failure-builds' into 'master' Stan Hu2016-01-081-1/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Suppress e-mails on failed builds if allow_failure is set Every time I push to GitLab, I get > 2 emails saying a spec failed when I don't care about the benchmarks and others that have `allow_failure` set to `true`. @ayufan mentioned creating a summary e-mail to prevent getting one e-mail per build, but the latter might actually be desirable. For example, I do want to know if Rubocop errors fail right away. See merge request !2178
| * | Suppress e-mails on failed builds if allow_failure is setStan Hu2016-01-071-1/+5
| |/ | | | | | | | | Every time I push to GitLab, I get > 2 emails saying a spec failed when I don't care about benchmarks and other specs that have `allow_failure` set to `true`.
* | Remove useless assignment to variableAchilleas Pipinellis2016-01-081-1/+1
| |
* | Remove reference to EE from JIRA service modelAchilleas Pipinellis2016-01-081-5/+0
|/
* Annotate modelsStan Hu2016-01-0624-0/+25
|
* Don't log backtrace in Asana servicemikew1/gitlab-ce-better-asana-refsMike Wyatt2016-01-041-1/+0
|
* Merge remote-tracking branch 'upstream/master' into better-asana-refsMike Wyatt2015-12-316-13/+253
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (307 commits) Update CHANGELOG spinach fix Updated allocations Gem to version 1.0.3 Removed various default metrics tags Update CHANGELOG Fix "I see current user as the first user" step Swap Author and Assignee Selectors on issuable index view Update CHANGELOG Make sure that is no pending migrations in Gitlab::CurrentSettings Added additional config environmental variables to help Debian packaging We don't use whenever anymore. Lets remove the schedule file Fix project transfer e-mail sending incorrect paths in e-mail notification Update CHANGELOG Use Gitlab::CurrentSettings for InfluxDB Write to InfluxDB directly via UDP Strip newlines from obfuscated SQL Add hotfix that allows to access build artifacts created before 8.3 note votes methids implementation When reCAPTCHA is disabled, allow registrations to go through without a code Downcased user or email search for avatar_icon. ...