foreman_statistics 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4728ccddc8531f182f6bcf2c29250a3de8dfef2e7dd9987ac9fd782431b3028
4
- data.tar.gz: 2227db4f50f237718e189adaab27a128a586f81cc816abdafd96d8d2dbf61cee
3
+ metadata.gz: 16e30e607469d7d04baec4a0e68f5dfbf8b5bcbd992e6465978089db5852da01
4
+ data.tar.gz: b3454888914a4426634f90493134f6c41f5b1fff1e23d4b4804821e1830ce3d2
5
5
  SHA512:
6
- metadata.gz: 4100dd3c03a548a2724d60ba7c7d986899fb12d7b675d565c395dfecfaace8cc03bf5a726f6eda8d6407980bd264c16b929fb83e156036ab3550222345081854
7
- data.tar.gz: d25813980f43dd399dd5e39da1ffb19bc31bed171ecee7e4903cba89dbbfd9b8b95355d8518fefd7bdd7bc30a9812a969ad9646c826e69f209bb5baec285cd4e
6
+ metadata.gz: 75cadf6efe100a11c4fff5e0d0902bf24caa7aeff4f7fb3be8dc0eebc095c51d24731dbc617e6cf83c3555813c32c5bb75ce512f1e4e50098e97eb81d58de6a4
7
+ data.tar.gz: 1b087e7a64d26f1f5c57ae873edb975ffd947609bae07d1aea8a038a8dbdae4a4476fa5790b24a42372f424852a55861536332baf7d7b9cc8834144337b8f7e2
@@ -10,7 +10,6 @@
10
10
  <%= notifications %>
11
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
12
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
13
- <div id="foremanStatisticsRoot"></div>
13
+ <%= react_component('ForemanStatistics') %>
14
14
  <% end %>
15
15
  <%= render file: "layouts/base" %>
16
- <%= mount_react_component('ForemanStatistics', '#foremanStatisticsRoot') %>
@@ -1,6 +1,6 @@
1
1
  <%= javascript 'charts' %>
2
2
  <% title _("Trends") %>
3
- <% title_actions new_link(_("Add Trend Counter")),
3
+ <% title_actions new_link(_("Add Trend Counter"), engine: foreman_statistics),
4
4
  documentation_button('4.1.3Trends') %>
5
5
 
6
6
  <table class="<%= table_css_classes 'table-fixed' %>">
@@ -7,6 +7,6 @@
7
7
  <p><%= _("Trends in Foreman allow you to track changes in your infrastructure over time. It allows you to track both Foreman related information and to any fact. The Trend pages give a graph of how the number of hosts with that value have changed over time, and list the current hosts.") %></p>
8
8
  <p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.1.3Trends")%></p>
9
9
  <div class="blank-slate-pf-main-action">
10
- <%= new_link(_("Add Trend Counter"), :class => 'btn-lg') %>
10
+ <%= new_link(_("Add Trend Counter"), { engine: foreman_statistics }, :class => 'btn-lg') %>
11
11
  </div>
12
12
  </div>
@@ -1,3 +1,3 @@
1
1
  module ForemanStatistics
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -45,8 +45,9 @@ end
45
45
  namespace :test do
46
46
  desc 'Test ForemanStatistics'
47
47
  Rake::TestTask.new(:foreman_statistics) do |t|
48
- test_dir = File.join(File.dirname(__FILE__), '../..', 'test')
49
- t.libs << ['test', test_dir]
48
+ test_dir = File.expand_path('../../test', __dir__)
49
+ t.libs << 'test'
50
+ t.libs << test_dir
50
51
  t.pattern = "#{test_dir}/**/*_test.rb"
51
52
  t.verbose = true
52
53
  t.warning = false
@@ -0,0 +1,5 @@
1
+ # Autogenerated!
2
+ _('Action with sub plans')
3
+ _('Import facts')
4
+ _('Import Puppet classes')
5
+ _('Remote action:')
@@ -0,0 +1,258 @@
1
+ # foreman_statistics
2
+ #
3
+ # This file is distributed under the same license as foreman_statistics.
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: version 0.0.1\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "PO-Revision-Date: 2014-08-20 08:54+0100\n"
10
+ "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
11
+ "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
12
+ "Language: \n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+
18
+ #: ../app/controllers/foreman_statistics/api/v2/statistics_controller.rb:12
19
+ msgid "Get statistics"
20
+ msgstr ""
21
+
22
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:20
23
+ msgid "List of trends counters"
24
+ msgstr ""
25
+
26
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:25
27
+ msgid "Show a trend"
28
+ msgstr ""
29
+
30
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:29
31
+ msgid "Create a trend counter"
32
+ msgstr ""
33
+
34
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:42
35
+ msgid "Delete a trend counter"
36
+ msgstr ""
37
+
38
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:6
39
+ msgid "Environment"
40
+ msgstr ""
41
+
42
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:6
43
+ msgid "Operating system"
44
+ msgstr ""
45
+
46
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
47
+ msgid "Model"
48
+ msgstr ""
49
+
50
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
51
+ msgid "Facts"
52
+ msgstr ""
53
+
54
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
55
+ msgid "Host group"
56
+ msgstr ""
57
+
58
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
59
+ msgid "Compute resource"
60
+ msgstr ""
61
+
62
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:14
63
+ msgid "Trend of the last %s days."
64
+ msgstr ""
65
+
66
+ #: ../app/jobs/foreman_statistics/trend_counter_job.rb:20
67
+ msgid "Trend Counter Job"
68
+ msgstr ""
69
+
70
+ #: ../app/models/concerns/foreman_statistics/general_setting_decorations.rb:12
71
+ msgid "Max days for Trends graphs"
72
+ msgstr ""
73
+
74
+ #: ../app/models/concerns/foreman_statistics/general_setting_decorations.rb:12
75
+ msgid "Max trends"
76
+ msgstr ""
77
+
78
+ #: ../app/services/foreman_statistics/statistics.rb:6
79
+ msgid "Architecture Distribution"
80
+ msgstr ""
81
+
82
+ #: ../app/services/foreman_statistics/statistics.rb:7
83
+ msgid "Environment Distribution"
84
+ msgstr ""
85
+
86
+ #: ../app/services/foreman_statistics/statistics.rb:8
87
+ msgid "Host Group Distribution"
88
+ msgstr ""
89
+
90
+ #: ../app/services/foreman_statistics/statistics.rb:9
91
+ msgid "Compute Resource Distribution"
92
+ msgstr ""
93
+
94
+ #: ../app/services/foreman_statistics/statistics.rb:10
95
+ msgid "Number of CPUs"
96
+ msgstr ""
97
+
98
+ #: ../app/services/foreman_statistics/statistics.rb:11
99
+ msgid "Hardware"
100
+ msgstr ""
101
+
102
+ #: ../app/services/foreman_statistics/statistics.rb:12
103
+ msgid "Average Memory Usage"
104
+ msgstr ""
105
+
106
+ #: ../app/services/foreman_statistics/statistics.rb:13
107
+ msgid "Average Swap Usage"
108
+ msgstr ""
109
+
110
+ #: ../app/services/foreman_statistics/statistics.rb:14
111
+ msgid "Class Distribution"
112
+ msgstr ""
113
+
114
+ #: ../app/services/foreman_statistics/statistics.rb:15
115
+ msgid "Location Distribution"
116
+ msgstr ""
117
+
118
+ #: ../app/services/foreman_statistics/statistics.rb:16
119
+ msgid "Organization Distribution"
120
+ msgstr ""
121
+
122
+ #: ../app/services/foreman_statistics/statistics/count_numerical_fact_pair.rb:22
123
+ msgid "free memory"
124
+ msgstr ""
125
+
126
+ #: ../app/services/foreman_statistics/statistics/count_numerical_fact_pair.rb:26
127
+ msgid "used memory"
128
+ msgstr ""
129
+
130
+ #: ../app/views/foreman_statistics/trends/_empty_data.html.erb:1 ../app/views/foreman_statistics/trends/show.html.erb:2
131
+ msgid "Trends for %s"
132
+ msgstr ""
133
+
134
+ #: ../app/views/foreman_statistics/trends/_empty_data.html.erb:4
135
+ msgid "No data for this trend."
136
+ msgstr ""
137
+
138
+ #: ../app/views/foreman_statistics/trends/_form.html.erb:4
139
+ msgid "Please Select"
140
+ msgstr ""
141
+
142
+ #: ../app/views/foreman_statistics/trends/_hosts.html.erb:7
143
+ msgid "Show Host"
144
+ msgstr ""
145
+
146
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:1
147
+ msgid "Edit Trend %s"
148
+ msgstr ""
149
+
150
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:8
151
+ msgid "Fact Name"
152
+ msgstr ""
153
+
154
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:9 ../app/views/foreman_statistics/trends/edit.html.erb:30
155
+ msgid "Display Name"
156
+ msgstr ""
157
+
158
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:43
159
+ msgid "Cancel"
160
+ msgstr ""
161
+
162
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:44
163
+ msgid "Submit"
164
+ msgstr ""
165
+
166
+ #: ../app/views/foreman_statistics/trends/index.html.erb:2 ../app/views/foreman_statistics/trends/welcome.html.erb:1 ../app/views/foreman_statistics/trends/welcome.html.erb:6 ../lib/foreman_statistics/engine.rb:63
167
+ msgid "Trends"
168
+ msgstr ""
169
+
170
+ #: ../app/views/foreman_statistics/trends/index.html.erb:3 ../app/views/foreman_statistics/trends/welcome.html.erb:10
171
+ msgid "Add Trend Counter"
172
+ msgstr ""
173
+
174
+ #: ../app/views/foreman_statistics/trends/index.html.erb:9
175
+ msgid "Name"
176
+ msgstr ""
177
+
178
+ #: ../app/views/foreman_statistics/trends/index.html.erb:10
179
+ msgid "Action"
180
+ msgstr ""
181
+
182
+ #: ../app/views/foreman_statistics/trends/index.html.erb:16
183
+ msgid "Show Trends"
184
+ msgstr ""
185
+
186
+ #: ../app/views/foreman_statistics/trends/index.html.erb:19
187
+ msgid "Edit"
188
+ msgstr ""
189
+
190
+ #: ../app/views/foreman_statistics/trends/index.html.erb:20
191
+ msgid "Delete all the trend history for %s?"
192
+ msgstr ""
193
+
194
+ #: ../app/views/foreman_statistics/trends/index.html.erb:28
195
+ msgid "Last update:"
196
+ msgstr ""
197
+
198
+ #: ../app/views/foreman_statistics/trends/new.html.erb:1
199
+ msgid "Create Trend"
200
+ msgstr ""
201
+
202
+ #: ../app/views/foreman_statistics/trends/show.html.erb:7
203
+ msgid "last %s day"
204
+ msgid_plural "last %s days"
205
+ msgstr[0] ""
206
+ msgstr[1] ""
207
+
208
+ #: ../app/views/foreman_statistics/trends/show.html.erb:8
209
+ msgid "Number of Hosts"
210
+ msgstr ""
211
+
212
+ #: ../app/views/foreman_statistics/trends/show.html.erb:16
213
+ msgid "Hosts"
214
+ msgstr ""
215
+
216
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:7
217
+ msgid "Trends in Foreman allow you to track changes in your infrastructure over time. It allows you to track both Foreman related information and to any fact. The Trend pages give a graph of how the number of hosts with that value have changed over time, and list the current hosts."
218
+ msgstr ""
219
+
220
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:8
221
+ msgid "Learn more about this in the documentation."
222
+ msgstr ""
223
+
224
+ #: ../lib/foreman_statistics/engine.rb:69 ../webpack/src/Router/StatisticsPage/StatisticsPage.js:8
225
+ msgid "Statistics"
226
+ msgstr ""
227
+
228
+ #: ../webpack/src/Components/StatisticsChartsList/index.js:14
229
+ msgid "No data available"
230
+ msgstr ""
231
+
232
+ #: ../webpack/src/Components/StatisticsChartsList/index.js:15
233
+ msgid "Expand the chart"
234
+ msgstr ""
235
+
236
+ #: ../webpack/src/Router/StatisticsPage/Statistics/Statistics.js:13
237
+ msgid "No Charts To Load"
238
+ msgstr ""
239
+
240
+ #: action_names.rb:2
241
+ msgid "Action with sub plans"
242
+ msgstr ""
243
+
244
+ #: action_names.rb:3
245
+ msgid "Import facts"
246
+ msgstr ""
247
+
248
+ #: action_names.rb:4
249
+ msgid "Import Puppet classes"
250
+ msgstr ""
251
+
252
+ #: action_names.rb:5
253
+ msgid "Remote action:"
254
+ msgstr ""
255
+
256
+ #: gemspec.rb:2
257
+ msgid "Statistics and Trends for Foreman gives users overview of their infrastructure."
258
+ msgstr ""
@@ -2,12 +2,10 @@
2
2
  #
3
3
  # This file is distributed under the same license as foreman_statistics.
4
4
  #
5
- #, fuzzy
6
5
  msgid ""
7
6
  msgstr ""
8
7
  "Project-Id-Version: version 0.0.1\n"
9
8
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-08-20 08:46+0100\n"
11
9
  "PO-Revision-Date: 2014-08-20 08:54+0100\n"
12
10
  "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
13
11
  "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
@@ -17,3 +15,184 @@ msgstr ""
17
15
  "Content-Transfer-Encoding: 8bit\n"
18
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
17
 
18
+ msgid "Action"
19
+ msgstr ""
20
+
21
+ msgid "Action with sub plans"
22
+ msgstr ""
23
+
24
+ msgid "Add Trend Counter"
25
+ msgstr ""
26
+
27
+ msgid "Architecture Distribution"
28
+ msgstr ""
29
+
30
+ msgid "Average Memory Usage"
31
+ msgstr ""
32
+
33
+ msgid "Average Swap Usage"
34
+ msgstr ""
35
+
36
+ msgid "Cancel"
37
+ msgstr ""
38
+
39
+ msgid "Class Distribution"
40
+ msgstr ""
41
+
42
+ msgid "Compute Resource Distribution"
43
+ msgstr ""
44
+
45
+ msgid "Compute resource"
46
+ msgstr ""
47
+
48
+ msgid "Create Trend"
49
+ msgstr ""
50
+
51
+ msgid "Create a trend counter"
52
+ msgstr ""
53
+
54
+ msgid "Delete a trend counter"
55
+ msgstr ""
56
+
57
+ msgid "Delete all the trend history for %s?"
58
+ msgstr ""
59
+
60
+ msgid "Display Name"
61
+ msgstr ""
62
+
63
+ msgid "Edit"
64
+ msgstr ""
65
+
66
+ msgid "Edit Trend %s"
67
+ msgstr ""
68
+
69
+ msgid "Environment"
70
+ msgstr ""
71
+
72
+ msgid "Environment Distribution"
73
+ msgstr ""
74
+
75
+ msgid "Expand the chart"
76
+ msgstr ""
77
+
78
+ msgid "Fact Name"
79
+ msgstr ""
80
+
81
+ msgid "Facts"
82
+ msgstr ""
83
+
84
+ msgid "Get statistics"
85
+ msgstr ""
86
+
87
+ msgid "Hardware"
88
+ msgstr ""
89
+
90
+ msgid "Host Group Distribution"
91
+ msgstr ""
92
+
93
+ msgid "Host group"
94
+ msgstr ""
95
+
96
+ msgid "Hosts"
97
+ msgstr ""
98
+
99
+ msgid "Import Puppet classes"
100
+ msgstr ""
101
+
102
+ msgid "Import facts"
103
+ msgstr ""
104
+
105
+ msgid "Last update:"
106
+ msgstr ""
107
+
108
+ msgid "Learn more about this in the documentation."
109
+ msgstr ""
110
+
111
+ msgid "List of trends counters"
112
+ msgstr ""
113
+
114
+ msgid "Location Distribution"
115
+ msgstr ""
116
+
117
+ msgid "Max days for Trends graphs"
118
+ msgstr ""
119
+
120
+ msgid "Max trends"
121
+ msgstr ""
122
+
123
+ msgid "Model"
124
+ msgstr ""
125
+
126
+ msgid "Name"
127
+ msgstr ""
128
+
129
+ msgid "No Charts To Load"
130
+ msgstr ""
131
+
132
+ msgid "No data available"
133
+ msgstr ""
134
+
135
+ msgid "No data for this trend."
136
+ msgstr ""
137
+
138
+ msgid "Number of CPUs"
139
+ msgstr ""
140
+
141
+ msgid "Number of Hosts"
142
+ msgstr ""
143
+
144
+ msgid "Operating system"
145
+ msgstr ""
146
+
147
+ msgid "Organization Distribution"
148
+ msgstr ""
149
+
150
+ msgid "Please Select"
151
+ msgstr ""
152
+
153
+ msgid "Remote action:"
154
+ msgstr ""
155
+
156
+ msgid "Show Host"
157
+ msgstr ""
158
+
159
+ msgid "Show Trends"
160
+ msgstr ""
161
+
162
+ msgid "Show a trend"
163
+ msgstr ""
164
+
165
+ msgid "Statistics"
166
+ msgstr ""
167
+
168
+ msgid "Statistics and Trends for Foreman gives users overview of their infrastructure."
169
+ msgstr ""
170
+
171
+ msgid "Submit"
172
+ msgstr ""
173
+
174
+ msgid "Trend Counter Job"
175
+ msgstr ""
176
+
177
+ msgid "Trend of the last %s days."
178
+ msgstr ""
179
+
180
+ msgid "Trends"
181
+ msgstr ""
182
+
183
+ msgid "Trends for %s"
184
+ msgstr ""
185
+
186
+ msgid "Trends in Foreman allow you to track changes in your infrastructure over time. It allows you to track both Foreman related information and to any fact. The Trend pages give a graph of how the number of hosts with that value have changed over time, and list the current hosts."
187
+ msgstr ""
188
+
189
+ msgid "free memory"
190
+ msgstr ""
191
+
192
+ msgid "last %s day"
193
+ msgid_plural "last %s days"
194
+ msgstr[0] ""
195
+ msgstr[1] ""
196
+
197
+ msgid "used memory"
198
+ msgstr ""
File without changes
@@ -1,19 +1,276 @@
1
- # foreman_statistics
2
- #
3
- # This file is distributed under the same license as foreman_statistics.
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_statistics package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
5
  #
5
6
  #, fuzzy
6
7
  msgid ""
7
8
  msgstr ""
8
- "Project-Id-Version: version 0.0.1\n"
9
+ "Project-Id-Version: foreman_statistics 1.0.0\n"
9
10
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-08-20 08:46+0100\n"
11
- "PO-Revision-Date: 2014-08-20 08:46+0100\n"
12
- "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
13
- "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
11
+ "POT-Creation-Date: 2021-02-04 00:05+0100\n"
12
+ "PO-Revision-Date: 2021-02-04 00:05+0100\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
15
  "Language: \n"
15
16
  "MIME-Version: 1.0\n"
16
17
  "Content-Type: text/plain; charset=UTF-8\n"
17
18
  "Content-Transfer-Encoding: 8bit\n"
18
19
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
20
 
21
+ #: ../app/controllers/foreman_statistics/api/v2/statistics_controller.rb:12
22
+ msgid "Get statistics"
23
+ msgstr ""
24
+
25
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:20
26
+ msgid "List of trends counters"
27
+ msgstr ""
28
+
29
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:25
30
+ msgid "Show a trend"
31
+ msgstr ""
32
+
33
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:29
34
+ msgid "Create a trend counter"
35
+ msgstr ""
36
+
37
+ #: ../app/controllers/foreman_statistics/api/v2/trends_controller.rb:42
38
+ msgid "Delete a trend counter"
39
+ msgstr ""
40
+
41
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:6
42
+ msgid "Environment"
43
+ msgstr ""
44
+
45
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:6
46
+ msgid "Operating system"
47
+ msgstr ""
48
+
49
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
50
+ msgid "Model"
51
+ msgstr ""
52
+
53
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
54
+ msgid "Facts"
55
+ msgstr ""
56
+
57
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
58
+ msgid "Host group"
59
+ msgstr ""
60
+
61
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:7
62
+ msgid "Compute resource"
63
+ msgstr ""
64
+
65
+ #: ../app/helpers/foreman_statistics/trends_helper.rb:14
66
+ msgid "Trend of the last %s days."
67
+ msgstr ""
68
+
69
+ #: ../app/jobs/foreman_statistics/trend_counter_job.rb:20
70
+ msgid "Trend Counter Job"
71
+ msgstr ""
72
+
73
+ #: ../app/models/concerns/foreman_statistics/general_setting_decorations.rb:12
74
+ msgid "Max days for Trends graphs"
75
+ msgstr ""
76
+
77
+ #: ../app/models/concerns/foreman_statistics/general_setting_decorations.rb:12
78
+ msgid "Max trends"
79
+ msgstr ""
80
+
81
+ #: ../app/services/foreman_statistics/statistics.rb:6
82
+ msgid "Architecture Distribution"
83
+ msgstr ""
84
+
85
+ #: ../app/services/foreman_statistics/statistics.rb:7
86
+ msgid "Environment Distribution"
87
+ msgstr ""
88
+
89
+ #: ../app/services/foreman_statistics/statistics.rb:8
90
+ msgid "Host Group Distribution"
91
+ msgstr ""
92
+
93
+ #: ../app/services/foreman_statistics/statistics.rb:9
94
+ msgid "Compute Resource Distribution"
95
+ msgstr ""
96
+
97
+ #: ../app/services/foreman_statistics/statistics.rb:10
98
+ msgid "Number of CPUs"
99
+ msgstr ""
100
+
101
+ #: ../app/services/foreman_statistics/statistics.rb:11
102
+ msgid "Hardware"
103
+ msgstr ""
104
+
105
+ #: ../app/services/foreman_statistics/statistics.rb:12
106
+ msgid "Average Memory Usage"
107
+ msgstr ""
108
+
109
+ #: ../app/services/foreman_statistics/statistics.rb:13
110
+ msgid "Average Swap Usage"
111
+ msgstr ""
112
+
113
+ #: ../app/services/foreman_statistics/statistics.rb:14
114
+ msgid "Class Distribution"
115
+ msgstr ""
116
+
117
+ #: ../app/services/foreman_statistics/statistics.rb:15
118
+ msgid "Location Distribution"
119
+ msgstr ""
120
+
121
+ #: ../app/services/foreman_statistics/statistics.rb:16
122
+ msgid "Organization Distribution"
123
+ msgstr ""
124
+
125
+ #:
126
+ #: ../app/services/foreman_statistics/statistics/count_numerical_fact_pair.rb:22
127
+ msgid "free memory"
128
+ msgstr ""
129
+
130
+ #:
131
+ #: ../app/services/foreman_statistics/statistics/count_numerical_fact_pair.rb:26
132
+ msgid "used memory"
133
+ msgstr ""
134
+
135
+ #: ../app/views/foreman_statistics/trends/_empty_data.html.erb:1
136
+ #: ../app/views/foreman_statistics/trends/show.html.erb:2
137
+ msgid "Trends for %s"
138
+ msgstr ""
139
+
140
+ #: ../app/views/foreman_statistics/trends/_empty_data.html.erb:4
141
+ msgid "No data for this trend."
142
+ msgstr ""
143
+
144
+ #: ../app/views/foreman_statistics/trends/_form.html.erb:4
145
+ msgid "Please Select"
146
+ msgstr ""
147
+
148
+ #: ../app/views/foreman_statistics/trends/_hosts.html.erb:7
149
+ msgid "Show Host"
150
+ msgstr ""
151
+
152
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:1
153
+ msgid "Edit Trend %s"
154
+ msgstr ""
155
+
156
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:8
157
+ msgid "Fact Name"
158
+ msgstr ""
159
+
160
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:9
161
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:30
162
+ msgid "Display Name"
163
+ msgstr ""
164
+
165
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:43
166
+ msgid "Cancel"
167
+ msgstr ""
168
+
169
+ #: ../app/views/foreman_statistics/trends/edit.html.erb:44
170
+ msgid "Submit"
171
+ msgstr ""
172
+
173
+ #: ../app/views/foreman_statistics/trends/index.html.erb:2
174
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:1
175
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:6
176
+ #: ../lib/foreman_statistics/engine.rb:63
177
+ msgid "Trends"
178
+ msgstr ""
179
+
180
+ #: ../app/views/foreman_statistics/trends/index.html.erb:3
181
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:10
182
+ msgid "Add Trend Counter"
183
+ msgstr ""
184
+
185
+ #: ../app/views/foreman_statistics/trends/index.html.erb:9
186
+ msgid "Name"
187
+ msgstr ""
188
+
189
+ #: ../app/views/foreman_statistics/trends/index.html.erb:10
190
+ msgid "Action"
191
+ msgstr ""
192
+
193
+ #: ../app/views/foreman_statistics/trends/index.html.erb:16
194
+ msgid "Show Trends"
195
+ msgstr ""
196
+
197
+ #: ../app/views/foreman_statistics/trends/index.html.erb:19
198
+ msgid "Edit"
199
+ msgstr ""
200
+
201
+ #: ../app/views/foreman_statistics/trends/index.html.erb:20
202
+ msgid "Delete all the trend history for %s?"
203
+ msgstr ""
204
+
205
+ #: ../app/views/foreman_statistics/trends/index.html.erb:28
206
+ msgid "Last update:"
207
+ msgstr ""
208
+
209
+ #: ../app/views/foreman_statistics/trends/new.html.erb:1
210
+ msgid "Create Trend"
211
+ msgstr ""
212
+
213
+ #: ../app/views/foreman_statistics/trends/show.html.erb:7
214
+ msgid "last %s day"
215
+ msgid_plural "last %s days"
216
+ msgstr[0] ""
217
+ msgstr[1] ""
218
+
219
+ #: ../app/views/foreman_statistics/trends/show.html.erb:8
220
+ msgid "Number of Hosts"
221
+ msgstr ""
222
+
223
+ #: ../app/views/foreman_statistics/trends/show.html.erb:16
224
+ msgid "Hosts"
225
+ msgstr ""
226
+
227
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:7
228
+ msgid ""
229
+ "Trends in Foreman allow you to track changes in your infrastructure over time."
230
+ " It allows you to track both Foreman related information and to any fact. The "
231
+ "Trend pages give a graph of how the number of hosts with that value have chang"
232
+ "ed over time, and list the current hosts."
233
+ msgstr ""
234
+
235
+ #: ../app/views/foreman_statistics/trends/welcome.html.erb:8
236
+ msgid "Learn more about this in the documentation."
237
+ msgstr ""
238
+
239
+ #: ../lib/foreman_statistics/engine.rb:69
240
+ #: ../webpack/src/Router/StatisticsPage/StatisticsPage.js:8
241
+ msgid "Statistics"
242
+ msgstr ""
243
+
244
+ #: ../webpack/src/Components/StatisticsChartsList/index.js:14
245
+ msgid "No data available"
246
+ msgstr ""
247
+
248
+ #: ../webpack/src/Components/StatisticsChartsList/index.js:15
249
+ msgid "Expand the chart"
250
+ msgstr ""
251
+
252
+ #: ../webpack/src/Router/StatisticsPage/Statistics/Statistics.js:13
253
+ msgid "No Charts To Load"
254
+ msgstr ""
255
+
256
+ #: action_names.rb:2
257
+ msgid "Action with sub plans"
258
+ msgstr ""
259
+
260
+ #: action_names.rb:3
261
+ msgid "Import facts"
262
+ msgstr ""
263
+
264
+ #: action_names.rb:4
265
+ msgid "Import Puppet classes"
266
+ msgstr ""
267
+
268
+ #: action_names.rb:5
269
+ msgid "Remote action:"
270
+ msgstr ""
271
+
272
+ #: gemspec.rb:2
273
+ msgid ""
274
+ "Statistics and Trends for Foreman gives users overview of their infrastructure"
275
+ "."
276
+ msgstr ""
data/locale/gemspec.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  # Matches foreman_statistics.gemspec
2
- _('TODO: Description of ForemanStatistics.')
2
+ _('Statistics and Trends for Foreman gives users overview of their infrastructure.')
@@ -1,4 +1,4 @@
1
- require_relative '../../../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  class ForemanStatistics::Api::V2::StatisticsControllerTest < ActionController::TestCase
4
4
  setup do
@@ -1,4 +1,4 @@
1
- require_relative '../../../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  class ForemanStatistics::Api::V2::TrendsControllerTest < ActionController::TestCase
4
4
  setup do
@@ -1,4 +1,4 @@
1
- require_relative '../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  module ForemanStatistics
4
4
  class StatisticsControllerTest < ActionController::TestCase
@@ -7,16 +7,14 @@ module ForemanStatistics
7
7
  end
8
8
 
9
9
  test 'user with viewer rights should succeed in viewing statistics' do
10
- @request.session[:user] = users(:one).id
11
- users(:one).roles = [Role.default, Role.find_by(name: 'Viewer')]
12
- get :index, session: set_session_user
10
+ setup_user('view', 'statistics')
11
+ get :index, session: set_session_user(:one)
13
12
  assert_response :success
14
13
  end
15
14
 
16
15
  test 'user with viewer rights should succeed in requesting statistics data via ajax' do
17
- @request.session[:user] = users(:one).id
18
- users(:one).roles = [Role.default, Role.find_by(name: 'Viewer')]
19
- get :show, params: { :id => 'operatingsystem', :format => 'json' }, session: set_session_user
16
+ setup_user('view', 'statistics')
17
+ get :show, params: { :id => 'operatingsystem', :format => 'json' }, session: set_session_user(:one)
20
18
  assert_response :success
21
19
  end
22
20
  end
@@ -1,4 +1,4 @@
1
- require_relative '../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  module ForemanStatistics
4
4
  class TrendsControllerTest < ActionController::TestCase
@@ -46,14 +46,14 @@ module ForemanStatistics
46
46
  test 'should render correct per_page value' do
47
47
  get :index, params: { per_page: entries_per_page + 1 }, session: set_session_user
48
48
  assert_response :success
49
- per_page_results = response.body.scan(/perPage":\d+/).first.gsub(/[^\d]/, '').to_i
49
+ per_page_results = response.body.scan(/perPage&quot;:(\d+)/).first.first.to_i
50
50
  assert_equal entries_per_page, per_page_results
51
51
  end
52
52
 
53
53
  test 'should render per page dropdown with correct values' do
54
54
  get :index, params: { per_page: entries_per_page + 1 }, session: set_session_user
55
55
  assert_response :success
56
- assert_not_nil response.body['perPageOptions":[5,6,10,15,25,50]']
56
+ assert_not_nil response.body['perPageOptions&quot;:[5,6,10,15,25,50]']
57
57
  end
58
58
 
59
59
  test 'sort links should include per page param' do
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  module ForemanStatistics
4
4
  class TrendCounterTest < ActiveSupport::TestCase
@@ -1,4 +1,4 @@
1
- require_relative '../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  module ForemanStatistics
4
4
  class TrendTest < ActiveSupport::TestCase
@@ -1,4 +1,4 @@
1
- require 'test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
  require 'unit/shared/access_permissions_test_base'
3
3
 
4
4
  # Permissions are added in AccessPermissions with lists of controllers and
@@ -1,4 +1,4 @@
1
- require_relative '../../test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  module ForemanStatistics
4
4
  class StatisticsTest < ActiveSupport::TestCase
@@ -1,4 +1,4 @@
1
- require 'test_plugin_helper'
1
+ require 'test_statistics_helper'
2
2
 
3
3
  class ForemanStatisticsTest < ActiveSupport::TestCase
4
4
  setup do
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'test_statistics_helper'
2
2
  require 'rake'
3
3
 
4
4
  class ForemanStatisticsTasksTest < ActiveSupport::TestCase
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-09 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -143,7 +143,11 @@ files:
143
143
  - lib/foreman_statistics/version.rb
144
144
  - lib/tasks/foreman_statistics_tasks.rake
145
145
  - locale/Makefile
146
+ - locale/action_names.rb
147
+ - locale/en/LC_MESSAGES/foreman_statistics.mo
148
+ - locale/en/foreman_statistics.edit.po
146
149
  - locale/en/foreman_statistics.po
150
+ - locale/en/foreman_statistics.po.time_stamp
147
151
  - locale/foreman_statistics.pot
148
152
  - locale/gemspec.rb
149
153
  - package.json
@@ -156,7 +160,7 @@ files:
156
160
  - test/functional/foreman_statistics/trends_controller_test.rb
157
161
  - test/models/foreman_statistics/trend_counter_test.rb
158
162
  - test/models/foreman_statistics/trend_test.rb
159
- - test/test_plugin_helper.rb
163
+ - test/test_statistics_helper.rb
160
164
  - test/unit/foreman_statistics/access_permissions_test.rb
161
165
  - test/unit/foreman_statistics/statistics_test.rb
162
166
  - test/unit/foreman_statistics_test.rb
@@ -232,11 +236,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
236
  - !ruby/object:Gem::Version
233
237
  version: '0'
234
238
  requirements: []
235
- rubygems_version: 3.0.3
239
+ rubygems_version: 3.1.4
236
240
  signing_key:
237
241
  specification_version: 4
238
242
  summary: Add Statistics and Trends.
239
243
  test_files:
244
+ - test/test_statistics_helper.rb
240
245
  - test/functional/foreman_statistics/trends_controller_test.rb
241
246
  - test/functional/foreman_statistics/statistics_controller_test.rb
242
247
  - test/functional/foreman_statistics/api/v2/trends_controller_test.rb
@@ -250,4 +255,3 @@ test_files:
250
255
  - test/factories/foreman_statistics_factories.rb
251
256
  - test/fixtures/settings.yml
252
257
  - test/fixtures/permissions.yml
253
- - test/test_plugin_helper.rb