Skip to content

fix issue #85 - #86

Open
HenrikEngen wants to merge 1 commit into
masterfrom
issue/fix85
Open

fix issue #85#86
HenrikEngen wants to merge 1 commit into
masterfrom
issue/fix85

Conversation

@HenrikEngen

@HenrikEngen HenrikEngen commented Aug 22, 2026

Copy link
Copy Markdown
Member

About this pull request

Fix #85

Dependencies

None

Prerequisites

return {
'uuid': str(self.uuid),
'user_uuid': self.user_uuid,
'name': self.user.firstname + " " + self.user.lastname,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is generally bad practice. name is not a field on store session, and so it does not belong there. Return a simplified version of the user object instead, see how the mappers are used.

I suggest you take inspiration from https://github.com/phoenixlan/phoenixapi-v1/blob/master/phoenixRest/mappers/user.py#L32 but make a new map_user_public without position_mappings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send user firstname and lastname in store sessions

2 participants