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 #2102

Merged

Conversation

tanmoysrt
Copy link
Member

@tanmoysrt tanmoysrt commented Aug 24, 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.

@tanmoysrt tanmoysrt added the WIP Work In Progress label Aug 24, 2024
@tanmoysrt tanmoysrt marked this pull request as ready for review August 27, 2024 14:42
@tanmoysrt tanmoysrt removed the WIP Work In Progress label Aug 27, 2024
@tanmoysrt tanmoysrt merged commit a9a2438 into frappe:master Aug 27, 2024
5 checks passed
tanmoysrt added a commit that referenced this pull request Aug 27, 2024
tanmoysrt added a commit that referenced this pull request Aug 27, 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.

Show correct number of days expiry for trial sites
1 participant