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

Optimize creation of login storage state files #1354

Merged
merged 2 commits into from
Mar 22, 2022

Conversation

rmunn
Copy link
Collaborator

@rmunn rmunn commented Mar 21, 2022

We now skip creating the file if it already exists and has a creation date less than 1 year old (since that's the default lifetime of the "Remember Me" cookies that Silex creates). This means that the slowness of logging in five times through the UI (which takes about 20 seconds on a relatively fast developer machine) will only happen once per machine.

Checklist

  • I have performed a self-review of my own code
  • I have reviewed the title/description of this PR which will be used as the squashed PR commit message
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

We now skip creating the file if it already exists and has a creation
date less than 1 year old (since that's the default lifetime of the
"Remember Me" cookies that Silex creates). This means that the slowness
of logging in five times through the UI (which takes about 20 seconds on
a relatively fast developer machine) will only happen once per machine.
@github-actions
Copy link

github-actions bot commented Mar 21, 2022

Unit Test Results

    1 files      1 suites   8s ⏱️
373 tests 373 ✔️ 0 💤 0

Results for commit d30e2c0.

♻️ This comment has been updated with latest results.

@rmunn rmunn self-assigned this Mar 22, 2022
Copy link
Collaborator

@megahirt megahirt left a comment

Choose a reason for hiding this comment

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

LGTM thanks Robin.

Per our conversation, can you use the path variable on line 50 that you define on line 42?

@rmunn
Copy link
Collaborator Author

rmunn commented Mar 22, 2022

LGTM thanks Robin.

Per our conversation, can you use the path variable on line 50 that you define on line 42?

Done.

@rmunn rmunn merged commit 8bc2631 into develop Mar 22, 2022
@rmunn rmunn deleted the chore/better-login-in-e2e-tests branch March 22, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants