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

Clear asset cache only when updating an existing asset #1017

Closed
wants to merge 1 commit into from

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Sep 9, 2022

Fixes coronasafe/care_fe#3561

This fixes a bug where it would try to clear the cache for a newly created asset on save. Now the cache is only deleted if the save was triggered on a pre-existing asset object.

@coronasafe/code-reviewers

@Ashesh3 Ashesh3 requested a review from a team as a code owner September 9, 2022 08:48
@Ashesh3 Ashesh3 added the P1 High priority; urgent label Sep 9, 2022
@sonarcloud
Copy link

sonarcloud bot commented Sep 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sainak
Copy link
Member

sainak commented Sep 9, 2022

duplicate of #1013

@Ashesh3 Ashesh3 closed this Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority; urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to create a new asset for a facility
2 participants