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

[1.x] Update the post author class to prepare for the v2 overhaul #1794

Merged
merged 5 commits into from
Jul 6, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Jul 6, 2024

Abstract

Tie in with #1782 to smooth over the upgrade to v2

Changes

Update post author name to fall back to username at construct time

Cherry picks commit 0dfb841 from #1782

Deprecate the PostAuthor::getName() method

Cherry picks commit 2f54b9f from #1782

Remove nullable modifier from author name as it is now never null

Since the author name is now always set at construct time, we can remove the nullable modifier from the property.

Copy link

codecov bot commented Jul 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b65f5c3) to head (d74d84a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #1794   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1764      1764           
===========================================
  Files            182       182           
  Lines           4711      4711           
===========================================
  Hits            4711      4711           

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

@caendesilva caendesilva marked this pull request as ready for review July 6, 2024 18:41
@caendesilva caendesilva merged commit cc57e00 into master Jul 6, 2024
24 checks passed
@caendesilva caendesilva deleted the prepare-post-author-changes branch July 6, 2024 18:43
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