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

[PUI] IPN missing in search #8601

Closed
2 of 6 tasks
SergeoLacruz opened this issue Nov 30, 2024 · 10 comments
Closed
2 of 6 tasks

[PUI] IPN missing in search #8601

SergeoLacruz opened this issue Nov 30, 2024 · 10 comments
Labels
question This is a question setup Relates to the InvenTree setup / installation process

Comments

@SergeoLacruz
Copy link
Contributor

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Searching in the old interface shows the IPN and the mart name:

Image

In the new interface the IPN is missing:
Image

Steps to Reproduce

  1. click search button
  2. enter search string

Expected behaviour

IPN should be shown

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

0.17.0.dev
c734741
2024-11-24

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

@SergeoLacruz SergeoLacruz added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels Nov 30, 2024
@turist79
Copy link

Hi mate,

it works for me:

Image

Did you check the Search settings in options, probably something misconfigured there?

PS: i expected it to be Whole word serach option but strange enough it does not do what i expected - ie setting it to true does not prevent partial search :)

@SergeoLacruz
Copy link
Contributor Author

I made an update just now. Still the same result. I did not find a corresponding search setting:
Image

During update I got this massage:

InvenTree database migrations completed
Updating frontend...
Downloading frontend...
Current frontend information for commit is not available - this is expected in some cases
ERROR: Cannot find any workflow runs for current SHA
Python version 3.10.12 - /usr/bin/python3
Adding plugin sample static content

@SchrodingersGat
Copy link
Member

@SergeoLacruz if you are running from 0.17.0 dev version then the UI is not correctly up to date. The search table should look like this:

Image

So, I think that the user-interface files are not being downloaded properly - so probably this error is factoring in:

ERROR: Cannot find any workflow runs for current SHA

Can you please share the entire log for the update process?

@matmair matmair added setup Relates to the InvenTree setup / installation process and removed bug Identifies a bug which needs to be addressed triage:not-checked Item was not checked by the core team labels Dec 1, 2024
@SergeoLacruz
Copy link
Contributor Author

Here it comes:

log.txt

It's a bare metal setup on Ubuntu 22.04.
Your picture does not show the problem because 1553WBDK from the demo dataset does not have an IPN.

@matmair
Copy link
Member

matmair commented Dec 1, 2024

It seems lke you are running bare metal. In this case you will have to build the frontend yourself by running invoke int.frontend-build. This requires node to be presend on the system

@SergeoLacruz
Copy link
Contributor Author

I remember...
We discussed this already.
I former times I needed to download the frontend manually.

@wolflu05
Copy link
Contributor

wolflu05 commented Dec 1, 2024

You can still download the frontend manually, but only if you run on a sha on official master and not some custom modified version. Or you use a tagged version, then the download should happen automatically.

@SergeoLacruz
Copy link
Contributor Author

michael@Tree:~/src$ invoke int.frontend-build
Building frontend
yarn run v1.22.22
$ tsc && vite build --emptyOutDir
src/App.tsx(1,29): error TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations.
src/App.tsx(2,19): error TS2307: Cannot find module 'axios' or its corresponding type declarations.
src/components/Boundary.tsx(1,19): error TS2307: Cannot find module '@lingui/macro' or its corresponding type declarations.
...

Several hundred errors.
This seems to be an endless story. Giving up...

@matmair
Copy link
Member

matmair commented Dec 1, 2024

@SergeoLacruz this error means the required packages are not there; invoke int.frontend-compile will set up everything

@SergeoLacruz
Copy link
Contributor Author

Victory :-)
On Ubuntu 22.04 There are some more things to do:

install npm
install tsx using npm
install yarn
install node-typescript

For nodejs upgrade package info because the latest on 22.04 is 12:

curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install nodejs

invoke int.frontend-install
invoke int.frontend-trans
invoke int.frontend-build

got some warnings like

▲ [WARNING] Unexpected "(" [css-syntax-error]

<stdin>:91:2:
  91 │   (max-width: 48em) {
     ╵   ^

Finally the new UI works es expected and the IPN is there :-) Thanks to all for the help.
I will add a paragraph to the docs soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

No branches or pull requests

5 participants