Skip to content

Fix missing field in profile-summary when data is missing#11952

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-profile-summary-bug
Mar 6, 2025
Merged

Fix missing field in profile-summary when data is missing#11952
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-profile-summary-bug

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Mar 5, 2025

🛠 Summary of changes

Follow up to fix a bug from #11935 where the resulting rows are missing a field in the case where a User or Profile was not found. I've also added a check to this and other table-based reports to try to avoid a regression where the row lengths do not match.

@mitchellhenke mitchellhenke requested a review from a team March 5, 2025 20:48
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-profile-summary-bug branch from c932182 to 8cd32ee Compare March 5, 2025 21:43
changelog: Bug Fixes, Reporting, Fix missing field in profile-summary when data is missing
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-profile-summary-bug branch from 8cd32ee to 66746e4 Compare March 5, 2025 21:54
['missing@example.com', '[NOT FOUND]'],
]

expect(result.table).to eq(expected_table)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm probably just being dense, but I don't entirely follow how these changes would have caught the previous issue. Shouldn't an equality check have failed?

Copy link
Contributor Author

@mitchellhenke mitchellhenke Mar 5, 2025

Choose a reason for hiding this comment

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

You're right, my added check does not address the issue.

Copy link
Contributor Author

@mitchellhenke mitchellhenke Mar 5, 2025

Choose a reason for hiding this comment

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

Added a hopefully clearer and more correct check in 946f8fb

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-profile-summary-bug branch from 3500b6c to 946f8fb Compare March 5, 2025 22:58
@mitchellhenke mitchellhenke merged commit 2653037 into main Mar 6, 2025
2 checks passed
@mitchellhenke mitchellhenke deleted the mitchellhenke/fix-profile-summary-bug branch March 6, 2025 13:58
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.

3 participants