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

changing time bounds results in duplicate telemetry requests #4167

Closed
2 of 5 tasks
davetsay opened this issue Aug 30, 2021 · 8 comments · Fixed by #4295
Closed
2 of 5 tasks

changing time bounds results in duplicate telemetry requests #4167

davetsay opened this issue Aug 30, 2021 · 8 comments · Fixed by #4295

Comments

@davetsay
Copy link
Contributor

Summary

Two telemetry requests occur when you change bounds from the time conductor.

Expected vs Current Behavior

Duplicate requests happen for each telemetry on bounds change where only one is expected.

Impact Check List

  • Data loss or misrepresented data?
  • Regression? Did this used to work or has it always been broken?
  • Is there a workaround available?
  • Does this impact a critical component?
  • Is this just a visual bug?

Steps to Reproduce

  1. Go to network tab in browser developer tools and clear data
  2. navigate to a telemetry endpoint and observe one http request
  3. change time bounds and observe two duplicate http requests

Environment

  • Open MCT Version:
  • Deployment Type:
  • OS:
  • Browser:

Additional Information

@shefalijoshi
Copy link
Contributor

shefalijoshi commented Aug 31, 2021

The issue here is that the button for submitting the form (ref=submitButton) has type="submit"
https://github.com/nasa/openmct/blob/master/src/plugins/timeConductor/Conductor.vue#L41

This will cause the form to submit twice. Changing the button to type="button" and attaching an @click handler to it should help alleviate this problem. Care should be taken to ensure that validation errors/messages continue to work as before if this is done.

@unlikelyzero unlikelyzero added this to Needs triage in Bug Tracker via automation Sep 1, 2021
@jvigliotta jvigliotta self-assigned this Sep 23, 2021
@jvigliotta
Copy link
Contributor

jvigliotta commented Sep 27, 2021

Testing Notes

  • on the very first visit to Open MCT, click into the start or end inputs for fixed time conductor and press enter (no need to change anything)
  • verify the page doesn't refresh
  • open a new tab
  • visit repeat

@unlikelyzero
Copy link
Collaborator

Will retest with Yamcs is not "behaving poorly"

@nikhilmandlik
Copy link
Contributor

Verified Fixed.

@shefalijoshi
Copy link
Contributor

Sometimes I see the page refreshing when making a time conductor change. But I'm not sure how to reliably trigger this.

@unlikelyzero
Copy link
Collaborator

Leaving this unverified for another testathon. Please explore the area identified by @shefalijoshi #4167 (comment)

@davetsay
Copy link
Contributor Author

@jvigliotta assigning to you

@davetsay davetsay reopened this Sep 30, 2021
Bug Tracker automation moved this from Done to Needs triage Sep 30, 2021
@jvigliotta jvigliotta mentioned this issue Oct 6, 2021
8 tasks
Bug Tracker automation moved this from Needs triage to Done Oct 6, 2021
@shefalijoshi shefalijoshi self-assigned this Oct 8, 2021
@shefalijoshi
Copy link
Contributor

Verified fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

5 participants