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

Adds "is_variant" filter for Part API #9077

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

SchrodingersGat
Copy link
Member

  • Adds additional filter to the Part API
  • Allows filtering by is_variant attribute (calculated)

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature part Related to Part models api Relates to the API labels Feb 14, 2025
@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Feb 14, 2025
Copy link

netlify bot commented Feb 14, 2025

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

Name Link
🔨 Latest commit 2f8e9f9
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67aeadb633194900081221cc
😎 Deploy Preview https://deploy-preview-9077--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: 96 (🟢 up 1 from production)
Accessibility: 89 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (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.

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.70%. Comparing base (caa0498) to head (2f8e9f9).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/backend/InvenTree/part/api.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9077      +/-   ##
==========================================
+ Coverage   85.53%   85.70%   +0.16%     
==========================================
  Files        1177     1177              
  Lines       52088    52091       +3     
  Branches     2120     2120              
==========================================
+ Hits        44556    44644      +88     
+ Misses       6993     6899      -94     
- Partials      539      548       +9     
Flag Coverage Δ
backend 87.37% <75.00%> (+<0.01%) ⬆️
pui 69.86% <ø> (+0.80%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SchrodingersGat SchrodingersGat merged commit cca1912 into inventree:master Feb 14, 2025
27 checks passed
@SchrodingersGat SchrodingersGat deleted the is-variant-filter branch February 14, 2025 06:08
matmair added a commit to matmair/InvenTree that referenced this pull request Feb 14, 2025
SchrodingersGat pushed a commit that referenced this pull request Feb 17, 2025
* move version tests

* factor out read_license_file

* add testing for license file

* ignore special case when we create the schema

* extent no found api tests

* extend info view tests

* try fixing test?

* fix?

* test user create api

* measure impact of removing bom import

* remove dead code

* Revert "measure impact of removing bom import"

This reverts commit bb31db0.

* remove dead code

* remove plugin tags that were made for CUI

* add testing for filters

* add test for config delete

* add more api tests

* adjust tests

* fix test

* use superuser

* adapt error code

* Add test for #9077

* add mixin_available mixin

* make check_reload more observable

* test check_reload too

* test clean_barcode

* reset after testing

* extend datamatrix testing

* debug print

* fix assertation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature part Related to Part models
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant