Skip to content

Commit

Permalink
Faceted search (#44)
Browse files Browse the repository at this point in the history
* feat: add inventory tools settings to boot (#81)

* 14.6.0

Automatically generated by python-semantic-release

* ci: track overrides for purchase cycle (PO/PI/PR) (#89)

* ci: track overrides for stock and manufacturing cycles (#90)

Co-authored-by: Rohan Bansal <[email protected]>

* Test alternative workstation (#80)

* test: add test for alternative workstation

* feat: make alternative workstations configurable

* fix: uncomment js code for testing

* feat: search alternative workstation names

* refactor: pop filters that cause error for Workstation

* chore: update override commit hash

---------

Co-authored-by: Heather Kusmierz <[email protected]>

* wip: doctypes and vue setup

* wip: specification upload initerface

* wip: basic filters rendering + test setup

* wip: faceted search - specification editing report

* feat: add loader for specification and listview filters

* wip: all-products + "Fruits" filter working

* wip: set filter values in ranged filter

* chore: remove commented import

* wip: serialize dates as epoch time

* wip: sort order

* feat: facted search in listview also

* feat: color picker

also test fixtures fixes and csrf token fix (frappe.ready)

* feat: color picker background, date bugfix

* refactor: filters UX under all-product page

* fix: field validations on specification attribute child

* feat: collapsable filters for all-product page

* docs: faceted search functionality

* docs: fix images

* refactor: documentation, filtering ux

* docs: correction of documentation errors

* fix: color picker deserialization

* chore: add yarn.lock file

* feat: add debounce, refactor to vue3 with build

* feat: cleanup imports, mypy fixes

* ci: install mypy and types non-interactive

* ci: use python, bench is not installed

* ci: pipe yes

* ci: use --no-input instead og piping yes

* feat: add inventory tools settings

* feat: render in listview with style conflicts

* docs: update docs

* feat: allow user to bulk create specification values from specifications

* fix: update specification value attribute(s) if user change specification attribute name(s)

* chore: pre-commit

* fix: listview filter logic

* fix: faceted search various issues

* fix: cleaner item attribute lookup

* feat: allow edit and generate of specs from Item and Spec doctypes

* test: wip tests

todo: coallate most APIs into the 'update_linked_values' method

* chore: rebase to version-15, fix tests

* chore: black / prettier

* ci: install mypy types non-interactive

* ci: install webshop

* ci: add payments

* ci: install apps fixes, move test fixtures to separate job name

* wip: faceted search fixes

- styles
- API / data creation
- tests

* feat: fix deleted value test

wrong specification

* fix: filter UX on specification dialog

* chore: black

* fix: bad hex code for color fixture

* fix: reimplement convert_to_epoch function

* fix: minor changes

* feat: use composition API for Vue components

* fix: upstream override commit hashes

* feat: obey inventory tools settings visibility

* fix: web api filters setting correctly

* fix: reset list filters when faceted search filters are reset

* fix: reset facet filters when list filters are reset

* fix: sort order functionality

---------

Co-authored-by: Heather Kusmierz <[email protected]>
Co-authored-by: Rohan <[email protected]>
Co-authored-by: Rohan Bansal <[email protected]>
Co-authored-by: Rohan Bansal <[email protected]>
Co-authored-by: Devarsh Bhatt <[email protected]>
  • Loading branch information
6 people authored Aug 12, 2024
1 parent 12d5afa commit 398d970
Show file tree
Hide file tree
Showing 62 changed files with 4,584 additions and 839 deletions.
7 changes: 4 additions & 3 deletions .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile

bench get-app hrms --branch "${BRANCH_NAME}" --skip-assets --overwrite
bench get-app erpnext --branch "${BRANCH_NAME}" --skip-assets --overwrite
bench get-app payments --branch "${BRANCH_NAME}" --skip-assets --overwrite
bench get-app webshop --branch "${BRANCH_NAME}" --skip-assets --overwrite
bench get-app inventory_tools "${GITHUB_WORKSPACE}" --skip-assets

printf '%s\n' 'frappe' 'erpnext' 'hrms' 'inventory_tools' > ~/frappe-bench/sites/apps.txt
printf '%s\n' 'frappe' 'erpnext' 'hrms' 'payments' 'webshop' 'inventory_tools' > ~/frappe-bench/sites/apps.txt
bench setup requirements --python
bench use test_site

Expand All @@ -66,5 +68,4 @@ echo "SITE LIST-APPS:"
bench list-apps

bench start &> bench_run_logs.txt &
CI=Yes &
bench execute 'inventory_tools.tests.setup.before_test'
CI=Yes
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: pip install mypy

- name: Install mypy types
run: mypy ./inventory_tools/. --install-types
run: mypy ./inventory_tools/. --install-types --non-interactive

- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Track Overrides

on:
pull_request:
branches:
- version-14
- version-15

jobs:
track_overrides:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ jobs:
MYSQL_PWD: 'admin'
run: bash ${{ github.workspace }}/.github/helper/install.sh

- name: Install Test Fixtures
working-directory: /home/runner/frappe-bench
run: |
bench execute 'inventory_tools.tests.setup.before_test'
- name: Run Tests
working-directory: /home/runner/frappe-bench
run: |
Expand Down
14 changes: 4 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: debug-statements

- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: ['--py310-plus']
Expand All @@ -31,22 +31,16 @@ repos:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear']

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
exclude: ^tests/
args: [--ignore-missing-imports]

- repo: https://github.com/agritheory/test_utils
rev: v0.14.0
rev: v0.15.0
hooks:
- id: update_pre_commit_config
- id: mypy
- id: validate_copyright
files: '\.(js|ts|py|md)$'
args: ['--app', 'inventory_tools']
Expand Down
Loading

0 comments on commit 398d970

Please sign in to comment.