-
Notifications
You must be signed in to change notification settings - Fork 4
/
rubygem-splice_reports.spec
423 lines (358 loc) · 18.8 KB
/
rubygem-splice_reports.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name splice_reports
%define rubyabi 1.9.1
%global katello_bundlerd_dir /usr/share/katello/bundler.d
Summary: Enhanced satellite reporting ruby engine
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 0.0.11
Release: 1%{?dist}
Group: Development/Libraries
License: GPLv2+
URL: https://github.com/splice/splice-reports
Source0: rubygem-%{gem_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Requires: katello
Requires: %{?scl_prefix}ruby(abi) >= %{rubyabi}
Requires: %{?scl_prefix}rubygems
Requires: %{?scl_prefix}rubygem-mongo
Requires: %{?scl_prefix}rubygem-bson_ext
Requires: %{?scl_prefix}rubygem-zipruby
BuildRequires: %{?scl_prefix}rubygems-devel
BuildRequires: %{?scl_prefix}ruby(abi) >= %{rubyabi}
BuildRequires: %{?scl_prefix}rubygems
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
%description
A ruby engine that provides enhanced Satellite reporting
for Katello/SAM
%prep
%setup -n rubygem-%{gem_name}-%{version} -q
mkdir -p .%{gem_dir}
%build
%{?scl:scl enable %{scl} "}
cd src && gem build %{gem_name}.gemspec && cd ..
gem install --local --no-wrappers --install-dir .%{gem_dir} \
--force src/%{gem_name}-%{version}.gem --no-rdoc --no-ri
%{?scl:"}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/etc/splice
mkdir -p %{buildroot}/etc/pki/splice
mkdir -p %{buildroot}%{gem_dir}
mkdir -p %{buildroot}%{katello_bundlerd_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
cat <<GEMFILE > %{buildroot}%{katello_bundlerd_dir}/%{gem_name}.rb
gem 'splice_reports'
GEMFILE
cp etc/splice/splice_reports.yml %{buildroot}/etc/splice/
# TODO this will be replaced with a RPM that delivers the public key
cp etc/pki/splice/splice_reports_key.gpg.pub %{buildroot}/etc/pki/splice
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config /etc/splice/splice_reports.yml
/etc/pki/splice/splice_reports_key.gpg.pub
%{gem_dir}
%{gem_spec}
%{katello_bundlerd_dir}/splice_reports.rb
%changelog
* Mon Sep 09 2013 Chris Duryee (beav) <[email protected]>
- version bump ([email protected])
- 1005108: fix link back to system details in katello ([email protected])
* Tue Sep 03 2013 Chris Duryee (beav) <[email protected]>
- bump version ([email protected])
* Tue Sep 03 2013 Chris Duryee (beav) <[email protected]>
- 1003625: add quotes to text fields in export ([email protected])
* Tue Aug 27 2013 Chris Duryee (beav) <[email protected]>
- rev version in version.rb ([email protected])
- 998863 - No field to specify a Satellite Server present when creating a
filter ([email protected])
- Fixed report export so redundant "SYSTEM ID" now says "DB ID"
* Wed Aug 21 2013 Chris Duryee (beav) <[email protected]>
- bump gem version to 0.0.7 ([email protected])
- bump gem version to 0.0.6 ([email protected])
* Wed Aug 21 2013 Chris Duryee (beav) <[email protected]>
- use version tagger ([email protected])
* Tue Aug 20 2013 Chris Duryee (beav) <[email protected]>
- 999027: only filter deleted systems with date in range ([email protected])
* Thu Aug 15 2013 Chris Duryee (beav) <[email protected]>
- 996636: remove empty doc subpackage ([email protected])
* Thu Aug 08 2013 John Matthews <[email protected]> 0.0.5-40
- Fix so filters are sorted with the default Red Hat filter on top
- Updated list of inactive systems to filter deleted systems, fixes issue with
inactive system report in future ([email protected])
- 995132: remove double-validation of some form fields ([email protected])
- 995202: always use experimental UI for report view ([email protected])
* Thu Aug 08 2013 John Matthews <[email protected]> 0.0.5-39
- Updated column headers on export to match column names from webui
* Wed Jul 31 2013 Chris Duryee (beav) <[email protected]>
- Merge branch 'master' of github.com:splice/splice-reports
- css to max out columns to the left of details ([email protected])
- fixed default report filter spacing ([email protected])
* Fri Jul 26 2013 Wes Hayutin <[email protected]> 0.0.5-37
- unable to get this working w/o two clicks.. but adding selected class from
katello vs underline ([email protected])
- changing the details panel to snap to the left hand column vs. lining up to
the right ([email protected])
- changed the wording from total systems -> Subscribed Systems in the dashboard
- fix db seed .. change array to string for state ([email protected])
- underline of details navigation working w/ two clicks... not there yet
- trying to underline links in details ([email protected])
- fixing some uxd bugs ([email protected])
* Tue Jul 23 2013 Chris Duryee (beav) <[email protected]>
- add cloude and katello-cli shared folders ([email protected])
- update sample data to use key organization_label ([email protected])
- Merge branch 'master' of github.com:splice/splice-reports
- change organization_id to organziation_label ([email protected])
- fixed up sample data for ec2 build
* Fri Jul 19 2013 wes hayutin <[email protected]> 0.0.5-35
- updated query to pull the second to last checkin for the previous mpu before
a delete mpu ([email protected])
- had to sanitize the checkin list and remove the link for deleted systems in
the checkin list ([email protected])
- added some checking of previous mpu's ([email protected])
- fixed sanitized loop ([email protected])
- need to make sure the limit is atleast 2 ([email protected])
- remove debug statements ([email protected])
- first pass at sanitizing deleted records ([email protected])
- something is chomping off the last letter in katello using Route.
* Wed Jul 17 2013 wes hayutin <[email protected]> 0.0.5-34
- bz#978377 fix filter popup capitalization ([email protected])
* Wed Jul 17 2013 wes hayutin <[email protected]> 0.0.5-33
- found bug w/ query if active was not selected ([email protected])
- added tipsy tips for filters ([email protected])
- changed default report to active/inactive ([email protected])
* Wed Jul 17 2013 wes hayutin <[email protected]> 0.0.5-32
- added more validation for the filters, also changed status to Subscription
Status on the filter pages ([email protected])
- add lifecycle state to filter help popup ([email protected])
- fix filter state array ([email protected])
- update filter, edit filter for lifecycle state. Update reports controller for
lifecycle state ([email protected])
- first pass at adding deleted systems, have it all in one report atm
- Fix timestamp on tag for devel env ([email protected])
- 977445 - ruby193-rubygem-splice_reports has wrong license file packaged
* Tue Jul 16 2013 John Matthews <[email protected]> 0.0.5-31
- 977453 - splice components should use same license ([email protected])
- Added run of 'rails s' at end of devel env setup scripts
- Scripts to launch a katello/splice devel env in EC-2 ([email protected])
- Fix missing 'echo' in script ([email protected])
- added tests, modified the way populate data works, updated setup_splice
- fix call to get dates ([email protected])
- added some more help messages to vagrant devel setup ([email protected])
- add sample data to build ([email protected])
- Added more instructions at end of splice install ([email protected])
- Added an error message when katello-reset-dbs fails, prompts user to ensure
katello has been refreshed ([email protected])
- remove sublime files ([email protected])
- install sst ([email protected])
- fixed merge conflict ([email protected])
- merge in nutupane ([email protected])
- breaking out a report_index.js file.. ([email protected])
- the tipsy info on the report keeps interfering w/ the dashboard and becomes
hidden behind the other objects.. The top left hand corner is a safer spot to
place this tip for now ([email protected])
- del mpu file if created ([email protected])
- first pass at combining active, inactive and deleted systems
- updated data load scripts ([email protected])
- committed changes for the updated nutupane, added Routes, nutupane is now
instantiated ([email protected])
* Tue Jul 02 2013 wes hayutin <[email protected]> 0.0.5-30
- Merge branch 'wes_test' ([email protected])
- broke out the mongo aggragtion into its own class, and changed the cuke tests
to use that class ([email protected])
- Update vagrant devel to cleanup prior setups with katello db/schema.rb, also
save setup runs to separate log files ([email protected])
- Fix syntax issue with clear splice script ([email protected])
- adding more tests ([email protected])
- Clear prior splice_reports installs when using Vagrant ([email protected])
- have cuke running queries successfully ([email protected])
- Do not run "railties:install:migrations" ([email protected])
- Move common vars to env_vars ([email protected])
- Ignore .vagrant ([email protected])
- Update so KATELLO_GIT_PATH is consistent with both scripts
- first pass at breaking out the mongo aggregtion query, have it running
independently of rails ([email protected])
- Change location of Katello checkout to be relative to this directory
- Updating gems for rspec/cucumber ([email protected])
- Adding scripts to launcha katello+splice devel env in a VM. Needs more work
on splice integration to Katello ([email protected])
* Mon Jun 24 2013 wes hayutin <[email protected]> 0.0.5-29
- changed fitler removal message s/provider/filter/ ([email protected])
* Mon Jun 24 2013 wes hayutin <[email protected]> 0.0.5-28
- bz#977314 fix for check-in's not found when there are older and newer
checkins than the specified date range ([email protected])
* Wed Jun 19 2013 wes hayutin <[email protected]> 0.0.5-27
- finally have a working query for active and inactive systems.. inactive =
find latest checkin for each instance.. if a checkin is not gt than
start_date => inactive ([email protected])
- update playpen script ([email protected])
* Wed Jun 19 2013 John Matthews <[email protected]> 0.0.5-26
- Update path for pub key ([email protected])
* Wed Jun 19 2013 John Matthews <[email protected]> 0.0.5-25
- Update spec to install pub key from etc/pki instead of playpen/example
* Wed Jun 19 2013 John Matthews <[email protected]> 0.0.5-24
- Update public gpg key with beta key, private is in internal cloude.git
* Wed Jun 19 2013 John Matthews <[email protected]> 0.0.5-23
- missed a row ([email protected])
- update test data ([email protected])
- moved the date filter back in front of the mongo grouping, put an end date on
inactive queries and increased the checkin detail limit from 50 to 250
* Mon Jun 17 2013 John Matthews <[email protected]> 0.0.5-22
- adding another example json file ([email protected])
- del mpu file if created ([email protected])
- updated data load scripts ([email protected])
- changed status sort to DESCENDING, still not working ideally.. when the table
is paginated the sort does not work as expected ([email protected])
- fix for pagination not working.. count was set to page instead of total
* Thu Jun 13 2013 wes hayutin <[email protected]> 0.0.5-21
- added gpl notice ([email protected])
* Thu Jun 13 2013 wes hayutin <[email protected]> 0.0.5-20
- moved date back to after the mongo group, also reverted the count to cycle
through the systems. This is much slower but with deleted and inactive
systems getting added we need to simplify ([email protected])
* Fri Jun 07 2013 John Matthews <[email protected]> 0.0.5-19
-
* Fri Jun 07 2013 wes hayutin <[email protected]> 0.0.5-18
- moving the matching date range before the mongo agg. grouping to fix a bug
where checkins were not found, however the checkin count was found
- updated system not found message ([email protected])
* Thu Jun 06 2013 wes hayutin <[email protected]> 0.0.5-17
- added tool tips for filter creation ([email protected])
* Wed Jun 05 2013 John Matthews <[email protected]> 0.0.5-16
- Getting ready to build in brew ([email protected])
- add some spacing if the filter description is very long ([email protected])
- fixed some report table rendering issues in firefox ([email protected])
- updated report rules ordering to fix an older checkin showing up in inactive
reports ([email protected])
* Tue Jun 04 2013 wes hayutin <[email protected]> 0.0.5-15
- update to seeds ([email protected])
- change RH Satellite -> Red Hat Satellite ([email protected])
* Tue Jun 04 2013 wes hayutin <[email protected]> 0.0.5-14
- add status to default reprots, and add inactive report ([email protected])
* Mon Jun 03 2013 John Matthews <[email protected]> 0.0.5-13
- Adding a workaround so each time our Rails engine is loaded it will execute
seed.rb This workaround is intended to be removed once Katello adds support
to load seed data from all the engines ([email protected])
- seeds.rb will only create a new default filter if one is not found
- empty out orgs before adding them ([email protected])
- allow default redhat report w/ any will pull all available orgs
- inactive status now can be edited like the other fields ([email protected])
- uploading sample data ([email protected])
* Mon Jun 03 2013 John Matthews <[email protected]> 0.0.5-12
- Update initializer so our db migrations will run when katello runs their own
* Fri May 31 2013 John Matthews <[email protected]> 0.0.5-11
- Adding an initializer to help with precompiling assets ([email protected])
- updated RHN Satellite to RH Satellite ([email protected])
* Fri May 31 2013 Unknown name <[email protected]> 0.0.5-10
- updating css and haml.. to adjust width of _form and _new filter..
* Fri May 31 2013 Unknown name <[email protected]> 0.0.5-9
- bug in nutupane css that slightly misrenders the details page, override css.
Also added some padding to the filter edit page ([email protected])
- move satellite link to the right of the details page ([email protected])
- clean up ([email protected])
- add link to spacewalk system details ([email protected])
- Merge branch 'master' of github.com:splice/splice-reports
- add check to see if query returned value for status ([email protected])
* Thu May 30 2013 John Matthews <[email protected]> 0.0.5-8
- Removing Katello requires as we work through some packaging problems with
asset precompiling with Katello ([email protected])
- made change so hostname and id are shown when details are opened
- refactor for mpu change from date -> checkin_date ([email protected])
- fixed nutupane rendering issue where details was rendered under the table
- seperating hostname and system id, eric is putting in a change to alchemy so
two columns can be displayed, commit f988c9fdbc466e74c5605bde0d81f2001554d180
- reduced the number of times the report query is called from two to one
- move the filter description up the page ([email protected])
- fixed bug in report query that on individual status queries would show the
lastest + status instead of just the latest checkin ([email protected])
- Finally have the counts right for the dashboard, only using the latest
checkin now ([email protected])
- clean up ([email protected])
- the aggregation for counts are picking up additional unique checkins w/ diff
status ([email protected])
- found a better way to aggregate the status counts w/o having to hit the db
three times ([email protected])
- Merge branch 'master' of github.com:splice/splice-reports
- changed dashboard counts, no longer loops through array. Gets counts from
mongo directly ([email protected])
* Wed May 29 2013 John Matthews <[email protected]> 0.0.5-7
- Add config file and gpg pub key to RPM ([email protected])
- add a line break if filter tip orgs is too long ([email protected])
- remove check boxes from table ([email protected])
- clean up new filter page, use labels ([email protected])
- update report controller for the inactive boolean ([email protected])
- changed inactive from an integer to a boolean, changed db, model, controller
and views ([email protected])
- Merge branch 'master' of github.com:splice/splice-reports
- adding help tip for filter creation ([email protected])
* Fri May 24 2013 John Matthews <[email protected]> 0.0.5-6
- Include gem_spec in files of .spec ([email protected])
- fix for type conversion error on tool tip ([email protected])
- little clean up for uxd ([email protected])
- fix tool tip status array ([email protected])
- clean up filter create ([email protected])
- made dates consistent accross all views, set to iso gmt time
* Fri May 24 2013 John Matthews <[email protected]> 0.0.5-5
- Added Requires for bson_ext, mongo, zipruby ([email protected])
- Merge branch 'master' of github.com:splice/splice-reports
- fix bug, always sort status with failures at the top ([email protected])
* Fri May 24 2013 John Matthews <[email protected]> 0.0.5-4
- Update to include %%{gem_dir} instead of %%{gem_instdir}
- few more uxd improvements for details ([email protected])
* Thu May 23 2013 John Matthews <[email protected]> 0.0.5-3
- RPM builds and removed rpmlint warnings ([email protected])
- Back to regular tito Builder ([email protected])
* Thu May 23 2013 John Matthews <[email protected]> 0.0.5-2
- Changing tito to a ReleaseTagger and manual set version.rb to match spec
* Thu May 23 2013 John Matthews <[email protected]> 0.0.5-1
- Removed some comments from spec ([email protected])
- Update tito config ([email protected])
* Thu May 23 2013 John Matthews <[email protected]> 0.0.4-1
- Update Source0 so we can build with tito ([email protected])
* Thu May 23 2013 John Matthews <[email protected]> 0.0.3-1
- Change name of spec to match convention for rubygem packaged rpm
* Thu May 23 2013 John Matthews <[email protected]> 0.0.2-1
- new package built with tito
* Tue May 21 2013 John Matthews <[email protected]> 0.1-1
- Initial packaging ([email protected])