Repository navigation
Schema cleanup tmp - #9143
Schema cleanup tmp#9143
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
|
I'll get the failing tests cleaned up tonight. Apparently the nullable type hint that I put in for the schema generator is not at all supported by the testing framework. |
|
The annotated fields which are read only should not be nullable IMO. They are always going to be either true or false |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9143 +/- ##
==========================================
+ Coverage 86.05% 86.10% +0.04%
==========================================
Files 1182 1182
Lines 52116 52117 +1
Branches 2185 2185
==========================================
+ Hits 44850 44875 +25
+ Misses 6706 6682 -24
Partials 560 560
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:
|
|
@1337joe getting there! You just need to increment the API version in |
|
@1337joe you'll also need to add a descriptive entry into the api version file :) |
|
I'm guessing there's nothing I can do about the API schema documentation diff being too big for the job to complete? |
|
@matmair what do you think here? Are we OK to merge, or will this break things? |
matmair
left a comment
There was a problem hiding this comment.
Seems to be covered by tests pretty well; should be ok;
Ready for merge
This doesn't cover everything, but it at least hits the endpoints I've written tests for using a opanapi-generated api client in Java. I'll continue working on that as I have time but I wanted to get a first batch committed, especially since I see the auth api just got reworked and I don't want to get merge conflicts from sitting on my changes too long.
The added type hints address warnings thrown by schema generation.
Nullable is added to various fields that my tests get null responses from using the sample data.
Works on #9045 but doesn't fully solve it