-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
SalesOrder migration unit test #8814
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@matmair no closer to working out why this is happening but I can recreate the issue clearly with this migration unit test. By instrumenting the print("_do_insert:", manager)
for f in fields:
print("-", f) I am getting the following: _do_insert: order.SalesOrder._base_manager
- order.SalesOrder.reference
- order.SalesOrder.description
- order.SalesOrder.link
- order.SalesOrder.creation_date
- order.SalesOrder.status
- order.SalesOrder.notes
- order.SalesOrder.customer_reference
- order.SalesOrder.created_by
- order.SalesOrder.customer
- order.SalesOrder.shipment_date
- order.SalesOrder.shipped_by
- order.SalesOrder.target_date
- order.SalesOrder.responsible
- order.SalesOrder.reference_int
- order.SalesOrder.metadata
- order.SalesOrder.total_price_currency
- order.SalesOrder.total_price
- order.SalesOrder.contact
- order.SalesOrder.barcode_data
- order.SalesOrder.barcode_hash
- order.SalesOrder.project_code
- order.SalesOrder.order_currency
- order.SalesOrder.address
- order.SalesOrder.status_custom_key
- order.SalesOrder.status_custom_key Clearly the 'status_custom_key' is being added twice (but seemingly only during the data migration)? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8814 +/- ##
==========================================
+ Coverage 85.16% 85.21% +0.05%
==========================================
Files 1178 1177 -1
Lines 51810 51715 -95
Branches 2092 2092
==========================================
- Hits 44124 44070 -54
+ Misses 7152 7115 -37
+ Partials 534 530 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Very intresting that this only fails on postgres |
multiple assignments to same column "status_custom_key"
#8796