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: Generic Table Search #28401

Merged
merged 10 commits into from
Mar 24, 2023
Merged

fix: Generic Table Search #28401

merged 10 commits into from
Mar 24, 2023

Conversation

hugocostadev
Copy link
Contributor

Proposed changes (including videos or screenshots)

When the user changes the page and tries to search for a room that is not currently visible on the page it’s not returning any results. This is also reproducible in the Users table

Current Behavior:
It returns the list filtering by the name
task_table

Previous Behavior:
Not found - It was not finding the room because it’s filtering only in the current page
search-pagination-rooms

Issue(s)

Steps to test or reproduce

  1. Go to Admin → Rooms list
  2. Go to the last page possible
  3. Search for a room that is shown on the first page

Further comments

TC-524

I also added the refetchOnWindowFocus: false, to useQuery methods to avoid re-fetching data on user focus on the page, this avoid a lot requests

@hugocostadev hugocostadev requested a review from a team as a code owner March 13, 2023 19:10
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #28401 (267011b) into develop (aa77a17) will decrease coverage by 0.51%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #28401      +/-   ##
===========================================
- Coverage    45.08%   44.57%   -0.51%     
===========================================
  Files          753      734      -19     
  Lines        14662    14335     -327     
  Branches      2129     2122       -7     
===========================================
- Hits          6610     6390     -220     
+ Misses        7750     7638     -112     
- Partials       302      307       +5     
Flag Coverage Δ
e2e 44.54% <ø> (-0.50%) ⬇️

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

guijun13
guijun13 previously approved these changes Mar 17, 2023
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Mar 23, 2023
@hugocostadev hugocostadev dismissed stale reviews from tassoevan and ggazzo March 24, 2023 10:15

Issues addressed

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Mar 24, 2023
@kodiakhq kodiakhq bot merged commit fe6a90e into develop Mar 24, 2023
@kodiakhq kodiakhq bot deleted the fix/generic_table_search branch March 24, 2023 10:50
gabriellsh added a commit that referenced this pull request Mar 24, 2023
…nto fix/avatarEmoji

* 'fix/avatarEmoji' of github.com:RocketChat/Rocket.Chat: (72 commits)
  refactor: `LivechatRooms` removal - 3 (#28506)
  fix: Livechat MessageList not auto scrolling on new message (#28547)
  chore: Add types for `Meteor.userAsync` (#28597)
  refactor: Easy replacements of Meteor.call to Meteor.callAsync (#28595)
  refactor: `Subscriptions` model - 2x (#28535)
  refactor: `LivechatRooms` 2 (#28504)
  regression: ldap sync not working (#28583)
  fix: Generic Table Search (#28401)
  refactor: Remove `Apps persistence` model (#28510)
  refactor(models): Use Messages Raw model (5/N) (#28590)
  refactor: federation promise.await methods 2/N (#28593)
  refactor: federation Promise.await 1/N (#28591)
  feat: Make the marketplace search bar placeholder dynamic (#28394)
  fix: Bring unseen app requests badge back and minor refactors (#28348)
  refactor: Remove `apps` & `app logs` models (#28509)
  refactor: Convert meteor call to callAsync (2/N) (#28588)
  refactor: Remove `Meteor.call` in favor of `Meteor.callAsync` - 1 (#28576)
  refactor: Restore removed function for counting on LivechatDepartmentAgents (#28577)
  refactor: Convert meteor call to callAsync (#28575)
  refactor: Remove optional return of room coordinator (#28592)
  ...
@sampaiodiego sampaiodiego mentioned this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA tested stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants