Move some types to the warp_server_client crate.#11113
Conversation
2134444 to
a816820
Compare
41b46d5 to
8d2525a
Compare
8d2525a to
f858ad7
Compare
a816820 to
dfdd319
Compare
f858ad7 to
eded2de
Compare
dfdd319 to
177cd5e
Compare
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR moves shared cloud object, drive addressing, ID, and create/update request/result types into warp_server_client, with app-level re-exports preserving existing import paths where practical. It also replaces conversion impls that would violate orphan-rule constraints after the move with local helper functions.
Concerns
- No blocking correctness, security, or spec-alignment concerns found in the annotated diff.
Verdict
Found: 0 critical, 0 important, 0 suggestions
Approve
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
Co-Authored-By: Oz <oz-agent@warp.dev>
177cd5e to
44e29ef
Compare
| } | ||
| } | ||
|
|
||
| fn copy_updated_object_input(input: &UpdatedObjectInput) -> UpdatedObjectInput { |
There was a problem hiding this comment.
Guessing this was in the original code, but we can't derive Clone on UpdatedObjectInput?
There was a problem hiding this comment.
yeah, looks like this was in the original code. we probably can; i can shove another PR onto this stack to make that change. (i think this code moves again in a future PR, so would rather not make the change here and need to deal with a conflict, if any.)

Description
Moves the low-level cloud object, drive, ID, and server request/response types that are shared with server-client code into
warp_server_client.This creates a stable boundary for later extracting the generic server/cloud object containers without pulling app-local
CloudModel, UI, or runtime behavior into the client crate. Existing app import paths continue to work through re-exports where practical.Key pieces moved or introduced here:
ObjectType,ObjectIdType,GenericStringObjectFormat,JsonObjectType, and generic string uniqueness metadata.ClientId,SyncId,ObjectUid, and sqlite hash helpers.CloudObjectTypeAndIdand open-object args/settings.warp_server_client::cloud_object.Testing
Validated on the stack tip after Phase 3:
cargo fmt --manifest-path /Users/david/src/warp/Cargo.toml --allcargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp_server_clientcargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warpcargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp --testsgit --no-pager diff --checkCo-Authored-By: Oz oz-agent@warp.dev