Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37170 - Remove Subscription-Entitlement notification #10892

Closed

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented Feb 15, 2024

What are the changes introduced in this pull request?

Remove Subscription-Entitlement notifications.

Considerations taken when implementing this change?

What are the testing steps for this pull request?

Import a manifest on master branch and go to Foreman Tasks and check if you see SendExpireSoonNotifications scheduled task
Run db:migrate
Make sure the task is gone.

@sjha4
Copy link
Member Author

sjha4 commented Feb 15, 2024

[test katello]

@sjha4 sjha4 force-pushed the remove_subs_expiration_notification branch from 4513f5e to 3c22483 Compare February 16, 2024 15:14
Comment on lines -12 to -19
@pools = Katello::Pool.readable.expiring_in_days(days_from_now)
@affected_hosts = ::Host::Managed.with_pools_expiring_in_days(days_from_now)
end

if @affected_hosts.any?
start_report_task(days_from_now)
@report_url = report_url
@report_link = report_link
Copy link
Member

@jeremylenz jeremylenz Feb 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I look at this closely, I wonder if we can keep this email notification after all, and just take out the @affected_hosts logic and the link to the report.. I think that since SCA won't help you when your subscriptions expire, having the email notification would still be useful (if it's not too much work to keep). It seems the actual list of subscriptions in this email depends on @pools and not @affected_hosts, so it should theoretically still work..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm..Ok..let me see if the reports can be updated to not have to refer to hosts..

@sjha4
Copy link
Member Author

sjha4 commented Feb 16, 2024

Closing this out since there's been some design changes for this. We want to update this report and mailer to still have a subs expiring report which doesn't looks at entitlements.

@sjha4 sjha4 closed this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants