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
f6ebde4c
Commit
f6ebde4c
authored
Jul 03, 2017
by
Toon Claes
Committed by
Toon Claes
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Audit Events to License model
parent
6f1b2005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/models/license.rb
app/models/license.rb
+4
-0
No files found.
app/models/license.rb
View file @
f6ebde4c
class
License
<
ActiveRecord
::
Base
include
ActionView
::
Helpers
::
NumberHelper
AUDIT_EVENTS_FEATURE
=
'GitLab_AuditEvents'
.
freeze
AUDITOR_USER_FEATURE
=
'GitLab_Auditor_User'
.
freeze
BURNDOWN_CHARTS_FEATURE
=
'GitLab_BurndownCharts'
.
freeze
CONTRIBUTION_ANALYTICS_FEATURE
=
'GitLab_ContributionAnalytics'
.
freeze
...
...
@@ -36,6 +37,7 @@ class License < ActiveRecord::Base
variable_environment_scope:
VARIABLE_ENVIRONMENT_SCOPE_FEATURE
,
# Features that make sense to Namespace:
audit_events:
AUDIT_EVENTS_FEATURE
,
burndown_charts:
BURNDOWN_CHARTS_FEATURE
,
contribution_analytics:
CONTRIBUTION_ANALYTICS_FEATURE
,
deploy_board:
DEPLOY_BOARD_FEATURE
,
...
...
@@ -61,6 +63,7 @@ class License < ActiveRecord::Base
EARLY_ADOPTER_PLAN
=
'early_adopter'
.
freeze
EES_FEATURES
=
[
{
AUDIT_EVENTS_FEATURE
=>
1
},
{
BURNDOWN_CHARTS_FEATURE
=>
1
},
{
CONTRIBUTION_ANALYTICS_FEATURE
=>
1
},
{
ELASTIC_SEARCH_FEATURE
=>
1
},
...
...
@@ -103,6 +106,7 @@ class License < ActiveRecord::Base
# Early adopters should not earn new features as they're
# introduced.
EARLY_ADOPTER_FEATURES
=
[
{
AUDIT_EVENTS_FEATURE
=>
1
},
{
AUDITOR_USER_FEATURE
=>
1
},
{
BURNDOWN_CHARTS_FEATURE
=>
1
},
{
CONTRIBUTION_ANALYTICS_FEATURE
=>
1
},
...
...
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