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

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

Merged
merged 2 commits into from
Mar 6, 2025

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
['[email protected]', '[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
jmax-gsa pushed a commit that referenced this pull request Mar 7, 2025
* Fix missing field in profile-summary when data is missing

changelog: Bug Fixes, Reporting, Fix missing field in profile-summary when data is missing

* Fix check for consistent row length
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