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

Data Extractor handle null #1063

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Data Extractor handle null #1063

merged 1 commit into from
Jan 18, 2024

Conversation

ryanmelt
Copy link
Member

No description provided.

@ryanmelt ryanmelt requested a review from jmthomas January 18, 2024 02:11
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (9a00813) 75.34% compared to head (2b2729b) 75.31%.

Files Patch % Lines
...xtractor/src/tools/DataExtractor/DataExtractor.vue 0.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1063      +/-   ##
==========================================
- Coverage   75.34%   75.31%   -0.03%     
==========================================
  Files         590      590              
  Lines       43158    43160       +2     
  Branches      749      750       +1     
==========================================
- Hits        32517    32508       -9     
- Misses      10563    10573      +10     
- Partials       78       79       +1     
Flag Coverage Δ
frontend 55.26% <0.00%> (-0.10%) ⬇️
python 83.58% <ø> (-0.04%) ⬇️
ruby-api 48.71% <ø> (ø)

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.

@@ -932,7 +932,9 @@ export default {
let columnIndex = columnMap[key]
// Get the value and put it into the correct column
if (typeof packet[key] === 'object') {
if (Array.isArray(packet[key])) {
if (packet[key] === null) {
row[columnIndex] = ''
Copy link
Member

Choose a reason for hiding this comment

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

Any idea how we'd be getting null in here? I agree it's good to explicitly handle it.

Copy link
Member Author

Choose a reason for hiding this comment

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

It happens if you playback over items that don't exist in earlier versions of a packet.

@ryanmelt ryanmelt merged commit 999d435 into main Jan 18, 2024
22 of 24 checks passed
@ryanmelt ryanmelt deleted the data_extractor_null branch January 18, 2024 15:35
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