Skip to content

Commit

Permalink
fix(git-sync): propagate update of folders with git sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 16, 2024
1 parent 79100f8 commit 6abb346
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/windmill-api/src/folders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,10 @@ pub fn require_is_owner(authed: &ApiAuthed, name: &str) -> Result<()> {

async fn update_folder(
authed: ApiAuthed,
Extension(db): Extension<DB>,
Extension(user_db): Extension<UserDB>,
Extension(webhook): Extension<WebhookShared>,
Extension(rsmq): Extension<Option<rsmq_async::MultiplexedRsmq>>,
Path((w_id, name)): Path<(String, String)>,
Json(mut ng): Json<UpdateFolder>,
) -> Result<String> {
Expand Down Expand Up @@ -367,6 +369,18 @@ async fn update_folder(
}
}

handle_deployment_metadata(
&authed.email,
&authed.username,
&db,
&w_id,
DeployedObject::Folder { path: format!("f/{}", name) },
Some(format!("Folder '{}' updated", name)),
rsmq,
true,
)
.await?;

audit_log(
&mut *tx,
&authed,
Expand Down

0 comments on commit 6abb346

Please sign in to comment.