Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b3aae422
Commit
b3aae422
authored
Mar 06, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor edits, incorporate review
parent
28910ffd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
app/views/groups/_create_chat_team.html.haml
app/views/groups/_create_chat_team.html.haml
+1
-1
db/migrate/20170120131253_create_chat_teams.rb
db/migrate/20170120131253_create_chat_teams.rb
+1
-3
db/schema.rb
db/schema.rb
+3
-3
spec/features/groups_spec.rb
spec/features/groups_spec.rb
+4
-1
No files found.
app/views/groups/_create_chat_team.html.haml
View file @
b3aae422
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
Create a Mattermost team for this group
Create a Mattermost team for this group
%br
%br
%small
.light.js-toggle-content
%small
.light.js-toggle-content
Team
URL:
Mattermost
URL:
=
Settings
.
mattermost
.
host
=
Settings
.
mattermost
.
host
%span
>
/
%span
>
/
%span
{
"data-bind-out"
=>
"create_chat_team"
}
%span
{
"data-bind-out"
=>
"create_chat_team"
}
db/migrate/20170120131253_create_chat_teams.rb
View file @
b3aae422
...
@@ -8,13 +8,11 @@ class CreateChatTeams < ActiveRecord::Migration
...
@@ -8,13 +8,11 @@ class CreateChatTeams < ActiveRecord::Migration
def
change
def
change
create_table
:chat_teams
do
|
t
|
create_table
:chat_teams
do
|
t
|
t
.
integer
:namespace_id
,
index:
true
t
.
references
:namespace
,
null:
false
,
index:
{
unique:
true
},
foreign_key:
{
on_delete: :cascade
}
t
.
string
:team_id
t
.
string
:team_id
t
.
string
:name
t
.
string
:name
t
.
timestamps
null:
false
t
.
timestamps
null:
false
end
end
add_concurrent_foreign_key
:chat_teams
,
:namespaces
,
column: :namespace_id
end
end
end
end
db/schema.rb
View file @
b3aae422
...
@@ -173,14 +173,14 @@ ActiveRecord::Schema.define(version: 20170217151947) do
...
@@ -173,14 +173,14 @@ ActiveRecord::Schema.define(version: 20170217151947) do
add_index
"chat_names"
,
[
"user_id"
,
"service_id"
],
name:
"index_chat_names_on_user_id_and_service_id"
,
unique:
true
,
using: :btree
add_index
"chat_names"
,
[
"user_id"
,
"service_id"
],
name:
"index_chat_names_on_user_id_and_service_id"
,
unique:
true
,
using: :btree
create_table
"chat_teams"
,
force: :cascade
do
|
t
|
create_table
"chat_teams"
,
force: :cascade
do
|
t
|
t
.
integer
"namespace_id"
t
.
integer
"namespace_id"
,
null:
false
t
.
string
"team_id"
t
.
string
"team_id"
t
.
string
"name"
t
.
string
"name"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
end
end
add_index
"chat_teams"
,
[
"namespace_id"
],
name:
"index_chat_teams_on_namespace_id"
,
using: :btree
add_index
"chat_teams"
,
[
"namespace_id"
],
name:
"index_chat_teams_on_namespace_id"
,
u
nique:
true
,
u
sing: :btree
create_table
"ci_application_settings"
,
force: :cascade
do
|
t
|
create_table
"ci_application_settings"
,
force: :cascade
do
|
t
|
t
.
boolean
"all_broken_builds"
t
.
boolean
"all_broken_builds"
...
@@ -1343,7 +1343,7 @@ ActiveRecord::Schema.define(version: 20170217151947) do
...
@@ -1343,7 +1343,7 @@ ActiveRecord::Schema.define(version: 20170217151947) do
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_foreign_key
"boards"
,
"projects"
add_foreign_key
"boards"
,
"projects"
add_foreign_key
"chat_teams"
,
"namespaces"
,
name:
"fk_3b543909cb"
,
on_delete: :cascade
add_foreign_key
"chat_teams"
,
"namespaces"
,
on_delete: :cascade
add_foreign_key
"issue_metrics"
,
"issues"
,
on_delete: :cascade
add_foreign_key
"issue_metrics"
,
"issues"
,
on_delete: :cascade
add_foreign_key
"label_priorities"
,
"labels"
,
on_delete: :cascade
add_foreign_key
"label_priorities"
,
"labels"
,
on_delete: :cascade
add_foreign_key
"label_priorities"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"label_priorities"
,
"projects"
,
on_delete: :cascade
...
...
spec/features/groups_spec.rb
View file @
b3aae422
...
@@ -46,7 +46,10 @@ feature 'Group', feature: true do
...
@@ -46,7 +46,10 @@ feature 'Group', feature: true do
describe
'Mattermost team creation'
do
describe
'Mattermost team creation'
do
before
do
before
do
Settings
.
mattermost
[
'enabled'
]
=
mattermost_enabled
mash
=
Hashie
::
Mash
.
new
mash
.
enabled
=
mattermost_enabled
allow
(
Settings
).
to
receive
(
:mattermost
).
and_return
(
mash
)
visit
new_group_path
visit
new_group_path
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment