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

The Reload functionality of job list does not work anymore #221

Closed
moebiusband73 opened this issue Oct 20, 2023 · 2 comments
Closed

The Reload functionality of job list does not work anymore #221

moebiusband73 opened this issue Oct 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working frontend Svelte UI related issues

Comments

@moebiusband73
Copy link
Member

To set a reload frequency has no effect.
Tested in Chromium and firefox

@moebiusband73 moebiusband73 added bug Something isn't working frontend Svelte UI related issues labels Oct 20, 2023
@moebiusband73 moebiusband73 added this to the Release v1.3.0 milestone Oct 20, 2023
@spacehamster87
Copy link
Contributor

spacehamster87 commented Nov 3, 2023

This seems to be an issue related to updates in the @urql/svelte package, namely, the documented way of manually refreshing the queryStore does not work anymore, see: their example and our function

The code in the example is identical with exception of the variables we add as an argument.

The on:click button trigger and reload event work as intended, as do the timed reloads when choosing an interval.

The data is refreshed only when the reactivity is triggered, e.g. paging, sorting or filter are changed. Tested via adding page += 1 to the refresh() function.

Workarounds trying to trigger reactivity (while maintaning all variables) as well as changing the exchanges in the client-setup in utils.js do not change this behavior.

spacehamster87 added a commit that referenced this issue Nov 3, 2023
@spacehamster87
Copy link
Contributor

Fix: queryStore() required variable set on call to retrigger api query. Mismatched to official docs, but works as intended: Sorting, Paging and Filter are maintained, Job Metadata gets refreshed, nested metric data refreshed on load via cache-first policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Svelte UI related issues
Projects
None yet
Development

No branches or pull requests

2 participants