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

Recursive delete fix fix #5819

Merged

Conversation

SchrodingersGat
Copy link
Member

Attempting to fix bug introduced in recent PR which only seems to be an issue for mysql backend.

Ref: #5806

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 0dc51b2
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6540e27f27546b000815ef1d
😎 Deploy Preview https://deploy-preview-5819--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed CI CI / unit testing ecosystem labels Oct 30, 2023
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Oct 30, 2023
- Ensure that the "parent" field is set to None before delete
- This means that we do not violate any ForeignKey constraints due to undefined order of operations
@SchrodingersGat SchrodingersGat merged commit 2908ad0 into inventree:master Oct 31, 2023
24 of 25 checks passed
@SchrodingersGat SchrodingersGat deleted the recursive-delete-fix-fix branch October 31, 2023 11:58
@@ -274,7 +274,6 @@ jobs:
runs-on: ubuntu-20.04

needs: [ 'pep_style', 'pre-commit' ]
if: github.event_name == 'push'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SchrodingersGat I guess you don't wanted to remove that for merge?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The various backend tests don't take that long any more, I think it is worth checking that the supported databases are tested on PR as well as push

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed CI CI / unit testing ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants