theforeman / community-templates

A place to share templates for various OSes for Foreman's provisioning
GNU General Public License v3.0
144 stars 182 forks source link

Refs #29037 - Update report template for Entitlements Expiring Soon #705

Closed jeremylenz closed 4 years ago

jeremylenz commented 4 years ago

[SAT-E-459] Updates the Entitlements report template to allow the user to filter to subscriptions expiring $soon.

jeremylenz commented 4 years ago

see also: https://github.com/Katello/katello/pull/8606

jeremylenz commented 4 years ago

To test, check out Katello PR#8606. Clone the Entitlements report and replace the ERB code with that in this PR. You'll also have to manually add the input, as the web UI doesn't import it automatically. Or, open a rails console and do SeedHelper.import_raw_template(File.read('path/to/entitlements.erb'))

jeremylenz commented 4 years ago

Update to address comments and incorporate changes to the Katello PR

jeremylenz commented 4 years ago

Rebased to incorporate #693

jeremylenz commented 4 years ago

changed 'Subscription Expires In' to 'Days Remaining' as per jturel comment

jturel commented 4 years ago

Can this be merged?

ares commented 4 years ago

I'm sorry, I'll try to get back to this soon, I just didn't have time to retest, hopefully this week

jeremylenz commented 4 years ago

Updated file name to match #712

ares commented 4 years ago

oh, the filename was different, I'll submit a different PR to fix that

jeremylenz commented 4 years ago

@ares Oops, sorry I missed that! :fearful: