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: relase ReviewUser name to accept None, add docs #232

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

lwasser
Copy link
Member

@lwasser lwasser commented Nov 21, 2024

This also loosely addresses #227
In this case Name was being added to the build only because Name was in the actual review issue. We really can't account for every where thing people add to a complex issue template so i think just fixing the review is best in this case.

But also, I relaxed our ReviewUser model to allow for a None for Name as sometimes that might be missing and we do want to look it up in our contribs file if that is the case.

@@ -228,7 +228,7 @@ def clean_date(cls, a_date: Optional[str]) -> str:
class ReviewUser(BaseModel):
"""Minimal model of a github user, used in several places in review parsing"""

name: str
name: str | None
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only real change. it's ok for this to be None.

@lwasser lwasser merged commit fb5e6f1 into pyOpenSci:main Nov 21, 2024
2 checks passed
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.99%. Comparing base (44ebf9f) to head (705f6c6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #232   +/-   ##
=======================================
  Coverage   73.99%   73.99%           
=======================================
  Files          10       10           
  Lines         669      669           
  Branches       82       82           
=======================================
  Hits          495      495           
  Misses        166      166           
  Partials        8        8           

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


🚨 Try these New Features:

@lwasser lwasser deleted the fix-names2 branch November 21, 2024 20: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.

1 participant