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: Use email or name when building community list view #7203

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

microamp
Copy link
Collaborator

Fixes #7036

An additional argument has been added to pass the email_or_name variable through.

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.83%. Comparing base (c7f6bde) to head (114c525).
Report is 70 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7203      +/-   ##
==========================================
+ Coverage   88.78%   88.83%   +0.04%     
==========================================
  Files         296      304       +8     
  Lines       41320    41501     +181     
==========================================
+ Hits        36687    36866     +179     
- Misses       4633     4635       +2     

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

@rjsparks
Copy link
Member

Since this is fixing a crash bug, we should add, or modify an existing test to include, a test that exercises the condition that led to the crash.

That test should also cover the view for person Y after having constructed a person X with name N and email E, and a person Y with name N (note same name) but no email.

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

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

See the earlier note re: tests

Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

Looks good to me, agree that it should have a test.

@jennifer-richards
Copy link
Member

I added a test - which fails because it turns out this goes deeper. There's a similar issue in list_menu.html with the added wrinkle that it's included both in the view we're already touching and in group_documents.html.

@microamp
Copy link
Collaborator Author

I added a test - which fails because it turns out this goes deeper. There's a similar issue in list_menu.html with the added wrinkle that it's included both in the view we're already touching and in group_documents.html.

Thanks for having a go at it! (It was on my list at the code sprint, but I ran out of time.)

I'll have a look at the files you mentioned when I can.

@rjsparks
Copy link
Member

rjsparks commented Sep 4, 2024

@jennifer-richards @microamp Is this still something to pursue?

@jennifer-richards
Copy link
Member

@jennifer-richards @microamp Is this still something to pursue?

Yes, original bug is still there afaik and I think this was a good approach.

Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

lgtm

In my previous comments I was worried because the email_or_name variable is not set when the list_menu.html is included via group_documents.html in the group_documents() view. On closer review, there are guards in place so the email_or_name is not needed in the group context.

@rjsparks rjsparks merged commit 9d583ab into ietf-tools:main Sep 16, 2024
9 checks passed
@microamp microamp deleted the fix/no-persons-email-in-clist branch September 16, 2024 19:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Personal community list view crashes if email addresses are all inactive
3 participants