Commit graph

29 commits

Author SHA1 Message Date
RhodeCode Admin
104671c5e7 feat(events): added context into events so we can track additional context of calling it 2024-11-14 20:15:11 +01:00
RhodeCode Admin
82f0f8d214 core: updated copyright to 2024 2024-11-12 16:39:07 +01:00
RhodeCode Admin
d59ca21bfc integrations: restructure code and added better coverage. 2023-08-03 20:51:50 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
c474577dd0 events: reduce usage of threadglobals in global imports for gevent 2023-07-18 11:28:33 +02:00
Milka Kuzminski
08e06718cd events: added new fts build event 2020-11-30 12:29:10 +01:00
Marcin Kuzminski
74e96ea4b4 comments: added new events for comment editing to handle them in integrations. 2020-07-13 11:18:28 +02:00
Marcin Kuzminski
324544678c events: added support for pull-request-comment and commit-comment events.
- allows chopts like actions on commits
- re organized events and code cleanups
2020-04-17 22:08:42 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
466826a84a hooks: added new hooks for comments on pull requests and commits.
- allows writing custom actions on top of comments
- new rcextension hooks
- organized and renamed some hooks
- new helpers for rcextensions
- fixes #5583
2020-04-15 18:00:59 +02:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
4719d0ff87 code: unified coverage notes to # pragma: no cover 2018-12-07 13:34:28 +01:00
Marcin Kuzminski
ecff3dbaed security: update lastactivity when on audit logs.
- The previous update on each call was to expensive and created lot of DB locks in high traffic env
2018-07-31 22:52:44 +02:00
Marcin Kuzminski
988ae152de events: use a distinction between RhodeCodeEvent which is a base class and it used by all events, and
the events that are handled in addition by integration framework.
2018-07-31 12:29:04 +02:00
Marcin Kuzminski
38cd92a8c0 events: cleanup code, pep8, better logging. 2018-07-31 12:13:04 +02:00
Marcin Kuzminski
ad4963f1d3 events: add event to catch permission changed so we can flush affected users permission caches 2018-07-09 13:01:42 +02:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
7e11e618ca events: re-organizate events handling.
- pass in request from event to url functions to skip request lookup
- added some logging
- prepared for pyramid migration
2017-06-08 21:37:34 +02:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
9e6713219c repo-groups: implemented default personal repo groups logic.
- fixes #4003
- adds new settings to automatically create personal repo groups for users on API cal, add user form, registration
- it's possible to create a pattern based repo group for example /u/{username}
2016-11-07 15:27:36 +01:00
Martin Bornhold
f2751b086f events: Add events for repository groups.
Events added:
- RepoGroupEvent (base class)
- RepoGroupCreateEvent
- RepoGroupUpdateEvent
- RepoGroupDeleteEvent
2016-07-28 11:29:02 +02:00
Martin Bornhold
595e5fe715 logging: Use __name__ when requesting a logger 2016-07-27 17:10:01 +02:00
Daniel Dourvaris
88e83cf796 events: add an event for pull request comments with review status 2016-07-13 10:39:54 +02:00
Daniel Dourvaris
439422d073 events: add logging for all events triggered 2016-07-12 11:37:51 +02:00
Daniel Dourvaris
7ff09cda95 integrations: add integration support
* added db migration for integration table, version 55
* added integrations views/templates/models
* added slack integration
* added h.url.current() support for pyramid only contexts
* added issues extractor for commit messages
* renamed repo-deleted/repo-created to repo-delete/repo-create
* removed marshmallow
* added serialization for events to static dicts of data
* added lazy_ugettext for translation of start time string
2016-07-10 06:43:20 +03:00
Daniel Dourvaris
23d7a947f5 events: add serialization .to_dict() to events based on marshmallow 2016-07-06 12:21:03 +03:00
Daniel Dourvaris
a0af559a3d events: add pull request events 2016-07-06 07:15:02 +03:00
Daniel Dourvaris
b6bf036756 events: use context manager for testing fired events 2016-07-06 06:38:14 +03:00
Daniel Dourvaris
9727a3880f events: add event system for RepoEvents 2016-07-06 06:00:18 +03:00