Repository navigation
fix(setup): ask for a password and record the setup start on new Frappe Cloud sites (backport #3377) - #3379
Merged
pateljannat merged 4 commits intoNov 20, 2026
Conversation
A Frappe Cloud trial owner arrives signed in with no password, but the password step of Learning's setup never showed. Frappe's own check skips Frappe Cloud v2 sites and sites with email login links, and every trial site is both, so the owner had no password to sign in again. Learning now decides when its setup asks: any signed-in user without a password, unless a password cannot sign in on the site. Its own set_first_password keeps the framework's checks under that rule, and hooks.py points the framework's method at it, so the framework's password step saves without a framework change. Remove both once the framework check covers these sites. (cherry picked from commit 8d140a5)
The framework's SetupFlow sends setup_started and the first step's view as it opens, and telemetry drops events until it has loaded. On a new site's first page it often loads later, so 7 of 16 sites in the last 30 days have no start event, and the Started count is too low. When telemetry is still off as setup opens, Learning sends both events once it is on. When it was already on, Learning sends nothing, so no start is counted twice. Remove this once the framework's SetupFlow waits for telemetry itself. (cherry picked from commit 713efbe)
The trial-site password tests changed System Settings with change_settings, which saves the document. Saving needs a language and a time zone, and the CI site never ran the setup wizard, so it has neither and the three tests failed with MandatoryError. They now patch what get_system_settings returns instead. (cherry picked from commit dca7dd3)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## version-16-hotfix #3379 +/- ##
=====================================================
+ Coverage 87.92% 93.33% +5.41%
=====================================================
Files 248 339 +91
Lines 21534 33895 +12361
=====================================================
+ Hits 18933 31635 +12702
+ Misses 2601 2260 -341 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The dashboard redesign deleted adminBatchDashboardFilters.test.ts on develop, because the new dashboard replaced what it tested. Its backport to version-16-hotfix (#3363) kept the file, so its three tests fail there on the new dashboard's NumberCard, which their frappe-ui/charts mock does not provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setup asks a Frappe Cloud trial owner for a password again
A Frappe Cloud trial owner arrives signed in with no password. The password step of Learning's setup did not show for them, so once their session ends they have no password to sign in with. Frappe's own check skips Frappe Cloud v2 sites and sites with email login links, and every trial site is both.
Learning now decides when its setup asks: any signed-in user without a password, unless a password cannot sign in on the site (password login off, LDAP, social login). Learning's own
set_first_passwordkeeps the framework's checks under that rule, andhooks.pypoints the framework's method at it, so the framework's password step saves without a framework change. Both can go once the framework check covers these sites.Tested on a local Frappe Cloud v2 site with email login links on and the framework as it is today: the password step shows, saving it goes through the override, and the owner signs in with the new password. Five new tests in
test_onboarding.py; four of them fail ondevelop.The setup start is recorded on new sites
The framework's setup flow sends
setup_startedand the first step's view as the page opens, and telemetry drops events until it has loaded. On a new site's first page it often loads later. In the last 30 days, 7 of 16 sites that finished setup have no start event and no view of the first step, while their later steps are there, so the Started count is too low.When telemetry is still off as setup opens, Learning sends both events once it is on. When it was already on, Learning sends nothing, so no start is counted twice. Remove this once the framework's setup flow waits for telemetry itself. A test in
setupPage.test.tsfails ondevelop.This is an automatic backport of pull request #3377 done by [Mergify](https://mergify.com).