mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 00:01:49 +00:00
* feat: add deploy restriction rule and fork review requests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update ee-repo-ref.txt for fork review requests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: address PR review comments on fork review requests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: rename fork review requests to deployment requests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update ee-repo-ref.txt for deployment request rename Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: inline deployment request panel into deploy layout Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: place Request deployment button to the left of Deploy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: inline fork triggers into main deploy list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: open real trigger detail drawer for inline fork triggers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: email notifications for merge completion and reply pings Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: update deployment_request + protection_rule tables on workspace id rename Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update ee-repo-ref to 972893c3870e4c4a70a35748abed282d88904805 This commit updates the EE repository reference after PR #528 was merged in windmill-ee-private. Previous ee-repo-ref: 5684d1c17d930b17849c1e5d7577891e64682d45 New ee-repo-ref: 972893c3870e4c4a70a35748abed282d88904805 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
51 lines
1.8 KiB
Rust
51 lines
1.8 KiB
Rust
//! OSS stubs for the fork deployment requests feature. The EE build
|
|
//! overrides these via `deployment_requests_ee.rs` when the `private`
|
|
//! feature is active.
|
|
//!
|
|
//! These helpers are called from fork item-change hooks in EE code (see
|
|
//! `windmill-git-sync/src/git_sync_ee.rs::tally_deployed_object_changes`).
|
|
//! The stub exists so code paths that wire the hook compile on OSS even
|
|
//! though the obsolescence behavior itself is EE-only.
|
|
//!
|
|
//! On OSS the call is a no-op, so anchored-comment obsolescence after an
|
|
//! item change only actually fires when compiled with `--features private`.
|
|
//! The `fork_deployment_requests` integration test simulates the EE effect
|
|
//! via a raw SQL UPDATE to keep the lifecycle test meaningful on CE builds.
|
|
|
|
#[cfg(feature = "private")]
|
|
#[allow(unused)]
|
|
pub use crate::deployment_requests_ee::*;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
use crate::{db::DB, error::Result};
|
|
|
|
/// Mark every anchored comment on the currently open deployment request
|
|
/// for the given fork workspace that pins to `(anchor_kind, anchor_path)`
|
|
/// as obsolete.
|
|
///
|
|
/// OSS stub: no-op. The EE build writes to
|
|
/// `workspace_fork_deployment_request_comment`.
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn mark_anchor_obsolete(
|
|
_db: &DB,
|
|
_fork_workspace_id: &str,
|
|
_anchor_kind: &str,
|
|
_anchor_path: &str,
|
|
) -> Result<()> {
|
|
Ok(())
|
|
}
|
|
|
|
/// Close the currently open deployment request for `(source_workspace_id,
|
|
/// fork_workspace_id)` with `closed_reason = 'merged'` and mark all its
|
|
/// comments obsolete. Called from the frontend deploy success handler.
|
|
///
|
|
/// OSS stub: no-op.
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn close_open_request_on_merge(
|
|
_db: &DB,
|
|
_source_workspace_id: &str,
|
|
_fork_workspace_id: &str,
|
|
) -> Result<()> {
|
|
Ok(())
|
|
}
|