Skip to content

Commit b3aa496

Browse files
committed
refactor(BA-5650-C): rename SessionData user_uuid to owner_id
Data-layer rename of SessionData / SessionMetadata user_uuid to owner_id, plus the matching SessionRow adapters (to_dataclass/from_dataclass/to_session_info/from_session_info). ComputeSessionNode.from_dataclass becomes async and resolves main_access_key from the owner via UserRepository when owner is not eagerly loaded. models/resource_usage.py sources user_id from SessionRow.user_uuid through the session relationship. SessionRow._build_session_fetch_query / _match_sessions_by_* also rename the filter parameter to owner_id; repository and db_source callers are updated in the next slice so intermediate builds may fail in isolation.
1 parent 7bac45f commit b3aa496

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

changes/BA-5650-C.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename `SessionData.user_uuid` / `SessionMetadata.user_uuid` to `owner_id` and drop the redundant `access_key` snapshot fields. `SessionRow.to_dataclass` / `from_dataclass`, `ComputeSessionNode.from_dataclass`, and `resource_usage` queries now resolve the owner's `main_access_key` from the eager-loaded `user` relationship.

0 commit comments

Comments
 (0)