-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Show expired entries on DB unlock #7290
Show expired entries on DB unlock #7290
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7290 +/- ##
===========================================
+ Coverage 64.25% 64.33% +0.08%
===========================================
Files 339 339
Lines 43160 43195 +35
===========================================
+ Hits 27729 27786 +57
+ Misses 15431 15409 -22 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
|
I agree, if you enable this option then you also need to from your database, since that is why you enabled it! This might also be a good use case for a dynamic tag (once merged in). |
I'm not actually sure why the Translations PR check is failing. Is there anything to do for me on this PR? |
We can handle that, but if you can.. run |
Done! |
I pushed a change that allows expiry warnings x days in advance. See screenshots here. I was not able to test the auto-unlock functionality described in this comment, because for some reason my custom-built KeePassXC binary wasn't able to connect with my browser extension. I don't understand why - the prod version works just fine. Would be great if someone could double-check that bit! |
You can test the pathway by just unlocking a database after locking it manually. You should check the value of DatabaseWidget::m_groupBeforeUnlock to see if the database has been unlocked already in thus session. Or you can introduce a boolean in DatabaseWidget that indicates the expired entries have been shown already. When a new database is opened or the application first launches then these will be null/false indicating that expired entries should be shown if setting is enabled. |
Requested changes pushed. I consider the PR final - let me know if there's anything else left to do. Thanks! |
14a9ea5
to
9dbe7bf
Compare
Made a few edits to clean-up the implementation:
|
I think this should be on by default, for three reasons:
Also, I think it should default to a few days before expiry (a week?), for similar reasons. edit: I'd also suggest a column with the dice button to renew the expired password directly from the report page, but that can be left to a separate PR. |
Yah I'll move it back. Guaranteed we'll get issues about how that is terrible and needs to be off by default 😅 |
I'm excited for this feature! Great initiative and great work! :) 👍 |
That's why I suggested a hint to point users at the setting. If they can help themselves with a couple clicks, they won't need to post an issue (hopefully). |
* Show banner message about expired entries * Add config option and expiration offset * Only show expiry warning on first DB unlock * Default to on with 3-day offset from expiration
Adding settings redirects is cumbersome, extra code, and takes up space. I am just joking (am I though?) about the hordes of issues, |
9dbe7bf
to
953319d
Compare
Great work on this @ba32107 👏 what's next? |
Haha we'll see. Gotta find some more time to work on open-source stuff :) |
Fixes #4624. I implemented it the way I described in the above linked issue:
Screenshots
New option:
After DB unlock, option disabled:
After DB unlock, option enabled:
Testing strategy
Manual testing:
Type of change