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

Use alchemy_display_name for page actor names #3027

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 6, 2024

What is this pull request for?

If you have a user class that does not implement
name (eg. Spree::User or a generic User class) it would return nil for Page actor methods (creator, updater, locker).

We already use alchemy_display_name for the current logged in user displayed in the admin frame.

Using this for the Page actor methods to be consistant and allow custom user classes to present a user by it.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added backport-to-7.0-stable Needs to be backported to 7.0-stable backport-to-7.1-stable Needs to be backported to 7.1-stable backport-to-7.2-stable Needs to be backported to 7.2-stable labels Sep 6, 2024
@tvdeyen tvdeyen requested a review from a team as a code owner September 6, 2024 11:26
If you have a user class that does not implement
name (eg. `Spree::User` or a generic `User` class)
it would return `nil` for Page actor methods (creator,
updater, locker).

We already use `alchemy_display_name` for the current
logged in user displayed in the admin frame.

Using this for the Page actor methods to be consistant
and allow custom user classes to present a user by it.
@tvdeyen tvdeyen force-pushed the use-alchemy_display_name branch from ebbb2fd to 00dd34e Compare September 6, 2024 13:34
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.47%. Comparing base (161ab60) to head (00dd34e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3027   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files         237      237           
  Lines        6404     6404           
=======================================
  Hits         6178     6178           
  Misses        226      226           

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

@tvdeyen tvdeyen merged commit dbed496 into AlchemyCMS:main Sep 6, 2024
39 checks passed
@tvdeyen tvdeyen deleted the use-alchemy_display_name branch September 6, 2024 14:12
@alchemycms-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
7.0-stable
7.1-stable
7.2-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.0-stable Needs to be backported to 7.0-stable backport-to-7.1-stable Needs to be backported to 7.1-stable backport-to-7.2-stable Needs to be backported to 7.2-stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants