-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [M3-5181] - React Query for Events (#9949)
* events landing * add linode events support with filter * clean up * add poller * add event handlers and cache updater * hook up toasts * fix bug by removing early return and start refactoring * refactor event consumers * finish general refactor * optimize * fixes and clean up * fix cache updater bug * make the query updater update all queries * poc: use cursor based pagination * remove old code * use `id` for cusour based pagination and clean up * move things around to minimize re-renders * handle accounts with no events and fix queryKey bug * fix incorrect query key causing `useInProgressEvents` not to work * add comments * comment and test filtering * explain pagination approach * clean up and test `EventsLanding` * remove `src/__data__/events.ts` * remove more unused helper functions * reorganize helper functions * move `generatePollingFilter` to `event.helpers.ts` * extract helper into `getExistingEventDataForPollingFilterGenerator` and unit test * handle and test in-progress event edge case * remove outdated comment * don't pass an empty object if we don't have a `pageParam` * improve interval defaults * disable query that is for reading data only * make polling backoff match existing backoff * clean up interval hooks * simplify polling interval * fixing duplicate pull due to rules of hooks * clean up new polling interval * add changesets * clean up mount timestamp * clean up query key for poller * rename `resetEventsPolling` to `checkForNewEvents` * Apply suggestions from @jdamore-linode Co-authored-by: jdamore-linode <97627410+jdamore-linode@users.noreply.github.com> * Update packages/manager/src/queries/events/events.ts --------- Co-authored-by: Banks Nussman <banks@nussman.us> Co-authored-by: jdamore-linode <97627410+jdamore-linode@users.noreply.github.com>
- Loading branch information
1 parent
a8e51e7
commit e4911df
Showing
111 changed files
with
1,333 additions
and
3,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/api-v4": Fixed | ||
--- | ||
|
||
Removed incorrect `_initial` property on `Event` type ([#9949](https://github.com/linode/manager/pull/9949)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-9949-tech-stories-1706017963330.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
React Query for Events ([#9949](https://github.com/linode/manager/pull/9949)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.