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

Result summary widget is not handling None #418

Closed
rsnyman opened this issue Jan 19, 2023 · 0 comments · Fixed by #452 or #456
Closed

Result summary widget is not handling None #418

rsnyman opened this issue Jan 19, 2023 · 0 comments · Fixed by #452 or #456
Labels
backend bug Something isn't working

Comments

@rsnyman
Copy link
Contributor

rsnyman commented Jan 19, 2023

ERROR in app: Exception on /api/widget/result-summary [GET]
Traceback (most recent call last):
File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/app-root/lib64/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/decorator.py", line 68, in wrapper
response = function(request)
File "/opt/app-root/lib64/python3.8/site-packages/connexion/security/security_handler_factory.py", line 388, in wrapper
return function(request)
File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper
response = function(request)
File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/validation.py", line 399, in wrapper
return function(request)
File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/parameter.py", line 120, in wrapper
return function(**kwargs)
File "/opt/app-root/src/ibutsu_server/controllers/widget_controller.py", line 99, in get_widget
return WIDGET_METHODS[id_](**params)
File "/opt/app-root/src/ibutsu_server/widgets/result_summary.py", line 52, in get_result_summary
summary["error"] += error
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
@rsnyman rsnyman added bug Something isn't working backend labels Jan 19, 2023
rsnyman added a commit to rsnyman/ibutsu-server that referenced this issue Mar 30, 2023
rsnyman added a commit that referenced this issue Mar 31, 2023
Check if values are None and default to 0 if they are (fix #418)
rsnyman added a commit to rsnyman/ibutsu-server that referenced this issue Apr 4, 2023
…widgets

* Migrate to use the built-in TreeView component from PatternFly
* Check if values are None and default to 0 if they are (fix ibutsu#418)
* Add the ability to disable SSL verification
* Fix the download buttons so that they actually download the artifact or report
* Parameter should be a string, force the value to be a string
* Expose the Keycloak login environment in App Interface
@rsnyman rsnyman mentioned this issue Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
Status: 📋 Backlog
1 participant