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

Handle multiple experiments with the same name #240

Merged

Conversation

ngondalia
Copy link
Contributor

Create panel after server instantiates the experiment and tie the panel name to the experiment name

Fixes the constant switching of tabs when multiple experiments opened with the same name

Signed-off-by: Neel Gondalia [email protected]

@ngondalia
Copy link
Contributor Author

light2.mp4

@ngondalia
Copy link
Contributor Author

light2.mp4

This is the issue that this commit addresses

Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change makes sense to open the panel with the correct name.

I was not able to reproduce the flickering. I guess it's timing related. I got hopeful that it would fix the flickering reported in #238, but this update doesn't address it. The Trace Compass team will investigate that issue in a separate effort.

Please update the PR for my comment in trace-utils.ts.

);
return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If returning here no experiment is created with a subset of traces. The idea was that for a list of traces pathes in tracesArray, each trace is posted to the server. If not successful, it continues with the next trace in the array. If one or more are successfully posted, the experiment is created with these traces. Below there is a warning message created to the user of failed traces. If no trace was successfully posted the no experiment is created.

I think we should remove the return here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake - fixed!

Create panel after server instantiates the experiment and tie the panel name
to experiment name

Signed-off-by: Neel Gondalia <[email protected]>
@ngondalia
Copy link
Contributor Author

I was not able to reproduce the flickering. I guess it's timing related. I got hopeful that it would fix the flickering reported in #238, but this update doesn't address it. The Trace Compass team will investigate that issue in a separate effort.

It doesnt always happen - it depends on what you click after opening the second trace. For me, its always reproducible if i click the newly opened trace (2nd trace with same name) in Opened Traces view.

@bhufmann
Copy link
Collaborator

I was not able to reproduce the flickering. I guess it's timing related. I got hopeful that it would fix the flickering reported in #238, but this update doesn't address it. The Trace Compass team will investigate that issue in a separate effort.

It doesnt always happen - it depends on what you click after opening the second trace. For me, its always reproducible if i click the newly opened trace (2nd trace with same name) in Opened Traces view.

I was able to reproduce it now. Thanks for the steps.

Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@ngondalia ngondalia merged commit 1da51d5 into eclipse-cdt-cloud:master Apr 17, 2024
6 checks passed
This was referenced Apr 18, 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

Successfully merging this pull request may close these issues.

2 participants