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

Test run search shows no results more #3661

Closed
hnankov opened this issue May 23, 2024 · 3 comments
Closed

Test run search shows no results more #3661

hnankov opened this issue May 23, 2024 · 3 comments

Comments

@hnankov
Copy link

hnankov commented May 23, 2024

Description of problem

Hello,
I use the Kiwi TCMS Community Edition (docker: kiwitcms/kiwi:latest)
After updating the Docker image to version v13.3, the TerstRun search no longer gives me any results.
The other search functions for Testcase and Testplan work well.

Version or commit hash (if applicable)

v13.3, docker image: kiwitcms/kiwi:latest

Steps to Reproduce

  1. start kiwitcms/kiwi:latest and postgres:latest docker container
  2. add new simple test case
  3. add new simple test plan
  4. add test case to tes plan
  5. create testrun from test plan
  6. open https://server.com/runs/search/
  7. no results are loaded

Actual results

no results are loaded

Expected results

Existing test runs are displayed

Additional info (Python traceback, logs, etc.)

docker container logs -f --tail 1000 container
doesn't show anything unusual

Screenshot 2024-05-23 164953
@hnankov
Copy link
Author

hnankov commented May 23, 2024

Here is the output of the JS console:

`Refused to load the script 'https://plausible.io/js/script.js' because it violates the following Content Security Policy directive: "script-src 'self' cdn.crowdin.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

grappelli.min.js:1 Uncaught ReferenceError: grappelli is not defined
at grappelli.min.js:1:349
at grappelli.min.js:1:4038
(anonym) @ grappelli.min.js:1
(anonym) @ grappelli.min.js:1
bundle.js:3936 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
at bundle.js:3936:72
at Array.forEach ()
at bundle.js:3929:18
at Object.success (bundle.js:190:17)
at c (jquery.min.js:2:28327)
at Object.fireWith [as resolveWith] (jquery.min.js:2:29072)
at l (jquery.min.js:2:80045)
at XMLHttpRequest. (jquery.min.js:2:82499)`

@hnankov
Copy link
Author

hnankov commented May 24, 2024

The error only occurs when the search finds test runs.

in line number 3939 of the bundle.js file

element.product_name = products[element.plan__product].name

element.plan__product appears to be undefined

element dump
{
"id": 1,
"start_date": "2024-05-24T12:22:57",
"stop_date": "2024-05-24T12:22:58",
"planned_start": null,
"planned_stop": null,
"summary": "Test run for test",
"notes": "",
"plan": 1,
"plan__name": "test",
"build": 1,
"build__name": "unspecified",
"build__version": 1,
"build__version__value": "unspecified",
"build__version__product": 1,
"manager": 2,
"manager__username": "tcms_admin",
"default_tester": 2,
"default_tester__username": "tcms_admin",
"tag": []
}

@hnankov
Copy link
Author

hnankov commented May 28, 2024

Found a mistake. I forgot I overwrite the file.

@hnankov hnankov closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant