2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-26 00:28:02 +00:00

[API] Enhanced filtering for generic parameters (#11383)

* Enhanced filtering for parameter templates

- Allow filtering by model ID as well as model type

* Enhanced filtering for ParameterTemplate

- Required for the parameteric data tables
- Enable filtering by base model ID
- Enable filtering by related model ID

* Bump API version

* Remove outdated comments

* Fix typo

* Remove debug statement

* Added unit tests

* Playwright tests

* Fix unit test

* Bump requirements

* Revert
This commit is contained in:
Oliver
2026-02-20 09:32:33 +11:00
committed by GitHub
parent fc1bfe876c
commit dd423dccd6
12 changed files with 524 additions and 88 deletions

View File

@@ -1,5 +1,10 @@
import { test } from '../baseFixtures.js';
import { clickOnParamFilter, loadTab, navigate } from '../helpers.js';
import {
clickOnParamFilter,
loadTab,
navigate,
showParametricView
} from '../helpers.js';
import { doCachedLogin } from '../login.js';
test('Company', async ({ browser }) => {
@@ -49,9 +54,7 @@ test('Company - Parameters', async ({ browser }) => {
});
// Show parametric view
await page
.getByRole('button', { name: 'segmented-icon-control-parametric' })
.click();
await showParametricView(page);
// Filter by "payment terms" parameter value
await clickOnParamFilter(page, 'Payment Terms');