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: user full name on recipe comments #4295

Draft
wants to merge 3 commits into
base: mealie-next
Choose a base branch
from

Conversation

OozyGrub
Copy link

@OozyGrub OozyGrub commented Oct 1, 2024

What type of PR is this

  • bug

What this PR does / why we need it:

Use a full name in recipe comment instead of username.
image

Which issue(s) this PR fixes:

#4187

Special notes for your reviewer:

Please tag this PR as hacktoberfest, thanks

Testing

Test locally before & after.

Before

SCR-20241001-kien

After

SCR-20241001-kijb

@github-actions github-actions bot added the bugfix label Oct 1, 2024
@OozyGrub OozyGrub force-pushed the mealie-next branch 2 times, most recently from 0b0c367 to 3a6ca0f Compare October 1, 2024 04:29
@@ -54,6 +54,7 @@ def test_create_comment(api_client: TestClient, unique_recipe: Recipe, unique_us
assert response_data[0]["recipeId"] == str(unique_recipe.id)
assert response_data[0]["text"] == create_data["text"]
assert response_data[0]["userId"] == str(unique_user.user_id)
assert len(response_data[0]["user"]["fullName"]) > 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would make sense to add fullName to our TestUser so we can compare the result directly. Is that something you could do?

@Kuchenpirat Kuchenpirat marked this pull request as draft October 28, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants