Commit Graph

59 Commits

Author SHA1 Message Date
Joe Fiorini
caeefa4f7e [system_tracking] Monkey-patching module objects == bad idea 2015-06-17 17:23:59 -04:00
Joe Fiorini
159ad0d2a9 [system_tracking] Display error when no scans for a particular date 2015-06-17 17:23:59 -04:00
Joe Fiorini
5a0ba44155 [system_tracking] Default both date pickers to today's date 2015-06-17 17:23:59 -04:00
Joe Fiorini
aec91bc13e [system_tracking] Disable dates on right prior to dates on left 2015-06-17 17:23:59 -04:00
Joe Fiorini
dbb8c649de [system_tracking] Refactor angular modules 2015-06-17 17:23:59 -04:00
Joe Fiorini
6edee0a864 Present a single date picker for host-to-host 2015-06-17 15:48:10 -04:00
John Mitchell
4cd5d9ab23 fix logic of active module check 2015-06-16 16:39:35 -04:00
John Mitchell
9238d8b55d disabled the buttons on system tracking page from being clickable 2015-06-16 16:15:59 -04:00
Joe Fiorini
ef0e7d8f0d Merge pull request #284 from joefiorini/system-tracking--displayKeys
Adds support for formatting individual fact values
2015-06-16 09:28:57 -04:00
Joe Fiorini
09db79cfd7 [system_tracking] Fix reversal of ansible facts 2015-06-15 17:12:31 -04:00
Joe Fiorini
61807efb9b Allow fact template to flatten or keep key/value structure 2015-06-15 16:53:43 -04:00
Joe Fiorini
ad0f267435 [system_tracking] Extract parameters into options object 2015-06-12 13:50:28 -04:00
Joe Fiorini
b0d773325b [system_tracking] Refactor flat comparison logic 2015-06-12 09:38:53 -04:00
Joe Fiorini
06da1e16c2 Add tests for fact template rendering 2015-06-11 16:14:04 -04:00
Joe Fiorini
aed496a069 Add tests for flat fact comparison 2015-06-11 12:22:58 -04:00
Joe Fiorini
9f6d93760e [system_tracking] Fix flexbox table styling in IE11 2015-06-10 14:20:33 -04:00
Joe Fiorini
7374ebd7d9 [system_tracking] Display entire keypath for nested facts 2015-06-10 13:07:37 -04:00
Joe Fiorini
cca0b08f68 [system_tracking] Highlight rows on hover/with diffs 2015-06-10 13:07:37 -04:00
Joe Fiorini
fc361336da [system_tracking] Truncate long values in nested facts 2015-06-10 13:07:37 -04:00
Joe Fiorini
419bc3dd1c [system_tracking] Match button group colors to dashboard 2015-06-09 10:50:56 -04:00
Joe Fiorini
0016744e1f [system_tracking] Clarify wording on date picker labels 2015-06-09 10:50:56 -04:00
Joe Fiorini
f38709e55e [system_tracking] Adjust headings and add table row hover 2015-06-09 10:50:56 -04:00
Joe Fiorini
cf04337712 Fix display of nested facts 2015-06-08 09:37:19 -04:00
Joe Fiorini
cb17209c04 jshint fix 2015-06-08 09:18:22 -04:00
Joe Fiorini
d2c7d7331d Fix issue with host columns getting flipped 2015-06-05 16:49:47 -04:00
Joe Fiorini
dae25b7123 Move check to outer scope for great performance 2015-06-05 16:49:47 -04:00
Joe Fiorini
63b7ec8b67 Move data request into controller to speed up page load 2015-06-05 16:49:47 -04:00
Joe Fiorini
f188ca79d6 Use rejected promise to handle errors without throwing 2015-06-04 17:09:33 -04:00
Joe Fiorini
40690df347 Remove dead code 2015-06-04 09:35:27 -04:00
Joe Fiorini
4b93601b30 Make sure extra property doesn't show as fact 2015-06-03 14:17:10 -04:00
Joe Fiorini
b84bba19f8 Handle single-host with empty versions 2015-06-03 12:21:15 -04:00
Joe Fiorini
8868235af2 Fallback to first hostname if only 1 host 2015-06-03 12:15:36 -04:00
Joe Fiorini
f88de17adf Use clone of params object to avoid time traveling 2015-06-03 10:21:51 -04:00
Joe Fiorini
f2322e7cc3 Clarify info in table headers 2015-06-03 09:53:11 -04:00
Joe Fiorini
9526975318 Resolve fact versions before looking up fact views
This adds a step to the fact version lookup that attempts to resolve
fact versions before looking up their views. Resolving a fact version
means finding another version to use when there is a problem with the
one the user selected.

In this case, the resolution process works as follows:

1. Check if either request returned an empty list

If so, request again, changing the dates to look back a year. This
will almost always return something.

2. If we are requesting multiple facts for the same host, and both of
the resolved versions have the same timestamp, they are duplicates and
we cannot compare against them.

Instead we instruct it to grab the selected and the previous versions for
comparison.

For host-to-host view, this also updates the timestamp in the header to
reflect the actual timestamps. It _does not_ update the date picker
dates yet.
2015-06-03 00:16:54 -04:00
Joe Fiorini
bcf4688a55 Fix headers on ansible facts module 2015-06-02 17:21:52 -04:00
Joe Fiorini
3d1dc42e2a Compare facts before assuming they are all different 2015-06-02 17:21:52 -04:00
Joe Fiorini
633647a2a8 Track fact presence with property 2015-06-02 13:11:46 -04:00
Joe Fiorini
9eea389458 Simplify fact templates for packages and services 2015-06-02 13:08:39 -04:00
Joe Fiorini
a9a839a549 Compare facts in both directions, not just one way 2015-06-02 13:06:30 -04:00
Joe Fiorini
0dd9c4e5eb Add missing styles for system tracking 2015-06-02 12:11:40 -04:00
Joe Fiorini
5beb7b1aa0 Display package version string for packages 2015-06-02 12:11:40 -04:00
Joe Fiorini
17a7117f0c Prevent data from reloading when switching modules 2015-06-01 18:01:41 -04:00
Joe Fiorini
884423f86c Make usage of moment consistent throughout app
This always includes the user's language preference when loading moment.
It also deletes the moment global, so if you don't require it somehow
you will get an error trying to call `moment`'.

This is setup to provide moment to both angular and plain JavaScript
modules. In angular modules, just add `moment` as a dependency. In plain
js use `import moment from 'tower/shared/moment/moment';`.
2015-06-01 16:25:46 -04:00
Joe Fiorini
b615df5124 Display error messages when no scan jobs are found 2015-05-29 17:54:15 -04:00
Joe Fiorini
5caf80e9a2 Display timestamp from API in column headers 2015-05-29 17:54:15 -04:00
Joe Fiorini
8d1e2e1c0c Fix styling after nav refresh merge 2015-05-29 17:54:15 -04:00
Joe Fiorini
da67aba2d4 Default dates to today and yesterday 2015-05-29 17:54:15 -04:00
Joe Fiorini
5f902a55fe Sort modules by built-in then custom 2015-05-29 17:53:27 -04:00
Joe Fiorini
579ee6d721 Display custom fact plugins in module options 2015-05-29 17:53:27 -04:00