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

Figure out why Bed disappears from cache #70

Open
capndave opened this issue May 2, 2021 · 4 comments
Open

Figure out why Bed disappears from cache #70

capndave opened this issue May 2, 2021 · 4 comments
Assignees

Comments

@capndave
Copy link
Collaborator

capndave commented May 2, 2021

Type

Bed disappears from cache.

Problem or To-Do

When running locally, go to the Garden page. Note that a Bed will appear in the cache. Click on a garden. That bed is gone from the cache. We need the bed to stay in cache so that we can use its info in the Bed component.

Additional Information

n/a

@paytonagreen
Copy link
Collaborator

Had my mom in town until this morning, so I was checked out of programming world. Have you had a chance to check this out? I can look into it to, let me know if you've found anything!

@capndave
Copy link
Collaborator Author

capndave commented May 4, 2021 via email

@paytonagreen
Copy link
Collaborator

I'll look into it this afternoon and report back!

@paytonagreen
Copy link
Collaborator

So far:

  • I removed the columns that don't exist on the backend yet from the two Bed Queries, i.e 'height', 'width' (this was giving me an error)
  • I show the Bed remaining in cache in both the Gardens and individual Garden view with this setup.
  • It does seem to disappear when entering into the individual bed view, but this is because we're not firing off any queries in the individual Bed view (other than GET_CURRENT_USER), as we don't have the Bed view wired up to the backend as of yet.

I plan on making an issue/working today and tomorrow on updating the Bed model on the backend to include the missing criteria and wiring up the frontend component to display/update the data correctly. I think by creating that issue we can close this one?

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

No branches or pull requests

2 participants