Reportportal: TypeError: Cannot read property 'toString' of undefined" after clicking on Pattern Analysis [v5]

Created on 29 Apr 2020  路  3Comments  路  Source: reportportal/reportportal

I am getting error as "TypeError: Cannot read property 'toString' of undefined" after clicking on Pattern Analysis first time after migration from V4.3 to V5 to V5.1.

image

bug

Most helpful comment

WA tested to be working!
Maybe when providing WA procedure please provide some clear steps how to apply those (not all may know) ;)
1) docker ps --> identify the container running PostGres
2) connect to that container --> # docker container exec -it /bin/bash
3) connect to DB --> (if you haven麓t change default values) # psql reportportal rpuser
4) type SQL query --> INSERT INTO project_attribute (attribute_id, value, project_id) select 10, false, id from project ON CONFLICT DO NOTHING;

All 3 comments

Fixed in the latest version of migration services.
If migration was run before fix there is a workaround. Need to connect to the database and execute the next query:
INSERT INTO project_attribute (attribute_id, value, project_id) select 10, false, id from project ON CONFLICT DO NOTHING;

WA tested to be working!
Maybe when providing WA procedure please provide some clear steps how to apply those (not all may know) ;)
1) docker ps --> identify the container running PostGres
2) connect to that container --> # docker container exec -it /bin/bash
3) connect to DB --> (if you haven麓t change default values) # psql reportportal rpuser
4) type SQL query --> INSERT INTO project_attribute (attribute_id, value, project_id) select 10, false, id from project ON CONFLICT DO NOTHING;

@pbortnik just FYI this bug is still in migrations:5.2.0, I received this error while was upgrading to 5.2.2. But anyway query fixed the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

priyankachaturvedi30 picture priyankachaturvedi30  路  3Comments

bawarim picture bawarim  路  4Comments

roniezr picture roniezr  路  6Comments

ivan-sukhomlyn picture ivan-sukhomlyn  路  4Comments

chhatbarjignesh picture chhatbarjignesh  路  6Comments