summaryrefslogtreecommitdiff
path: root/app/services/system_hooks_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Don't error out in system hook if user has `nil` datetime columnsStan Hu2018-03-051-2/+2
| | | | | | | Deleting a user would fail in the system hooks if the user had `nil` column in `datetime` or `updated_at` fields. Closes #43871
* Redesign plugins systemDmitriy Zaporozhets2018-02-261-8/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove plugin initializer and add plugins:validate rake taskDmitriy Zaporozhets2018-02-261-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add external plugins support to extend system hooksDmitriy Zaporozhets2018-02-261-0/+9
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'feature/merge-request-system-hook' into 'master'Douwe Maan2018-01-181-1/+1
|\ | | | | | | | | System hooks for Merge Requests See merge request gitlab-org/gitlab-ce!14387
| * use safer .hooks_for instead of .public_sendAlexis Reigel2018-01-171-1/+1
| | | | | | | | | | with .public_send we can't make sure that the scope on the model actually exists.
* | Log and send a system hook if a blocked user fails to loginsh-log-when-user-blockedStan Hu2018-01-141-1/+4
|/ | | | Closes #41633
* Consistently schedule Sidekiq jobsdm-application-workerDouwe Maan2017-12-051-1/+5
|
* Add system hooks user_rename and group_renameWinnie Hellmann2017-11-031-14/+34
|
* Use the correct project visibility in system hooksBob Van Landuyt2017-10-301-1/+1
|
* Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-1/+1
| | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-4/+4
|
* Wrong data type when testing webhooksAlexander Randa2017-07-201-1/+1
|
* Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix bug when system hook for deploy keybilly.lb2017-03-161-5/+4
|
* Use string based `visibility` getter & setterToon Claes2017-03-021-2/+2
| | | | | | Add `visibility` & `visibility=` methods to the `Gitlab::VisibilityLevel` module so the `visibility_level` can be get/set with a string value.
* Enable Performance/RedundantMergeDouwe Maan2017-02-231-3/+1
|
* Enable Lint/StringConversionInInterpolation cop and autocorrect offensesrs-string-conversion-in-interpolationRobert Speicher2016-10-031-1/+1
|
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-1/+1
|
* Added System Hooks for push and tag_pushGabriel Mazetto2016-04-191-8/+4
| | | | | Code is based on Project Webhooks, removing deprecations and without commits listing.
* Exclude projects pending deletion from all resultsZeger-Jan van de Weg2016-03-311-10/+12
|
* Merge branch 'add_username_to_user_system_hooks' of ↵Dmitriy Zaporozhets2016-01-131-1/+4
|\ | | | | | | | | | | https://github.com/tbeadle/gitlabhq Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Include user_username in user_(add_to/remove_from)_(project/group) system hooks.Tommy Beadle2016-01-071-0/+2
| |
| * Include the username in user_create/destroy system hooks.Tommy Beadle2016-01-071-1/+2
| |
* | Include the user_id in user_*_team system hooks.Tommy Beadle2016-01-061-0/+1
|/ | | | | | This fixes an issue where the user_id is not included in the data for user_add_to_team and user_remove_from_team system hooks. The documentation already states that the user_id should be included.
* Added system hooks messages for renaming and transferring a projectSteve Norman2016-01-041-1/+10
|
* Split complex method SystemHooksService#build_event_dataDmitriy Zaporozhets2015-11-131-30/+42
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* hooks: Add full project namespace to payloadRicardo Band2015-10-021-0/+1
| | | | | Payload of "project_member, :create" and "project_member, :destroy" now also have a field project_path_with_namespace.
* Added X-GitLab-Event header for web hooksbugagazavr2015-05-081-3/+3
|
* Revert "Added X-GitLab-Event header for web hooks"Valery Sizov2015-04-271-3/+3
| | | | This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
* Added X-GitLab-Event header for web hooksbugagazavr2015-04-251-3/+3
|
* Generate valid json for hooksNicole Cordes2015-03-101-1/+1
| | | | | It seems that ruby can handle 'nil' value but other json processors (like PHP) throw an error. This is always generated for empty arrays.
* Added support for firing system hooks on group create/destroy and ↵Boyan Tabakov2015-01-271-0/+23
| | | | | | adding/removing users to group. Added tests and updated docs. Also adding 'user_id' field in the hooks for adding/removing user from team.
* Merge pull request #7495 from polamjag/fix-date-format-on-system-hookValeriy Sizov2014-11-051-1/+1
|\ | | | | Use xmlschema date format (ISO 8601) on system hooks timestamp
| * append .xmlschema to system hook timestamppolamjag2014-08-141-1/+1
| |
* | Fix migration and association for new members tableDmitriy Zaporozhets2014-09-141-1/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Huge replace of old users_project and users_group referencesDmitriy Zaporozhets2014-09-141-3/+3
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add system hook for ssh key changesLukas Erlacher2014-09-031-0/+10
|/ | | | | | Add system hook for ssh key create and destroy Update and fix documentation Update tests
* Adding project visibility to system hooksAlex2014-05-121-2/+4
|
* Use instance methods for system_hooks_serviceDmitriy Zaporozhets2014-01-151-5/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add user_id to system hook when new user createdDmitriy Zaporozhets2013-10-081-1/+2
|
* Group ownership completely based on users_groups relation nowDmitriy Zaporozhets2013-09-261-2/+4
| | | | | | | Before we have only owner_id to determine group owner With multiple owners per group we should get rid of owner_id in group. So from now @group.owner will always be nil but @group.owners return an actual array of users who can admin this group
* Refactor access roles methodsDmitriy Zaporozhets2013-08-201-1/+1
|
* Add UsersGroup relation to be respected by abilities and Project#teamDmitriy Zaporozhets2013-06-181-1/+1
|
* Use separate property for project path and project path with namespace ↵Dmitriy Zaporozhets2013-05-221-1/+2
| | | | inside system hook
* include namespace in project path for system hookDmitriy Zaporozhets2013-05-221-1/+1
|
* An Id must be sended to queueAndrew8xx82013-02-211-1/+1
|
* Method moved to serviceAndrew8xx82013-02-201-1/+5
|
* System hooks execution moved to System hook serviceAndrew8xx82013-02-201-0/+55