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

feat: add fe polling and disable websocket #3151

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Conversation

jorgeepc
Copy link
Contributor

This PR adds a FE polling mechanism and disables the websocket connection.

Changes

  • FE polling
  • disable websocket

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@jorgeepc jorgeepc self-assigned this Sep 12, 2023
@@ -20,17 +19,6 @@ export const settingsEndpoints = (builder: TTestApiEndpointBuilder) => ({
}),
providesTags: () => [{type: TracetestApiTags.SETTING, id: ResourceType.ConfigType}],
transformResponse: (rawConfig: TRawConfig) => Config(rawConfig),
async onCacheEntryAdded(arg, {cacheDataLoaded, cacheEntryRemoved, updateCachedData}) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it worth it to have polling for the getConfig query.

@jorgeepc jorgeepc requested a review from xoscar September 12, 2023 18:19
Copy link
Contributor

@xoscar xoscar left a comment

Choose a reason for hiding this comment

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

Nice work!

@xoscar xoscar merged commit 619f936 into main Sep 12, 2023
38 checks passed
@xoscar xoscar deleted the feat-add-fe-polling branch September 12, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants