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
26da4c0e
Commit
26da4c0e
authored
Oct 05, 2020
by
Markus Koller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wiki-container-type to Snowplow tracking context
parent
93758584
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/pages/shared/wikis/wikis.js
app/assets/javascripts/pages/shared/wikis/wikis.js
+1
-1
app/helpers/wiki_helper.rb
app/helpers/wiki_helper.rb
+2
-1
spec/frontend/wikis_spec.js
spec/frontend/wikis_spec.js
+1
-1
spec/helpers/wiki_helper_spec.rb
spec/helpers/wiki_helper_spec.rb
+2
-1
No files found.
app/assets/javascripts/pages/shared/wikis/wikis.js
View file @
26da4c0e
...
...
@@ -10,7 +10,7 @@ const MARKDOWN_LINK_TEXT = {
};
const
TRACKING_EVENT_NAME
=
'
view_wiki_page
'
;
const
TRACKING_CONTEXT_SCHEMA
=
'
iglu:com.gitlab/wiki_page_context/jsonschema/1-0-
0
'
;
const
TRACKING_CONTEXT_SCHEMA
=
'
iglu:com.gitlab/wiki_page_context/jsonschema/1-0-
1
'
;
export
default
class
Wikis
{
constructor
()
{
...
...
app/helpers/wiki_helper.rb
View file @
26da4c0e
...
...
@@ -142,7 +142,8 @@ module WikiHelper
'wiki-format'
=>
page
.
format
,
'wiki-title-size'
=>
page
.
title
.
bytesize
,
'wiki-content-size'
=>
page
.
raw_content
.
bytesize
,
'wiki-directory-nest-level'
=>
page
.
path
.
scan
(
'/'
).
count
'wiki-directory-nest-level'
=>
page
.
path
.
scan
(
'/'
).
count
,
'wiki-container-type'
=>
page
.
wiki
.
container
.
class
.
name
}
end
...
...
spec/frontend/wikis_spec.js
View file @
26da4c0e
...
...
@@ -146,7 +146,7 @@ describe('Wikis', () => {
expect
(
Tracking
.
event
).
toHaveBeenCalledWith
(
trackingPage
,
'
view_wiki_page
'
,
{
label
:
'
view_wiki_page
'
,
context
:
{
schema
:
'
iglu:com.gitlab/wiki_page_context/jsonschema/1-0-
0
'
,
schema
:
'
iglu:com.gitlab/wiki_page_context/jsonschema/1-0-
1
'
,
data
:
trackingContext
,
},
});
...
...
spec/helpers/wiki_helper_spec.rb
View file @
26da4c0e
...
...
@@ -131,7 +131,8 @@ RSpec.describe WikiHelper do
'wiki-format'
=>
:markdown
,
'wiki-title-size'
=>
9
,
'wiki-content-size'
=>
4
,
'wiki-directory-nest-level'
=>
2
'wiki-directory-nest-level'
=>
2
,
'wiki-container-type'
=>
'Project'
)
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