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

fix: wrong no of trial days in in-desk subscription banner #2113

Merged

Conversation

tanmoysrt
Copy link
Member

@tanmoysrt tanmoysrt commented Aug 27, 2024

Fixes #2013

Issue - To estimate the no of days remained in trial period, we depend on the frappe.boot.telemetry_site_age

https://github.com/frappe/frappe/blob/a162e61e26a5b9f4b8a6e0c3ac02d1d900817a99/frappe/utils/telemetry.py#L29-L35

The issue is the Administrator user got created, while creating the site. Sometimes, the difference between standby site creation and transferring to user is > 2 days. That results in wrong info in subscription banner.

Solution - Add trial_end_date in site_config subscription key. While provisioning the site for trial, that will inject this config.

Agent PR - frappe/agent#124

@tanmoysrt tanmoysrt marked this pull request as ready for review August 28, 2024 04:06
@tanmoysrt tanmoysrt merged commit a2299b7 into frappe:master Aug 28, 2024
5 checks passed
@tanmoysrt tanmoysrt deleted the fix_date_anomaly_in_subscription_banner branch August 28, 2024 11:17
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.

Show correct number of days expiry for trial sites
1 participant