reportportal / reportportal

Main Repository. ReportPortal starts here - see readme below.
http://reportportal.io
Apache License 2.0
1.75k stars 467 forks source link

"Latest Launches" Option in Widget Displays Same Data as "All launches" Option #2329

Closed Priyanshu19992002 closed 2 months ago

Priyanshu19992002 commented 2 months ago

Describe the bug

Steps to Reproduce

Expected behavior

Screenshots

Versions: Two versions were tested

 - OS = RHEL 8
 - Version of RP = API Service: 5.10.1;Index Service: 5.10.0;Jobs Service: 5.10.0;Authorization Service: 5.10.0;Service UI: 5.10.0;
 - Browser: Chrome v127.0.6533.120
 - RP Agent = serenity-reportportal-integration (v1.5.7)
- OS = macOS Sonoma 14.2.1
- Browser: Chrome v127.0.6533.120
- Version of RP = v24.1
- RP Agent = serenity-reportportal-integration (v1.5.7)
Pink-Bumblebee commented 2 months ago

@Priyanshu19992002 , may I ask you to do the same check at demo.reportportal.io ? Also, please read this article about latest launches : https://reportportal.io/docs/dashboards-and-widgets/ComponentHealthCheck/ I see there :

‘LATEST LAUNCH’ option

For the first level, the flow is almost the same as for the ‘ALL LANCHES’ option. However, after the test cases are grouped around unique values for the attribute key, system only leaves the tests cases from latest launches executions for each selection. For example, if you have Launch A with executions 1 and 2 and Launch B with executions 1 and 2 and they correspond to the applied filter, then building the widget based on “LATEST LAUNCHES’ parameter will take into account only the test cases from Launch A executions 2 and Launch B executions 2.

Priyanshu19992002 commented 2 months ago

Hi @Pink-Bumblebee ,

Thanks for replying. I understood that the behaviour of component health checks widget starts with the launch name, it will group all diff launches (on the basis of their name) into separate groups like Group 1 = Launch A, Group 2 = Launch B , Group 3 = Launch C and so on... and then if we select latest launches option then it will pick the latest launch of all the groups and accumulate them and show it on the widget.

I have few more questions on the basis of above understanding:

Pink-Bumblebee commented 2 months ago

@Priyanshu19992002 , if I understood you correctly, you could add one more filter Healthcheck_08/12 and create one more widget for it.

Priyanshu19992002 commented 2 months ago

@Pink-Bumblebee, Let me present it more concisely:

There are three launches in RP with name as below:

  1. Healthcheck_08/10
  2. Healthcheck_08/11
  3. Healthcheck_08/12

Similarly there will be more launches following the above launch name pattern but for now let us consider these 3 launches with latest launch be Healthcheck_08/12.

Now, I am creating one filter with name Healthcheck which will have all the three launches mentioned above.

Now let say there are two use cases with the above launches for visualization:

Hope it was more clear to you this time.

Kozovskaya commented 2 months ago

@Priyanshu19992002 Hello The current behavior of the widget is expected as for ReportPortal launches Healthcheck_08/12, Healthcheck_08/10, Healthcheck_08/11 are different launches. When we talk about latest execution we mean the following: Launch with name 'Healthcheck_08/12' was executed several times and in ReportPortal is displayed as Healthcheck_08/12 #1 Healthcheck_08/12 #2 Healthcheck_08/12 #3 - this is the last execution. For the launch Healthcheck_08/10 Healthcheck_08/10 #1 Healthcheck_08/10 #2 Healthcheck_08/10 #3 - this is the last execution. For option Latest launches the widget will use only: Healthcheck_08/12 #3 Healthcheck_08/10 #3 For All launches - all the mentioned executions will be analyzed.

Kozovskaya commented 2 months ago

If you want ReportPortal to work as if this is the same launch - make a unique launch name (ex. Healthcheck) and such things as 08/12... etc. put either in attributes or in description image