Skip to content

Move some types to the warp_server_client crate.#11113

Merged
vorporeal merged 3 commits into
masterfrom
david/move-some-types-to-warp_server_client-crate
May 21, 2026
Merged

Move some types to the warp_server_client crate.#11113
vorporeal merged 3 commits into
masterfrom
david/move-some-types-to-warp_server_client-crate

Conversation

@vorporeal
Copy link
Copy Markdown
Contributor

@vorporeal vorporeal commented May 16, 2026

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:

  • Cloud object identity and format types such as ObjectType, ObjectIdType, GenericStringObjectFormat, JsonObjectType, and generic string uniqueness metadata.
  • Sync and server ID support such as ClientId, SyncId, ObjectUid, and sqlite hash helpers.
  • Drive object addressing types such as CloudObjectTypeAndId and open-object args/settings.
  • Portable create/update payload and result types under warp_server_client::cloud_object.

Testing

Validated on the stack tip after Phase 3:

  • cargo fmt --manifest-path /Users/david/src/warp/Cargo.toml --all
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp_server_client
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp --tests
  • git --no-pager diff --check

Co-Authored-By: Oz oz-agent@warp.dev

@vorporeal vorporeal force-pushed the david/move-some-types-to-warp_server_client-crate branch from 2134444 to a816820 Compare May 18, 2026 01:30
@vorporeal vorporeal force-pushed the david/delete-unused-new_from_server_update-function branch from 41b46d5 to 8d2525a Compare May 18, 2026 01:30
@vorporeal vorporeal force-pushed the david/delete-unused-new_from_server_update-function branch from 8d2525a to f858ad7 Compare May 18, 2026 14:52
@vorporeal vorporeal force-pushed the david/move-some-types-to-warp_server_client-crate branch from a816820 to dfdd319 Compare May 18, 2026 14:53
@vorporeal vorporeal force-pushed the david/delete-unused-new_from_server_update-function branch from f858ad7 to eded2de Compare May 19, 2026 18:43
@vorporeal vorporeal force-pushed the david/move-some-types-to-warp_server_client-crate branch from dfdd319 to 177cd5e Compare May 19, 2026 18:43
@vorporeal vorporeal marked this pull request as ready for review May 20, 2026 15:23
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 20, 2026

@vorporeal

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 /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

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

@vorporeal vorporeal requested a review from bnavetta May 20, 2026 15:29
Base automatically changed from david/delete-unused-new_from_server_update-function to master May 20, 2026 15:39
@vorporeal vorporeal force-pushed the david/move-some-types-to-warp_server_client-crate branch from 177cd5e to 44e29ef Compare May 20, 2026 15:56
}
}

fn copy_updated_object_input(input: &UpdatedObjectInput) -> UpdatedObjectInput {
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.

Guessing this was in the original code, but we can't derive Clone on UpdatedObjectInput?

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.

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.)

@vorporeal vorporeal merged commit 81c9389 into master May 21, 2026
42 of 44 checks passed
@vorporeal vorporeal deleted the david/move-some-types-to-warp_server_client-crate branch May 21, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants