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

PacketViewer config bugs #1806

Merged
merged 5 commits into from
Jan 3, 2025
Merged

PacketViewer config bugs #1806

merged 5 commits into from
Jan 3, 2025

Conversation

ryan-pratt
Copy link
Contributor

@ryan-pratt ryan-pratt commented Jan 2, 2025

Fixed bugs:

  • PacketViewer doesn't appear to remember your last viewed packet
  • PacketViewer errors out when you return to it after deleting the packet in its saved config (e.g. delete the demo plugin)

I couldn't find github issues for these, but they were discussed in scrum at some point

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.58%. Comparing base (a792ac2) to head (cefeac0).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1806      +/-   ##
==========================================
+ Coverage   79.56%   79.58%   +0.01%     
==========================================
  Files         517      517              
  Lines       40737    40737              
==========================================
+ Hits        32414    32419       +5     
+ Misses       8323     8318       -5     
Flag Coverage Δ
python 84.30% <ø> (+0.03%) ⬆️
ruby-api 48.64% <ø> (ø)
ruby-backend 82.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarqubecloud bot commented Jan 2, 2025

@ryan-pratt ryan-pratt marked this pull request as ready for review January 2, 2025 22:36
@ryan-pratt ryan-pratt requested a review from jmthomas January 2, 2025 22:46
if (val) {
this.selectedItemName = val.toUpperCase()
}
},
Copy link
Member

Choose a reason for hiding this comment

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

So this is the bug fix because we were updating initalTargetName after the use ... I see it was only ever set in data. How did this ever work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed during scrum, but I'm not sure how this ever worked, but I suspect the TargetPacketItemChooser was being destroyed and recreated or something like that.

this.$router.push({
name: 'PackerViewer',
params: {},
})
Copy link
Member

Choose a reason for hiding this comment

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

Nice ... I think there's probably other places in COSMOS where we're "remembering" previous values but the most obvious is here in Packet Viewer

@ryan-pratt ryan-pratt merged commit 88de888 into main Jan 3, 2025
27 of 28 checks passed
@ryan-pratt ryan-pratt deleted the bug/packetviewer-config branch January 3, 2025 17:52
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