foreman_statistics 0.1.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_statistics/api/v2/statistics_controller.rb +9 -1
  3. data/app/controllers/foreman_statistics/api/v2/trends_controller.rb +8 -0
  4. data/app/jobs/foreman_statistics/trend_counter_job.rb +23 -0
  5. data/app/views/foreman_statistics/layouts/application_react.html.erb +1 -2
  6. data/app/views/foreman_statistics/trends/_empty_data.html.erb +0 -1
  7. data/app/views/foreman_statistics/trends/index.html.erb +3 -12
  8. data/app/views/foreman_statistics/trends/welcome.html.erb +1 -1
  9. data/db/migrate/20200605153005_migrate_core_types.rb +6 -2
  10. data/lib/foreman_statistics/engine.rb +7 -1
  11. data/lib/foreman_statistics/version.rb +1 -1
  12. data/lib/tasks/foreman_statistics_tasks.rake +3 -2
  13. data/locale/action_names.rb +5 -0
  14. data/locale/en/LC_MESSAGES/foreman_statistics.mo +0 -0
  15. data/locale/en/foreman_statistics.edit.po +258 -0
  16. data/locale/en/foreman_statistics.po +181 -2
  17. data/locale/en/foreman_statistics.po.time_stamp +0 -0
  18. data/locale/foreman_statistics.pot +265 -8
  19. data/locale/gemspec.rb +1 -1
  20. data/package.json +43 -0
  21. data/test/functional/foreman_statistics/api/v2/statistics_controller_test.rb +1 -1
  22. data/test/functional/foreman_statistics/api/v2/trends_controller_test.rb +1 -1
  23. data/test/functional/foreman_statistics/statistics_controller_test.rb +5 -7
  24. data/test/functional/foreman_statistics/trends_controller_test.rb +3 -3
  25. data/test/models/foreman_statistics/trend_counter_test.rb +1 -1
  26. data/test/models/foreman_statistics/trend_test.rb +1 -1
  27. data/test/{test_plugin_helper.rb → test_statistics_helper.rb} +0 -0
  28. data/test/unit/foreman_statistics/access_permissions_test.rb +1 -1
  29. data/test/unit/foreman_statistics/statistics_test.rb +1 -1
  30. data/test/unit/foreman_statistics_test.rb +1 -1
  31. data/test/unit/tasks/foreman_statistics_tasks_test.rb +1 -1
  32. data/webpack/__mocks__/foremanReact/API.js +7 -0
  33. data/webpack/__mocks__/foremanReact/common/HOC.js +24 -0
  34. data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
  35. data/webpack/__mocks__/foremanReact/common/helpers.js +1 -0
  36. data/webpack/__mocks__/foremanReact/common/urlHelpers.js +1 -0
  37. data/webpack/__mocks__/foremanReact/components/ChartBox/index.js +2 -0
  38. data/webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalActions.js +2 -0
  39. data/webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js +10 -0
  40. data/webpack/__mocks__/foremanReact/components/ForemanModal/index.js +4 -0
  41. data/webpack/__mocks__/foremanReact/components/Layout/LayoutActions.js +2 -0
  42. data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +2 -0
  43. data/webpack/__mocks__/foremanReact/components/common/EmptyState.js +5 -0
  44. data/webpack/__mocks__/foremanReact/components/common/MessageBox.js +4 -0
  45. data/webpack/__mocks__/foremanReact/components/common/dates/LongDateTime.js +5 -0
  46. data/webpack/__mocks__/foremanReact/components/common/dates/RelativeDateTime.js +3 -0
  47. data/webpack/__mocks__/foremanReact/components/common/table.js +5 -0
  48. data/webpack/__mocks__/foremanReact/components/common/table/actionsHelpers/actionTypeCreator.js +7 -0
  49. data/webpack/__mocks__/foremanReact/constants.js +24 -0
  50. data/webpack/__mocks__/foremanReact/readme.md +11 -0
  51. data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
  52. data/webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js +10 -0
  53. data/webpack/__mocks__/foremanReact/routes/common/PageLayout/components/ExportButton/ExportButton.js +5 -0
  54. data/webpack/__mocks__/foremanReact/routes/common/reducerHOC/withDataReducer.js +35 -0
  55. data/webpack/fills_index.js +15 -0
  56. data/webpack/index.js +21 -0
  57. data/webpack/src/Components/StatisticsChartsList/StatisticsChartsList.fixtures.js +19 -0
  58. data/webpack/src/Components/StatisticsChartsList/StatisticsChartsList.test.js +18 -0
  59. data/webpack/src/Components/StatisticsChartsList/StatisticsChartsListStyles.scss +28 -0
  60. data/webpack/src/Components/StatisticsChartsList/__snapshots__/StatisticsChartsList.test.js.snap +42 -0
  61. data/webpack/src/Components/StatisticsChartsList/index.js +32 -0
  62. data/webpack/src/ForemanStatistics.js +11 -0
  63. data/webpack/src/Router/StatisticsPage/Statistics/Statistics.js +27 -0
  64. data/webpack/src/Router/StatisticsPage/StatisticsPage.fixtures.js +11 -0
  65. data/webpack/src/Router/StatisticsPage/StatisticsPage.js +21 -0
  66. data/webpack/src/Router/StatisticsPage/StatisticsPageActions.js +43 -0
  67. data/webpack/src/Router/StatisticsPage/StatisticsPageSelectors.js +13 -0
  68. data/webpack/src/Router/StatisticsPage/__tests__/StatisticsPage.test.js +12 -0
  69. data/webpack/src/Router/StatisticsPage/__tests__/StatisticsPageActions.test.js +27 -0
  70. data/webpack/src/Router/StatisticsPage/__tests__/StatisticsPageSelectors.test.js +34 -0
  71. data/webpack/src/Router/StatisticsPage/__tests__/__snapshots__/StatisticsPage.test.js.snap +32 -0
  72. data/webpack/src/Router/StatisticsPage/__tests__/__snapshots__/StatisticsPageActions.test.js.snap +54 -0
  73. data/webpack/src/Router/StatisticsPage/__tests__/__snapshots__/StatisticsPageSelectors.test.js.snap +35 -0
  74. data/webpack/src/Router/StatisticsPage/constants.js +4 -0
  75. data/webpack/src/Router/StatisticsPage/index.js +36 -0
  76. data/webpack/src/Router/__snapshots__/routes.test.js.snap +47 -0
  77. data/webpack/src/Router/index.js +14 -0
  78. data/webpack/src/Router/routes.js +11 -0
  79. data/webpack/src/Router/routes.test.js +27 -0
  80. data/webpack/src/index.js +1 -0
  81. data/webpack/src/reducers.js +9 -0
  82. data/webpack/src/trends.js +7 -0
  83. data/webpack/src/trends.test.js +44 -0
  84. metadata +67 -9
@@ -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 ""