[PLT-4135] Expose User.last_login_at in the Python SDK - #2070
Merged
Conversation
Map GraphQL lastLoginAt onto the User model so customers can read last session time via the SDK.
pawelkozik-labelbox
temporarily deployed
to
Test-PyPI
July 28, 2026 09:45 — with
GitHub Actions
Inactive
Changelog updates belong in the release Prep PR per the Python SDK release runbook.
pawelkozik-labelbox
temporarily deployed
to
Test-PyPI
July 28, 2026 09:50 — with
GitHub Actions
Inactive
DbObject requires every declared field in the response payload, so the issue fixtures need the new field to hydrate a User.
pawelkozik-labelbox
temporarily deployed
to
Test-PyPI
July 28, 2026 10:00 — with
GitHub Actions
Inactive
pawelkozik-labelbox
marked this pull request as ready for review
July 28, 2026 10:15
pawelkozik-labelbox
requested review from
carl-l-chua,
gmadaan-hue,
gramos-lb,
manuaero,
pablito25sp,
snmodi21 and
vikram-kharvi
July 28, 2026 10:15
mnoszczak
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://labelbox.atlassian.net/browse/PLT-4135
Context
User.lastLoginAt(PLT-3309); the Python SDK did not map or request that fielduser.created_at/user.updated_atbut no last-login attribute onUserIn scope
user.last_login_aton SDKUserobjects returned by the usual user APIs (get_user,get_users, org users, etc.)Noneuntil the user has logged in after last-login tracking was enabledUserobjects still hydrate correctlyOut of scope
Note
Low Risk
Additive SDK field mapping and fragment updates with no auth or enforcement logic changes.
Overview
Adds
user.last_login_aton SDKUserobjects so customers can read last session time (login or workspace switch) for inactivity workflows. The value is a UTC datetime when the API provides it, orNoneuntil the user has logged in after last-login tracking was enabled.Issue/comment GraphQL user fragments now request
lastLoginAtso nestedUserinstances on issues and comments hydrate the new field consistently. Integration and unit tests cover the attribute and mock payloads.Reviewed by Cursor Bugbot for commit 9237b4f. Bugbot is set up for automated code reviews on this repo. Configure here.