-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[API] Filter refactor #11073
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
Merged
SchrodingersGat
merged 72 commits into
inventree:master
from
SchrodingersGat:filter-refactor
Apr 12, 2026
Merged
[API] Filter refactor #11073
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
21e4370
Lazy evaluation of optional serializer fields
SchrodingersGat 5a166f8
Refactor BuildLineSerializer class
SchrodingersGat f798307
Simplify gathering
SchrodingersGat b397ab9
Refactor BuildSerializer
SchrodingersGat 09d35d2
Refactor other Build serializers
SchrodingersGat 8f47288
Refactor Part serializers
SchrodingersGat 70489cd
Refactoring more serializers to use OptionalField
SchrodingersGat 25dd239
More refactoring
SchrodingersGat e71268a
Cleanup for mixin class
SchrodingersGat 34a7474
Ensure any optional fields we added in are not missed
SchrodingersGat dcf6a55
Fixes
SchrodingersGat 31c21a5
Rehydrate optional fields for metadata
SchrodingersGat b62a89a
Add TreePathSerializer class
SchrodingersGat fc6bb24
Further improvements:
SchrodingersGat 6ad980a
Adjust unit tests
SchrodingersGat 9e46356
Fix for "build_relational_field"
SchrodingersGat cddf922
Fix case where multiple fields can share same filter
SchrodingersGat 61251f4
additional unit tests
SchrodingersGat 0386a6a
Bump API version
SchrodingersGat b18a3e3
Remove top-level detection
SchrodingersGat ea049ab
Cache serializer to prevent multiple __init__ calls
SchrodingersGat 4785f79
Revert caching change
SchrodingersGat 7123efc
Simplify field removal
SchrodingersGat 95e0aa8
Adjust unit test
SchrodingersGat a18dffe
Remove docstring comment which is no longer true
SchrodingersGat 30f7760
Merge branch 'master' into filter-refactor
SchrodingersGat cae2644
Ensure read-only fields are skipped for data import
SchrodingersGat 8e77006
Use SAFE_METHODS
SchrodingersGat 853726e
Do not convert to lowercase
SchrodingersGat 61afb97
Updated docstring
SchrodingersGat fa3f080
Remove FilterableSerializerField mixin
SchrodingersGat 4bbd3dd
Merge branch 'master' into filter-refactor
SchrodingersGat 4244367
Ensure all fields are returned when generating schema
SchrodingersGat eb8ce92
Fix order of operations
SchrodingersGat f8cab0e
Merge branch 'master' into filter-refactor
matmair 3793a75
Merge commit 'e1b5fbd38da3b6e7e96272532278fa9f52da5e69' into filter-r…
SchrodingersGat d07a77d
Add assertion to unit test
SchrodingersGat e84b50e
Merge branch 'master' into filter-refactor
matmair e688e4c
Merge branch 'master' into filter-refactor
matmair 65b944e
Merge branch 'master' into filter-refactor
matmair e75ebd4
Merge branch 'master' into filter-refactor
SchrodingersGat 111eb87
Merge branch 'master' into filter-refactor
matmair 9b3a40b
Merge branch 'master' into filter-refactor
matmair 4b5b646
Merge branch 'master' into filter-refactor
matmair 5ff8485
Merge commit 'd24ba7965c9e8d94d1eb638c0fbe5b67632180c6' into filter-r…
SchrodingersGat c86d193
Merge branch 'master' into filter-refactor
matmair bbcf80c
fix style
matmair 1159e8c
Merge commit '2e675ee87a63ff5cc900c327a11995fe4cf3c1c4' into filter-r…
SchrodingersGat 02d2081
Fix api_version
SchrodingersGat 0b8a42e
Merge branch 'master' into filter-refactor
SchrodingersGat 19c2d34
Merge commit '6c58cc709f6627e0d38ed1c1d70d8f1fe5c40dec' into filter-r…
SchrodingersGat 7e1780d
Merge branch 'master' into filter-refactor
matmair 4a1e31f
Merge branch 'master' into filter-refactor
matmair b4c7293
Merge commit 'b4f230753f12170d22f696d93326a82b0eef9013' into filter-r…
SchrodingersGat d51ce91
Remove duplicate API entries
SchrodingersGat 3109df5
Remove duplicate API entries
SchrodingersGat 60e2c08
Merge commit '67d6026637dbca15ce5dd873615da73cf5df721f' into filter-r…
SchrodingersGat 4a2aee1
Fix formatting in api_version.py
SchrodingersGat 149cdc5
Tweak ManufacturerPart serializer
SchrodingersGat ac07a94
Merge branch 'master' into filter-refactor
SchrodingersGat e066529
Merge branch 'master' into filter-refactor
SchrodingersGat fd69569
Merge branch 'master' into filter-refactor
SchrodingersGat 2c4cd05
Merge commit 'c8bcb924cac0fbf50e74842e1e503f4e58ed9a97' into filter-r…
SchrodingersGat e2ce676
Merge branch 'master' into filter-refactor
SchrodingersGat 28d5538
Merge branch 'master' into filter-refactor
SchrodingersGat 67a5952
Merge branch 'master' into filter-refactor
SchrodingersGat e58aa99
Merge commit '62588a62a3ab5d387b7ed6f438fbad8ac0b0a59b' into filter-r…
SchrodingersGat 4a4d817
Merge branch 'master' into filter-refactor
SchrodingersGat 4d923e9
Merge commit '366d4c398c9b8f4f6f95715b6b1beaeae20cc788' into filter-r…
SchrodingersGat d777fc7
Merge branch 'master' into filter-refactor
SchrodingersGat c32e334
Merge branch 'master' into filter-refactor
SchrodingersGat 8b4eeee
Revert formatting change
SchrodingersGat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.