Skip to content

MPT-21137 Fetch organization users from ffc-api#22

Merged
ffaraone merged 1 commit into
mainfrom
MPT-21137-adopt-backend-for-admin-portal-organization-user-tab
May 28, 2026
Merged

MPT-21137 Fetch organization users from ffc-api#22
ffaraone merged 1 commit into
mainfrom
MPT-21137-adopt-backend-for-admin-portal-organization-user-tab

Conversation

@bdjilka
Copy link
Copy Markdown
Contributor

@bdjilka bdjilka commented May 27, 2026

No description provided.

Comment thread backend/app/schemas/employees.py Outdated
last_login: datetime.datetime | None = None


class OrganizationEmployeeRead(EmployeeRead):
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.

why we want to introduce this new schema ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

EmployeeRead is used for get/create employee and as roles are never None, those get/create responses had roles as empty list. It looked confusing to me, so I added new schema

Comment thread backend/app/schemas/employees.py
Comment thread backend/app/rql.py Outdated
@bdjilka bdjilka force-pushed the MPT-21137-adopt-backend-for-admin-portal-organization-user-tab branch from 44031ab to c36885e Compare May 27, 2026 18:28
Comment thread backend/app/rql.py Outdated
Comment thread backend/app/rql.py Outdated
@bdjilka bdjilka force-pushed the MPT-21137-adopt-backend-for-admin-portal-organization-user-tab branch from c36885e to c55ca69 Compare May 27, 2026 21:08
@ffaraone ffaraone force-pushed the MPT-21137-adopt-backend-for-admin-portal-organization-user-tab branch from c55ca69 to f4fe5e4 Compare May 28, 2026 08:43
@sonarqubecloud
Copy link
Copy Markdown

@ffaraone ffaraone merged commit 5f60ea8 into main May 28, 2026
6 checks passed
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.

2 participants