Skip to content

fix: [M3-6021] - Invalidate Firewall devices cache when a Linode is deleted#8848

Merged
bnussman-akamai merged 2 commits intolinode:developfrom
bnussman-akamai:M3-6021-invalidate-firewall-cache-when-linode-is-deleted
Mar 7, 2023
Merged

fix: [M3-6021] - Invalidate Firewall devices cache when a Linode is deleted#8848
bnussman-akamai merged 2 commits intolinode:developfrom
bnussman-akamai:M3-6021-invalidate-firewall-cache-when-linode-is-deleted

Conversation

@bnussman-akamai
Copy link
Member

Description 📝

  • What a Linode that was associated with a firewall was deleted, the Firewalls landing and details page would not update to reflect the removed Linode.
  • This PR React Query-ifys the Firewall Devices endpoint and performorms a cache invalidation on it whenever a Linode is deleted that is associated with that particular firewall
  • Cleans up and modernizes some components in the process

Preview 📷

Before

Screen.Recording.2023-03-06.at.8.01.10.PM.mov

After

Screen.Recording.2023-03-06.at.7.58.23.PM.mov

How to test 🧪

  • Have at least 1 Firewall and 1 Linode
  • Attach the Linode to the Firewall
  • Go delete that Linode
  • Go back to the Firewall landing page
  • Observe that the Linode is no longer listed under that Firewall

@bnussman-akamai bnussman-akamai added Bug Fixes for regressions or bugs React Query Relating to the transition to use React Query labels Mar 7, 2023
@bnussman-akamai bnussman-akamai self-assigned this Mar 7, 2023
@bnussman-akamai bnussman-akamai merged commit f801ead into linode:develop Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fixes for regressions or bugs React Query Relating to the transition to use React Query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants