Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
6 changes: 1 addition & 5 deletions lib/dal/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ impl Action {
let change_set = ctx.change_set()?;
let id = change_set.generate_ulid()?;
let node_weight = NodeWeight::new_content(change_set, id, ContentAddress::Action(hash))?;
let action_prototype = ActionPrototype::get_by_id(ctx, prototype_id).await?;

let workspace_snapshot = ctx.workspace_snapshot()?;

Expand All @@ -142,10 +141,7 @@ impl Action {
workspace_snapshot
.add_edge(
id,
EdgeWeight::new(
change_set,
EdgeWeightKind::ActionPrototype(action_prototype.kind),
)?,
EdgeWeight::new(change_set, EdgeWeightKind::ActionPrototype)?,
prototype_id,
)
.await?;
Expand Down
2 changes: 1 addition & 1 deletion lib/dal/src/action/prototype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl ActionPrototype {
workspace_snapshot
.add_edge(
schema_variant_id,
EdgeWeight::new(change_set, EdgeWeightKind::ActionPrototype(kind))?,
EdgeWeight::new(change_set, EdgeWeightKind::ActionPrototype)?,
id,
)
.await?;
Expand Down
3 changes: 1 addition & 2 deletions lib/dal/src/workspace_snapshot/edge_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use thiserror::Error;

use crate::change_set::ChangeSet;
use crate::workspace_snapshot::vector_clock::{VectorClock, VectorClockError, VectorClockId};
use crate::ActionKind;

#[derive(Debug, Error)]
pub enum EdgeWeightError {
Expand All @@ -23,7 +22,7 @@ pub type EdgeWeightResult<T> = Result<T, EdgeWeightError>;
pub enum EdgeWeightKind {
Action,
/// A function used by a [`SchemaVariant`] to perform an action that affects its resource
ActionPrototype(ActionKind),
ActionPrototype,
/// A function defined for a secret defining [`SchemaVariant`] to be executed before funcs on
/// components that have a secret of that kind
AuthenticationPrototype,
Expand Down
6 changes: 1 addition & 5 deletions lib/dal/src/workspace_snapshot/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1696,11 +1696,6 @@ impl WorkspaceSnapshotGraph {
// This is the key for an entry in a map.
EdgeWeightKind::Contain(Some(key)) => hasher.update(key.as_bytes()),

// This is the kind of the action.
EdgeWeightKind::ActionPrototype(kind) => {
hasher.update(kind.to_string().as_bytes())
}

EdgeWeightKind::Use { is_default } => {
hasher.update(is_default.to_string().as_bytes())
}
Expand All @@ -1713,6 +1708,7 @@ impl WorkspaceSnapshotGraph {
// in the edge itself.
EdgeWeightKind::AuthenticationPrototype
| EdgeWeightKind::Action
| EdgeWeightKind::ActionPrototype
| EdgeWeightKind::Contain(None)
| EdgeWeightKind::FrameContains
| EdgeWeightKind::PrototypeArgument
Expand Down