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: site soil async #224

Merged
merged 3 commits into from
Dec 13, 2023
Merged

feat: site soil async #224

merged 3 commits into from
Dec 13, 2023

Conversation

david-code
Copy link
Contributor

Description

Adds reducers that update the soil ID state automatically when a user presses a switch on the soil tab. If the request fails, it rolls back the data and changes the store status to "error".

This implementation is very much a first attempt. The fact that the soil ID update updates the whole soil ID object, and the fact that soil IDs are a list rather than a hash set, make the reverse code a bit hacky. Hopefully in the future we can look into some libraries that will make this sort of operation easier.

Checklist

  • Corresponding issue has been opened
  • New tests added

Related Issues

Fixes #....

Verification steps

@david-code david-code requested review from shrouxm, ajabeckett and paulschreiber and removed request for ajabeckett December 7, 2023 19:53
@david-code david-code merged commit 1ddc4e6 into main Dec 13, 2023
10 checks passed
@david-code david-code deleted the feat/site-soil-async branch December 13, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants