Marin Jankovski
0723bf1afa
Move group milestone processing from service to model.
2014-06-30 09:44:30 +02:00
Marin Jankovski
8e8c074205
Reuse existing milestones counting.
2014-06-30 09:44:30 +02:00
Marin Jankovski
58570880f0
Create group milestones service.
2014-06-30 09:44:30 +02:00
Jacob Vosmaer
b5007c1565
Rename MergeRequest#lock! to #lock_mr!
...
As a warning from the StateMachine gem points out to us, there already
exists a method ActiveRecord#lock!. This change renames the `lock` and
`unlock` events defined on MergeRequest to `lock_mr` and `unlock_mr`.
2014-06-26 14:09:17 +02:00
Dmitriy Zaporozhets
aadef92f1d
Merge pull request #7013 from jvanbaarsen/better-webhook-information
...
Return a little more information in Issue webhook
2014-06-24 10:37:15 +03:00
Dmitriy Zaporozhets
e7cf10e446
Merge pull request #5531 from NotSqrt/add-search
...
Add ability to search in issue description and issue comments
2014-06-24 10:36:04 +03:00
Marin Jankovski
4c575b72d5
Move checking of recepients to a service.
2014-06-23 15:44:49 +02:00
Dmitriy Zaporozhets
73f91da8b1
Fix project deletion and tests
2014-06-17 23:49:17 +03:00
Dmitriy Zaporozhets
a7d5052cd4
Remove SystemHook observer
2014-06-17 22:20:10 +03:00
Dmitriy Zaporozhets
6149dba518
Remove NotesObserver
2014-06-17 22:09:01 +03:00
Dmitriy Zaporozhets
a7f3672b75
Remove project observer
2014-06-17 21:53:26 +03:00
Dmitriy Zaporozhets
d5b0f29c4a
Move gravatar url compose to separate service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-13 17:11:46 +03:00
Dmitriy Zaporozhets
1355ede49d
Wipe wall notes feature
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-13 14:24:54 +03:00
Jeroen van Baarsen
87760a290e
Added an UrlBuilder for building rails named routes
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2014-06-13 12:34:15 +02:00
Jeroen van Baarsen
45e1941fb3
Return a little more information in Issue webhook
...
When a webhook for issues is triggered, it should also return the
resource URL, and the action that was performed (ie: Was it reopened,
updated, opened or closed)
2014-06-13 12:14:43 +02:00
Dmitriy Zaporozhets
f6ee55aabd
Fix issue/mr close/reopen via API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 19:23:02 +03:00
Dmitriy Zaporozhets
d65bf4605e
Fix milestone reopen
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 19:22:39 +03:00
Dmitriy Zaporozhets
c4b02642d2
Replace milestone observer with services
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 18:07:52 +03:00
Dmitriy Zaporozhets
55440ac9be
Make a comment to MR whne milestone was changed
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 12:33:17 +03:00
Dmitriy Zaporozhets
525fa6c11b
Fix tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 12:29:23 +03:00
Dmitriy Zaporozhets
7edf65d1ee
Make a system comment when issue milestone changed
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 12:25:43 +03:00
Dmitriy Zaporozhets
0fdce4a52b
Refactor some search scopes to prevent wierd behaviour and PG::Error issues
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-05 20:37:35 +03:00
Dmitriy Zaporozhets
6fdd900827
Merge pull request #7014 from asedge/api_create_tag
...
Add CreateTagService. Use new service to allow tag creation through API.
2014-05-29 15:37:42 +03:00
Dmitriy Zaporozhets
aca6be50d3
Refactor project transfer service. Add security check when create or transfer project into group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-28 19:02:26 +03:00
Marin Jankovski
3b2b3cff04
Move logic to image_service.
2014-05-26 14:54:03 +02:00
Sean Edge
1e6766f9ed
Add CreateTagService. Use new service to allow tag creation through API.
2014-05-23 11:02:47 -04:00
Dmitriy Zaporozhets
0455391add
Improve branch-removal logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-22 14:39:09 +03:00
Dmitriy Zaporozhets
88781783dd
Delete branch service with permission checks
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-22 14:23:20 +03:00
NotSqrt
15e0ab498d
Update ability to search in issue descriptions and comments
2014-05-15 19:54:19 +02:00
Alex
31b0e14981
Adding project visibility to system hooks
2014-05-12 10:23:24 +01:00
Dmitriy Zaporozhets
d10b34a685
Save repository size to projects table
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-02 16:05:08 +03:00
Dmitriy Zaporozhets
1bd28994cc
Use ProjectWiki instead of GollumWiki in code
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-09 14:35:58 +03:00
Dmitriy Zaporozhets
860f159d41
Add note when MR assignee changes. Add more tests to MR services
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-03 18:16:05 +03:00
Dmitriy Zaporozhets
9b6224f99c
More test fixes
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-03 12:05:21 +03:00
Dmitriy Zaporozhets
9b598fa62d
Fix MR fork validation and services load
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-03 10:36:10 +03:00
Dmitriy Zaporozhets
3c867dfa8e
MergeRequest services for create, update, close and reopen
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 21:51:17 +03:00
Dmitriy Zaporozhets
3faa14e7a7
Merge branch 'reduce-observers' into 'master'
...
Move issue create/update code to services
Reduce observers role in GitLab code
2014-04-02 17:54:27 +00:00
Dmitriy Zaporozhets
49f977d675
Fix tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 19:55:23 +03:00
Dmitriy Zaporozhets
1b5fb4ac21
Fix assignee change in Issues::UpdateService
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 16:08:49 +03:00
Dmitriy Zaporozhets
ed67ba9663
Add support for close/reopen actions in update service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 15:50:50 +03:00
Dmitriy Zaporozhets
cc77365488
Create services for issue close and reopen
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 15:38:24 +03:00
Dmitriy Zaporozhets
c4e81ed9de
Move update issue code to separate service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 13:54:41 +03:00
Dmitriy Zaporozhets
cfd9fd30d6
Move code for issue creation to service.
...
The goal of suych refactoring is to get rid of observers.
Its much easier to test and code when object creation and all other
related actions done in one class instead of splited across observers,
callbacks etc.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 13:38:35 +03:00
Marin Jankovski
109ab1a58b
Add comments, fix style, better names for notification methods.
2014-04-01 17:18:52 +02:00
Marin Jankovski
528a641e9e
Use group notification settings while honoring project settings.
2014-04-01 17:18:52 +02:00
Marin Jankovski
ce30a56f33
Add or remove watchers from list based on their notification settings.
2014-04-01 17:18:52 +02:00
Dmitriy Zaporozhets
95b84e2c5a
Move branch creation logic in service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-01 10:33:23 +03:00
Marin Jankovski
c34186f882
Refactor project watchers collecting.
2014-03-28 17:51:13 +01:00
Dmitriy Zaporozhets
ba87b76de1
Use EventCreateService for notes, merge requests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-25 15:08:25 +02:00
Dmitriy Zaporozhets
d89130b097
Collect all event creation logic in one place called EventCreateService
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-25 14:48:02 +02:00