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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cf1be034
Commit
cf1be034
authored
Dec 15, 2020
by
serenafang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Only render member events if ee and group"
This reverts commit
6b709ed2
.
parent
6b709ed2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
17 deletions
+15
-17
app/views/shared/web_hooks/_form.html.haml
app/views/shared/web_hooks/_form.html.haml
+6
-2
changelogs/unreleased/group-member-webhook-ui.yml
changelogs/unreleased/group-member-webhook-ui.yml
+0
-0
db/structure.sql
db/structure.sql
+6
-6
ee/app/views/groups/hooks/_member_events.html.haml
ee/app/views/groups/hooks/_member_events.html.haml
+0
-6
ee/spec/models/group_member_spec.rb
ee/spec/models/group_member_spec.rb
+3
-3
No files found.
app/views/shared/web_hooks/_form.html.haml
View file @
cf1be034
...
...
@@ -48,8 +48,12 @@
%strong
=
s_
(
'Webhooks|Confidential Issues events'
)
%p
.text-muted.gl-ml-1
=
s_
(
'Webhooks|This URL will be triggered when a confidential issue is created/updated/merged'
)
-
if
@group
=
render_if_exists
'groups/hooks/member_events'
,
form:
form
%li
=
form
.
check_box
:member_events
,
class:
'form-check-input'
=
form
.
label
:member_events
,
class:
'list-label form-check-label gl-ml-1'
do
%strong
=
s_
(
'Webhooks|Member events'
)
%p
.text-muted.gl-ml-1
=
s_
(
'Webhooks|This URL will be triggered when a member is added to a group'
)
%li
=
form
.
check_box
:merge_requests_events
,
class:
'form-check-input'
=
form
.
label
:merge_requests_events
,
class:
'list-label form-check-label gl-ml-1'
do
...
...
ee/
changelogs/unreleased/group-member-webhook-ui.yml
→
changelogs/unreleased/group-member-webhook-ui.yml
View file @
cf1be034
File moved
db/structure.sql
View file @
cf1be034
...
...
@@ -9343,6 +9343,8 @@ CREATE TABLE application_settings (
elasticsearch_indexed_file_size_limit_kb
integer
DEFAULT
1024
NOT
NULL
,
enforce_namespace_storage_limit
boolean
DEFAULT
false
NOT
NULL
,
container_registry_delete_tags_service_timeout
integer
DEFAULT
250
NOT
NULL
,
kroki_url
character
varying
,
kroki_enabled
boolean
,
elasticsearch_client_request_timeout
integer
DEFAULT
0
NOT
NULL
,
gitpod_enabled
boolean
DEFAULT
false
NOT
NULL
,
gitpod_url
text
DEFAULT
'https://gitpod.io/'
::
text
,
...
...
@@ -9365,15 +9367,13 @@ CREATE TABLE application_settings (
domain_denylist
text
,
domain_allowlist
text
,
new_user_signups_cap
integer
,
kroki_url
text
,
kroki_enabled
boolean
DEFAULT
false
NOT
NULL
,
secret_detection_revocation_token_types_url
text
,
encrypted_cloud_license_auth_token
text
,
encrypted_cloud_license_auth_token_iv
text
,
secret_detection_revocation_token_types_url
text
,
cloud_license_enabled
boolean
DEFAULT
false
NOT
NULL
,
disable_feed_token
boolean
DEFAULT
false
NOT
NULL
,
CONSTRAINT
app_settings_registry_exp_policies_worker_capacity_positive
CHECK
((
container_registry_expiration_policies_worker_capacity
>=
0
)),
CONSTRAINT
check_17d9558205
CHECK
((
char_length
(
kroki_url
)
<=
1024
)),
CONSTRAINT
check_17d9558205
CHECK
((
char_length
(
(
kroki_url
)::
text
)
<=
1024
)),
CONSTRAINT
check_2dba05b802
CHECK
((
char_length
(
gitpod_url
)
<=
255
)),
CONSTRAINT
check_51700b31b5
CHECK
((
char_length
(
default_branch_name
)
<=
255
)),
CONSTRAINT
check_57123c9593
CHECK
((
char_length
(
help_page_documentation_base_url
)
<=
255
)),
...
...
@@ -17193,8 +17193,8 @@ CREATE TABLE user_details (
bio_html
text
,
cached_markdown_version
integer
,
webauthn_xid
text
,
provisioned_by_group_id
bigint
,
other_role
text
,
provisioned_by_group_id
bigint
,
CONSTRAINT
check_245664af82
CHECK
((
char_length
(
webauthn_xid
)
<=
100
)),
CONSTRAINT
check_b132136b01
CHECK
((
char_length
(
other_role
)
<=
100
))
);
...
...
@@ -23253,7 +23253,7 @@ ALTER INDEX product_analytics_events_experimental_pkey ATTACH PARTITION gitlab_p
ALTER
INDEX
product_analytics_events_experimental_pkey
ATTACH
PARTITION
gitlab_partitions_static
.
product_analytics_events_experimental_63_pkey
;
CREATE
TRIGGER
table_sync_trigger_ee39a25f9d
AFTER
INSERT
OR
DELETE
OR
UPDATE
ON
audit_events
FOR
EACH
ROW
EXECUTE
FUNCTION
table_sync_function_2be879775d
();
CREATE
TRIGGER
table_sync_trigger_ee39a25f9d
AFTER
INSERT
OR
DELETE
OR
UPDATE
ON
audit_events
FOR
EACH
ROW
EXECUTE
PROCEDURE
table_sync_function_2be879775d
();
ALTER
TABLE
ONLY
chat_names
ADD
CONSTRAINT
fk_00797a2bf9
FOREIGN
KEY
(
service_id
)
REFERENCES
services
(
id
)
ON
DELETE
CASCADE
;
...
...
ee/app/views/groups/hooks/_member_events.html.haml
deleted
100644 → 0
View file @
6b709ed2
%li
=
form
.
check_box
:member_events
,
class:
'form-check-input'
=
form
.
label
:member_events
,
class:
'list-label form-check-label gl-ml-1'
do
%strong
=
s_
(
'Webhooks|Member events'
)
%p
.text-muted.gl-ml-1
=
s_
(
'Webhooks|This URL will be triggered when a member is added to a group'
)
ee/spec/models/group_member_spec.rb
View file @
cf1be034
...
...
@@ -241,7 +241,7 @@ RSpec.describe GroupMember do
context
'group member webhooks'
,
:sidekiq_inline
do
let_it_be
(
:group
)
{
create
(
:group_with_plan
,
plan: :gold_plan
)
}
let_it_be
(
:group_hook
)
{
create
(
:group_hook
,
group:
group
,
member_events:
true
)
}
let
_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
context
'fires the webhook when a member is added'
do
before
do
...
...
@@ -271,8 +271,8 @@ RSpec.describe GroupMember do
end
context
'ancestor groups'
do
let
_it_be
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
let
_it_be
(
:subgroup_hook
)
{
create
(
:group_hook
,
group:
subgroup
,
member_events:
true
)
}
let
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
let
(
:subgroup_hook
)
{
create
(
:group_hook
,
group:
subgroup
,
member_events:
true
)
}
it
'fires webhook twice when parent group has member_events webhook enabled'
do
WebMock
.
stub_request
(
:post
,
subgroup_hook
.
url
)
...
...
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