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: os_user unnecessary password field #11814

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

ThEditor
Copy link
Contributor

Summary

Resets usernameSubmittedWithoutPassword back to false on clearUser (executed when user goes back using "Change User")

References

Closes #11777

Reviewer guidance

  1. Running Kolibri locally [not in app_mode], create a user with a password (let's call this "pw_user")
  2. Stop your Kolibri server, but maintain the same KOLIBRI_HOME folder
    Run Kolibri locally using (https://kolibri-dev.readthedocs.io/en/develop/getting_started.html#running-in-app-mode). (let's call this "os_user")
  3. Sign out. You should now see both "pw_user" and "os_user" available to select in the sign in page
    Select "pw_user". You should be directed to the next step, where you enter your password. Do not sign in. Go back via "Change User"
  4. Select "os_user". You should not see any password field show up and sign-in should happen automatically.

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@github-actions github-actions bot added APP: User Re: User app (sign-in, sign-up, user profile, etc.) DEV: frontend SIZE: very small labels Jan 29, 2024
@marcellamaki marcellamaki self-assigned this Jan 29, 2024
@MisRob MisRob requested a review from marcellamaki January 30, 2024 12:52
@MisRob MisRob added the TODO: needs review Waiting for review label Jan 30, 2024
@ThEditor
Copy link
Contributor Author

ThEditor commented Feb 8, 2024

@marcellamaki any updates on it?

@MisRob
Copy link
Contributor

MisRob commented Feb 12, 2024

Hi @ThEditor, thanks for the contribution! We have a queue of pull requests. Generally, a review may take up to two weeks.

Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

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

Hi @ThEditor - I apologize for the delay in following up on this PR. The code changes look good and I've done manual QA to confirm. Thank you for your contribution here!

@ThEditor
Copy link
Contributor Author

Its fine, no worries. Thanks for approving the PR. :D

@marcellamaki
Copy link
Member

I'm just rerunning the Python checks, and if it sorts itself out, this will be good to merge, and I'll do that later today :)

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

No need to change the code here, but flagging that the issue this is fixing is targeted for Planned Patch 1 - this means that this PR should be targeted at the release-v0.16.x branch, not develop!

For details on how to do a rebase from one to another, please see here: https://kolibri-dev.readthedocs.io/en/develop/howtos/rebasing_a_pull_request.html

Note, I have retarged the pull request already, so you just need to do the rebase and force push to update the PR branch.

@rtibbles rtibbles changed the base branch from develop to release-v0.16.x February 24, 2024 01:26
@ThEditor
Copy link
Contributor Author

I've rebased the PR, does it look correct?

@radinamatic
Copy link
Member

From the manual QA point of view we're struggling to find the real-world scenario this PR is supposed to fix... Is it only replicable in the dev environment, or there is some angle we're missing when using built assets?

@pcenov
Copy link
Member

pcenov commented Feb 26, 2024

Thanks @ThEditor - I confirm that the issue described in #11777 is now fixed. cc @marcellamaki

Copy link
Member

@radinamatic radinamatic left a comment

Choose a reason for hiding this comment

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

Manual QA passed, good to go! 💯 🚀 :shipit:

Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

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

Thank you for retargeting this PR @ThEditor and for your patience!

@marcellamaki marcellamaki dismissed rtibbles’s stale review February 27, 2024 20:44

Requested change - rebasing the PR - has been addressed

@marcellamaki marcellamaki merged commit 7a953e2 into learningequality:release-v0.16.x Feb 27, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: User Re: User app (sign-in, sign-up, user profile, etc.) DEV: frontend SIZE: very small TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On os_user sign-in, unnecessary password field can temporarily appear
6 participants