Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(users): delete old worker code #1959

Open
wants to merge 1 commit into
base: 01-28-feat_user_migrate_pub_sub
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 0 additions & 185 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 1 addition & 37 deletions Cargo.toml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/api/actor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -55,7 +55,6 @@ token-revoke.workspace = true
upload-complete.workspace = true
upload-get.workspace = true
user.workspace = true
user-identity-get.workspace = true

[dev-dependencies]
rivet-connection.workspace = true
2 changes: 1 addition & 1 deletion packages/api/actor/src/auth.rs
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ impl Auth {
let (user_res, game_res, team_list_res) = tokio::try_join!(
chirp_workflow::compat::op(
&ctx,
::user::ops::get::Input {
user::ops::get::Input {
user_ids: vec![user_ent.user_id],
},
),
1 change: 0 additions & 1 deletion packages/api/auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -46,5 +46,4 @@ rivet-auth.workspace = true
rivet-connection.workspace = true

debug-email-res.workspace = true
user-identity-get.workspace = true

Comment on lines 48 to 49
Copy link

Choose a reason for hiding this comment

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

style: Consider removing the extra blank line at the end of the file for consistency

2 changes: 1 addition & 1 deletion packages/api/auth/src/auth.rs
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ impl Auth {

let user_res = chirp_workflow::compat::op(
&ctx,
::user::ops::get::Input {
user::ops::get::Input {
user_ids: vec![user_ent.user_id],
},
)
2 changes: 0 additions & 2 deletions packages/api/cloud/Cargo.toml
Original file line number Diff line number Diff line change
@@ -118,5 +118,3 @@ rivet-connection.workspace = true

faker-region.workspace = true
faker-team.workspace = true
token-create.workspace = true
user-identity-create.workspace = true
2 changes: 1 addition & 1 deletion packages/api/cloud/src/assert.rs
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ pub async fn user_registered(ctx: &OperationContext<()>, user_id: Uuid) -> Globa
// If the user has at least one identity they are considered registered
let identity = chirp_workflow::compat::op(
&ctx,
::user::ops::identity::get::Input {
user::ops::identity::get::Input {
user_ids: vec![user_id]
},
)
Comment on lines 10 to 15
Copy link

Choose a reason for hiding this comment

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

style: consider using the op! macro here instead of chirp_workflow::compat::op for consistency with the rest of the codebase

4 changes: 2 additions & 2 deletions packages/api/cloud/src/auth.rs
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ impl Auth {

let user_res = chirp_workflow::compat::op(
&ctx,
::user::ops::get::Input {
user::ops::get::Input {
user_ids: vec![user_ent.user_id],
},
)
@@ -279,7 +279,7 @@ impl Auth {
// Fetch teams associated with user
let teams_res = chirp_workflow::compat::op(
&ctx,
::user::ops::team_list::Input {
user::ops::team_list::Input {
user_ids: vec![user_ent.user_id.into()],
},
)
1 change: 0 additions & 1 deletion packages/api/games/Cargo.toml
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ token-create.workspace = true
upload-complete.workspace = true
upload-get.workspace = true
user.workspace = true
user-identity-get.workspace = true
rivet-config.workspace = true
rivet-env.workspace = true

4 changes: 2 additions & 2 deletions packages/api/games/src/auth.rs
Original file line number Diff line number Diff line change
@@ -99,7 +99,7 @@ impl Auth {
let (user_res, game_res, team_list_res) = tokio::try_join!(
chirp_workflow::compat::op(
&ctx,
::user::ops::get::Input {
user::ops::get::Input {
user_ids: vec![user_ent.user_id],
},
),
@@ -108,7 +108,7 @@ impl Auth {
}),
chirp_workflow::compat::op(
&ctx,
::user::ops::team_list::Input {
user::ops::team_list::Input {
user_ids: vec![user_ent.user_id.into()],
},
)
2 changes: 1 addition & 1 deletion packages/api/group/src/assert.rs
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ use crate::auth::Auth;
/// Validates that a given user ID is registered.
pub async fn user_registered(ctx: &Ctx<Auth>, user_id: Uuid) -> GlobalResult<()> {
// If the user has at least one identity they are considered registered
let identity = ctx.op(::user::ops::identity::get::Input {
let identity = ctx.op(user::ops::identity::get::Input {
user_ids: vec![user_id]
})
.await?;
2 changes: 1 addition & 1 deletion packages/api/group/src/auth.rs
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ impl Auth {

let user_res = chirp_workflow::compat::op(
&ctx,
::user::ops::get::Input {
user::ops::get::Input {
user_ids: vec![user_ent.user_id],
},
)
Loading