-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-16719] [COMMUNITY] Debounce requestIdleCallback a single time every 100ms, as opposed to call requestIdleCallback on debounce method #12695
Conversation
Thank you for your contribution! We've added this to our internal tracking system for review. Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process. |
Hey @cagonzalezcs , thanks for taking this on! Based on the linked issue, I think this makes sense at the code-level. I want to do some testing before we move it forward, but will report back here once that's completed. |
…s opposed to call requestIdleCallback on debounce method Potential fix for bitwarden#12031
A note; I rebased the branch since the basis was quite old.
edit: Looks like I was premature; there are some failing unit tests that need to be fixed. I have to put this down for now, but will come back to it. |
Fixed Issues (173)Great job! The following issues were fixed in this Pull Request
|
@jprusik I'll take some time later today to fix the tests. I think I know exactly why they're breaking. |
@jprusik Give it a shot now, I've updated the mocked |
These changes have passed QA and have been merged; thanks so much for your work on this, @cagonzalezcs ! The updated code will go out with the next browser extension release |
It looks like these changes fail our BIT testing for cases where the inputs are not initially available (e.g. |
Shoot, sorry about that... hmm... without digging into it, I can't think of why it wouldn't capture the mutation... I'll see if I can take a quick look at some point this week. |
No worries at all; I've put together a PR for a partial revert for now, which restores to original autofill/inline menu behaviours that were lost: |
Potential fix for #12031
🎟️ Tracking
📔 Objective
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes