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

increase TextFilter debounce timer to 500ms #1662 #1666

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Conversation

akintomiwa
Copy link

@akintomiwa akintomiwa commented Aug 9, 2024

Description

increase TextFilter debounce timer to 500ms

Testing instructions

Add a set up instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build
  • Review changes to test coverage
  • {more steps here}

Agile board tracking

Closes #1662

@akintomiwa akintomiwa marked this pull request as draft August 9, 2024 15:49
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.35%. Comparing base (f1d5830) to head (51fe1e8).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1666   +/-   ##
========================================
  Coverage    95.35%   95.35%           
========================================
  Files          182      182           
  Lines         7843     7844    +1     
  Branches      2490     2497    +7     
========================================
+ Hits          7479     7480    +1     
  Misses         329      329           
  Partials        35       35           
Flag Coverage Δ
common 94.17% <100.00%> (+<0.01%) ⬆️
dataview 97.32% <ø> (ø)
download 95.99% <ø> (ø)
search 93.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akintomiwa akintomiwa marked this pull request as ready for review August 13, 2024 08:24
@akintomiwa akintomiwa self-assigned this Aug 13, 2024
@@ -12,7 +12,7 @@ import userEvent from '@testing-library/user-event';

jest.mock('../../api');
jest.useFakeTimers('modern');
const DEBOUNCE_DELAY = 250;
const DEBOUNCE_DELAY = 500;
Copy link
Member

Choose a reason for hiding this comment

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

It might be worth moving this variable to the actual component, and export it to use it in both the tests and when passing the actual debounce - it means in the future if we edit the debounce we only have to change it in one place :) Just an opportunity to refactor the code to be a little more future-proof

Otherwise good work!

Copy link
Author

Choose a reason for hiding this comment

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

Thanks Louise! Okay I understand, I've made and pushed the change.

Copy link
Member

@louise-davies louise-davies left a comment

Choose a reason for hiding this comment

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

Looks good to me (LGTM) :)

@louise-davies louise-davies merged commit 9077d10 into develop Aug 29, 2024
10 checks passed
@louise-davies louise-davies deleted the gfi-1662 branch August 29, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

increase TextFilter debounce timer to 500ms
2 participants