Douglas Barbosa Alexandre
bee28e1785
Requires user to be signed in when changing notification settings
2016-04-11 20:50:26 -03:00
Douglas Barbosa Alexandre
93a10f17e0
Reuse User#notification_settings_for when it's possible
2016-04-11 20:50:26 -03:00
Douglas Barbosa Alexandre
127119f2c4
Simplify query to retrieve NotificationSetting on controllers
2016-04-08 16:59:06 -03:00
Douglas Barbosa Alexandre
7afeace354
Merge branch 'master' into decouple-member-notification
2016-04-08 15:48:09 -03:00
Felipe Artur
0bef4b9764
Implement review suggestions
2016-04-07 10:59:24 -03:00
Felipe Artur
32c7e42b61
Improve code
2016-04-05 11:53:39 -03:00
Felipe Artur
5d42803045
Improve code
2016-04-05 11:53:39 -03:00
Felipe Artur
1ba9a91c6d
Fix problem when creating milestones in groups without projects
2016-04-05 11:53:39 -03:00
Dmitriy Zaporozhets
26631f9981
Change how notification settings in profile are rendered and updated
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-03-30 10:44:20 +02:00
Rémy Coutable
e989d12b07
Use respond_to instead of a conditional to paginate milestones
2016-03-23 12:02:15 +01:00
Douwe Maan
8db1292139
Tweaks, refactoring, and specs
2016-03-20 21:04:07 +01:00
Zeger-Jan van de Weg and Felipe Artur
b959ae553b
Improve group visibility level feature
2016-03-18 16:58:04 -03:00
Stan Hu
d800a949d2
Fix Error 500 when creating global milestones with Unicode characters
...
Two issues:
1. The constraints in the resources were incorrect. Here's what it was before:
```
group_milestone GET /groups/:group_id/milestones/:id(.:format) groups/milestones#show {:id=>/[a-zA-Z.0-9_\-]+(?<!\.atom)/, :group_id=>/[a-zA-Z.0-9_\-]+(?<!\.atom)/}
```
In this case, id is actually the title of the milestone, which can be anything at the moment.
After:
```
group_milestone GET /groups/:group_id/milestones/:id(.:format) groups/milestones#show {:id=>/[^\/]+/, :group_id=>/[a-zA-Z.0-9_\-]+(?<!\.atom)/}
```
2. `parameterize` would strip all Unicode characters, leaving a blank string. Rails would report something like:
ActionView::Template::Error (No route matches {:action=>"show", :controller=>"groups/milestones", :group_id=>#<Group id: 48, name: "ops-dev", path: "ops-dev", owner_id: nil, created_at: "2015-11-15 08:55:30", updated_at: "2015-12-02 06:23:26", type: "Group", description: "", avatar: "sha1.c71e73d51af1865c1bbbf6208e10044d46c9bb93.png", public: false>, :id=>"", :title=>"肯定不是中文的问题"} missing required keys: [:id]):
This change uses the babosa library to create a better slug, which surprisingly
isn't actually used by the global milestone controllers. Instead, they use the
title passed as a query string for some reason.
Closes https://github.com/gitlabhq/gitlabhq/issues/9881
Fix constraints
2015-12-05 00:04:44 -08:00
Douwe Maan
e3fe3da63d
Use project member abilities more extensively
2015-11-17 15:51:40 +01:00
Dmitriy Zaporozhets
32f1a71968
Fix removing avatar for group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-16 17:24:14 +01:00
Dmitriy Zaporozhets
929ab909c8
Group masters should be able to create/close milestones
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-16 16:14:19 +01:00
Dmitriy Zaporozhets
986695e136
Refactor global and group milestones logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-16 14:07:38 +01:00
Dmitriy Zaporozhets
05335a3c85
Create milestones in the group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-16 14:07:38 +01:00
Douwe Maan
0736f348a6
Use before_actions
2015-07-31 14:15:49 +02:00
Douwe Maan
f9bcb9632c
Add specific ability for managing group members
2015-07-28 16:32:15 +02:00
Dmitriy Zaporozhets
cef746dc94
User should be able to leave group. If not - show him proper message
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-05-29 14:12:30 +02:00
Douwe Maan
92fd3ccee0
Add helpers for header title and sidebar, and move setting those from controllers to layouts.
2015-05-01 10:39:16 +02:00
Douwe Maan
a3bd323cd3
Remove an old determine_layout call.
2015-04-30 20:02:00 +02:00
Douwe Maan
26ad250989
Add a page title to every page.
2015-04-30 19:12:15 +02:00
Jeroen van Baarsen
5a4ebfb47a
Fixed the Rails/ActionFilter cop
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-04-20 15:39:37 +02:00
Douwe Maan
cb5362e7ce
Follow newline guidelines.
2015-04-14 15:16:00 +02:00
Douwe Maan
1b5c483d89
Consistently use "invitation" rather than "invite" in text.
2015-04-14 12:25:16 +02:00
Douwe Maan
2a45eb6a91
Use notice flash type rather than nonexistent info.
2015-04-14 12:08:11 +02:00
Douwe Maan
453340d449
Let membership invitations be resent.
2015-04-14 12:08:10 +02:00
Douwe Maan
90dafe31c4
Only show invited users to people who can admin group.
2015-04-14 12:07:33 +02:00
Douwe Maan
2b2bd402dc
Track who created a group or project member.
2015-04-14 12:06:42 +02:00
Douwe Maan
ff3caad4ca
Rename manage_group ability to admin_group for consistency with project.
2015-04-14 12:05:49 +02:00
Douwe Maan
84371de01f
Move group leave action from dashboard/groups to groups/group_members.
2015-03-15 13:52:28 +01:00
Douwe Maan
224187ffb9
Move group members index from /members to /group_members.
2015-03-15 13:51:11 +01:00
Douwe Maan
99f995755e
Use group_member instead of users_group or membership.
2015-03-15 13:49:41 +01:00
Dmitriy Zaporozhets
f0cbbd70bb
Use same constant for amount of items per page
2015-03-12 15:37:00 -07:00
Valery Sizov
0b38c3e041
group controller refactoring
2015-03-12 17:08:48 +02:00
Douwe Maan
fbc3cb69c3
Add dashboard milestones.
2015-03-03 16:19:37 +01:00
Dmitriy Zaporozhets
2064a14724
Add tests for remove group member feature in admin area
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-20 13:18:07 +03:00
Dmitriy Zaporozhets
1aa48174db
Fix STI+polymorphic for Group <-> GroupMember
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-14 21:52:54 +03:00
Marin Jankovski
3b5722bca9
Improve performance, ordering and pagination for group milestones.
2014-07-04 11:57:24 +02:00
Marin Jankovski
3e52517da1
Add feature tests for group milestone.
2014-06-30 16:18:26 +02:00
Marin Jankovski
d3796b84f8
Show all issues and merge requests that could be considered opened or closed, includes reopened and merged.
2014-06-30 12:41:27 +02:00
Marin Jankovski
d145f09cd6
Correct authorization for group milestones.
2014-06-30 11:38:03 +02:00
Marin Jankovski
e66a8b4cda
Move milestone link in group head, 2 column milestone for MR and issues.
2014-06-30 11:13:24 +02:00
Marin Jankovski
c223fb1a96
Start building group milestone show page.
2014-06-30 09:45:16 +02:00
Marin Jankovski
b6425f33bc
Get one group milestone based on milestone title.
2014-06-30 09:44:30 +02:00
Marin Jankovski
f0af302c83
Close and reopen group milestones.
2014-06-30 09:44:30 +02:00
Marin Jankovski
4ca8a175a2
Filter group milestones.
2014-06-30 09:44:30 +02:00
Marin Jankovski
0723bf1afa
Move group milestone processing from service to model.
2014-06-30 09:44:30 +02:00