-
Notifications
You must be signed in to change notification settings - Fork 80
Remove MCPRegistration entries on device and project deletion #6424
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
base: main
Are you sure you want to change the base?
Conversation
|
bah, postgres test fail... @hardillb any thoughts? |
|
Added unit tests - lets see if they pass. |
hardillb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Withdrawing approval while tests are sorted out
|
Ran PG tests locally and I am seeing below errors but I cannot understand why the project afterDestroy hook causes errors:
What I did note was a similar error was occurring in Some kinda weird timing issue that I am not confident are just test related. Switching to draft for now. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6424 +/- ##
=======================================
Coverage 76.30% 76.31%
=======================================
Files 395 395
Lines 19821 19829 +8
Branches 4747 4751 +4
=======================================
+ Hits 15124 15132 +8
Misses 4697 4697
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This weird! |
|
@Steve-Mcl happy for me to review this again, or want to sleep on it? |
|
Not sure! The try catch is containing things, I just dont like that I have to do that. I mean tests are passing now! WDYT? Would be nice to avoid orphaned MCP entries! |
Description
Remove MCPRegistration entries on device and project deletion
NOTE: Adding unit tests will take longer than I have right now, so in the interest time (impending release and other outstanding tasks), I will defer unit tests to a later time (will raise separate issue as follow up)However, if you insist on tests to accompany this, please let me know.Added model unit test
Related Issue(s)
closes #6423
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel