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

New caching solution #27

Closed
meffmadd opened this issue Jan 29, 2024 · 0 comments
Closed

New caching solution #27

meffmadd opened this issue Jan 29, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@meffmadd
Copy link
Member

Is your feature request related to a problem? Please describe.
Our caching and data loading solution is very limited and correctly updating data is difficult (e.g. see #1).

Describe the solution you'd like
Open for discussion... Possible solutions are SWR or Tanstack Query. The problem with these approaches is that they are integrated into React and e.g. the cache could not easily be invalidated in the service functions.

mpetojevic added a commit that referenced this issue Mar 18, 2024
…gnment data for the whole overview window.

ref: #27
mpetojevic added a commit that referenced this issue Apr 4, 2024
@florian-jaeger florian-jaeger added this to the 0.4.1 milestone Apr 8, 2024
mpetojevic added a commit that referenced this issue Apr 17, 2024
Problem was: when navigating through submissions with forward and back button, the loaded submission scaling
shown was always the same (didn't reload with the submission). Fixed that.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 17, 2024
Problem was: when navigating through submissions with forward and back button, the loaded submission scaling
shown was always the same (didn't reload with the submission). Fixed that.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 17, 2024
…ons in manual grading view,

because the data can be refetched.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 17, 2024
…bmission was slow due to reloading whole

submission. Reload only sbumission files in such a case.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 17, 2024
… (this didn't happen when just navigating

through different tabs), regardless of the previously selected submissions to show - all, latest, best -
(before page reload), all submissions were rendered under chosen button which remained saved. So although
for example best is correctly selected, all submissions ('none' in code) were rendered.

Fixed the described behaviour. Now when for example LATEST submissions are selected, and the page is reloaded,
the latest submissions remain on the page correctly when the user enters the page back.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 19, 2024
…here where its really needed -> in highest parent components.

To do: This was done for course management -> do the same for assignments (student view).

Ref: #27
mpetojevic added a commit that referenced this issue Apr 29, 2024
…n files, when generating student

preview - release) of notebooks.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 29, 2024
mpetojevic added a commit that referenced this issue Apr 29, 2024
…n't updated accordingly to the changes

in file browser.

Refactored structure of the QueryClientprovider so it is now called only once both for course and assignment menage.
This change had to be incoporated in widgets.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 29, 2024
…redominantely with local states

(such as page number, rows per page, selected submissions etc.) which doesn't require fetching data.

Feat: Updated feedbac view to incoporate use of react query (student view).

Ref: #27
mpetojevic added a commit that referenced this issue Apr 29, 2024
…data.

Fix: Lecture (coursemanage) wasn't loading changes in assignment state right away. Changed that to reload
assignments and fetch most recent data using react query.

Ref: #27
mpetojevic added a commit that referenced this issue Apr 29, 2024
mpetojevic added a commit that referenced this issue Apr 30, 2024
mpetojevic added a commit that referenced this issue Apr 30, 2024
… student view, since

it is set once and than never changed (deadline is taken from the persistent data).

Ref: #27
@mpetojevic mpetojevic linked a pull request May 1, 2024 that will close this issue
mpetojevic added a commit that referenced this issue May 13, 2024
… Omitted unnecessary Typography element in edit-submission.tsx.

#27
mpetojevic added a commit that referenced this issue Jul 3, 2024
Manually merged release-0.4.1 branch and 27-new-caching-solution.

Closes #27
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 a pull request may close this issue.

3 participants