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
Boxiang Sun
gitlab-ce
Commits
df905b40
Commit
df905b40
authored
Aug 14, 2019
by
Kushal Pandya
Committed by
Mayra Cabrera
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch '64341-data-and-privacy-agreement-for-gitlab-users' into 'master'"
This reverts merge request !30808
parent
51f40bf9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1 addition
and
46 deletions
+1
-46
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-2
app/helpers/user_callouts_helper.rb
app/helpers/user_callouts_helper.rb
+0
-6
app/models/user_callout_enums.rb
app/models/user_callout_enums.rb
+1
-2
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+0
-2
app/views/layouts/_privacy_policy_update_callout.html.haml
app/views/layouts/_privacy_policy_update_callout.html.haml
+0
-6
changelogs/unreleased/64341-data-and-privacy-agreement-for-gitlab-users.yml
...sed/64341-data-and-privacy-agreement-for-gitlab-users.yml
+0
-5
locale/gitlab.pot
locale/gitlab.pot
+0
-3
spec/helpers/user_callouts_helper_spec.rb
spec/helpers/user_callouts_helper_spec.rb
+0
-20
No files found.
app/assets/javascripts/main.js
View file @
df905b40
...
...
@@ -32,7 +32,6 @@ import initSearchAutocomplete from './search_autocomplete';
import
GlFieldErrors
from
'
./gl_field_errors
'
;
import
initUserPopovers
from
'
./user_popovers
'
;
import
{
__
}
from
'
./locale
'
;
import
initPrivacyPolicyUpdateCallout
from
'
./privacy_policy_update_callout
'
;
import
'
ee_else_ce/main_ee
'
;
...
...
@@ -80,7 +79,6 @@ function deferredInitialisation() {
initLogoAnimation
();
initUsagePingConsent
();
initUserPopovers
();
initPrivacyPolicyUpdateCallout
();
if
(
document
.
querySelector
(
'
.search
'
))
initSearchAutocomplete
();
...
...
app/helpers/user_callouts_helper.rb
View file @
df905b40
...
...
@@ -4,8 +4,6 @@ module UserCalloutsHelper
GKE_CLUSTER_INTEGRATION
=
'gke_cluster_integration'
.
freeze
GCP_SIGNUP_OFFER
=
'gcp_signup_offer'
.
freeze
SUGGEST_POPOVER_DISMISSED
=
'suggest_popover_dismissed'
.
freeze
# Privacy Policy Update: https://gitlab.com/gitlab-org/gitlab-ce/issues/64341
PRIVACY_POLICY_UPDATE_64341
=
'privacy_policy_update_64341'
.
freeze
def
show_gke_cluster_integration_callout?
(
project
)
can?
(
current_user
,
:create_cluster
,
project
)
&&
...
...
@@ -27,10 +25,6 @@ module UserCalloutsHelper
!
user_dismissed?
(
SUGGEST_POPOVER_DISMISSED
)
end
def
show_privacy_policy_update_64341?
!
user_dismissed?
(
PRIVACY_POLICY_UPDATE_64341
)
end
private
def
user_dismissed?
(
feature_name
)
...
...
app/models/user_callout_enums.rb
View file @
df905b40
...
...
@@ -14,8 +14,7 @@ module UserCalloutEnums
gke_cluster_integration:
1
,
gcp_signup_offer:
2
,
cluster_security_warning:
3
,
suggest_popover_dismissed:
9
,
privacy_policy_update_64341:
10
# Privacy Policy Update: https://gitlab.com/gitlab-org/gitlab-ce/issues/64341
suggest_popover_dismissed:
9
}
end
end
app/views/layouts/_page.html.haml
View file @
df905b40
...
...
@@ -17,6 +17,4 @@
.d-flex
%div
{
class:
"#{(container_class unless @no_container)} #{@content_class}"
}
.content
{
id:
"content-body"
}
-
if
Gitlab
.
com?
&&
show_privacy_policy_update_64341?
=
render
"layouts/privacy_policy_update_callout"
=
yield
app/views/layouts/_privacy_policy_update_callout.html.haml
deleted
100644 → 0
View file @
51f40bf9
-
privacy_policy_link
=
link_to
(
'https://about.gitlab.com/privacy'
,
'https://about.gitlab.com/privacy'
,
class:
'deferred-link'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
)
%div
{
class
:"#{(container_class unless fluid_layout)} #{@content_class}"
}
.bs-callout.privacy-policy-update-64341.alert.alert-block.alert-dismissable.prepend-top-default.append-bottom-default
{
role:
'alert'
,
data:
{
feature_id:
UserCalloutsHelper
::
PRIVACY_POLICY_UPDATE_64341
,
dismiss_endpoint:
user_callouts_path
,
defer_links:
"true"
}
}
%button
.close.js-close
{
type:
"button"
}
=
sprite_icon
(
"close"
,
size:
16
)
%p
=
_
(
'Our Privacy Policy has changed, please visit %{privacy_policy_link} to review these changes.'
).
html_safe
%
{
privacy_policy_link:
privacy_policy_link
}
changelogs/unreleased/64341-data-and-privacy-agreement-for-gitlab-users.yml
deleted
100644 → 0
View file @
51f40bf9
---
title
:
Add notification for updated privacy policy
merge_request
:
30808
author
:
type
:
added
locale/gitlab.pot
View file @
df905b40
...
...
@@ -7703,9 +7703,6 @@ msgstr ""
msgid "Other visibility settings have been disabled by the administrator."
msgstr ""
msgid "Our Privacy Policy has changed, please visit %{privacy_policy_link} to review these changes."
msgstr ""
msgid "Outbound requests"
msgstr ""
...
...
spec/helpers/user_callouts_helper_spec.rb
View file @
df905b40
...
...
@@ -45,26 +45,6 @@ describe UserCalloutsHelper do
end
end
describe
'.show_privacy_policy_update_64341?'
do
subject
{
helper
.
show_privacy_policy_update_64341?
}
context
'when user has not dismissed'
do
before
do
allow
(
helper
).
to
receive
(
:user_dismissed?
).
and_return
(
false
)
end
it
{
is_expected
.
to
be
true
}
end
context
'when user dismissed'
do
before
do
allow
(
helper
).
to
receive
(
:user_dismissed?
).
and_return
(
true
)
end
it
{
is_expected
.
to
be
false
}
end
end
describe
'.render_flash_user_callout'
do
it
'renders the flash_user_callout partial'
do
expect
(
helper
).
to
receive
(
:render
)
...
...
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