diff --git a/src/routes/v2/projects.rs b/src/routes/v2/projects.rs index a9774a6a..e67972dd 100644 --- a/src/routes/v2/projects.rs +++ b/src/routes/v2/projects.rs @@ -388,7 +388,6 @@ pub async fn project_edit( redis: web::Data, session_queue: web::Data, ) -> Result { - println!("project_edit"); let user = get_user_from_headers( &req, &**pool, @@ -398,7 +397,6 @@ pub async fn project_edit( ) .await? .1; - println!("project_edit user: {:?}", serde_json::to_string(&user)); new_project .validate() @@ -407,7 +405,6 @@ pub async fn project_edit( let string = info.into_inner().0; let result = db_models::Project::get(&string, &**pool, &redis).await?; - println!("project_edit result: {:?}", serde_json::to_string(&result)); if let Some(project_item) = result { let id = project_item.inner.id; @@ -419,20 +416,12 @@ pub async fn project_edit( ) .await?; - println!("Team member: {:?}", serde_json::to_string(&team_member)); - println!( - "Organization team member: {:?}", - serde_json::to_string(&organization_team_member) - ); - let permissions = ProjectPermissions::get_permissions_by_role( &user.role, &team_member, &organization_team_member, ); - println!("Permissions: {:?}", serde_json::to_string(&permissions)); - if let Some(perms) = permissions { let mut transaction = pool.begin().await?; diff --git a/tests/common/dummy_data.rs b/tests/common/dummy_data.rs index 2a409ffa..d83973dc 100644 --- a/tests/common/dummy_data.rs +++ b/tests/common/dummy_data.rs @@ -15,6 +15,8 @@ use super::{ request_data::get_public_project_creation_data, }; +pub const DUMMY_DATA_UPDATE: i64 = 1; + #[allow(dead_code)] pub const DUMMY_CATEGORIES: &[&str] = &[ "combat", @@ -86,6 +88,12 @@ pub async fn add_dummy_data(test_env: &TestEnvironment) -> DummyData { let zeta_organization = add_organization_zeta(test_env).await; + sqlx::query("INSERT INTO dummy_data (version) VALUES ($1)") + .bind(DUMMY_DATA_UPDATE) + .execute(pool) + .await + .unwrap(); + DummyData { alpha_team_id: alpha_project.team.to_string(), beta_team_id: beta_project.team.to_string(),