Skip to content

Commit

Permalink
use tags from creation event and disambiguate
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Oct 23, 2024
1 parent 5e8d88a commit da79bf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/constraints/ConstraintForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@
}>,
) {
const {
detail: { definitionCode, definitionTags, description, name, public: isPublic },
detail: { definitionCode, definitionTags, description, name, public: isPublic, tags: metadataTags },
} = event;
const newConstraintId = await effects.createConstraint(
name,
isPublic,
tags.map(({ id }) => ({ tag_id: id })),
metadataTags.map(({ id }) => ({ tag_id: id })),
definitionCode ?? '',
definitionTags.map(({ id }) => ({ tag_id: id })),
user,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
}>,
) {
const {
detail: { definitionCode, definitionTags, description, name, public: isPublic },
detail: { definitionCode, definitionTags, description, name, public: isPublic, tags: metadataTags },
} = event;
const newConditionId = await effects.createSchedulingCondition(
name,
isPublic,
tags.map(({ id }) => ({ tag_id: id })),
metadataTags.map(({ id }) => ({ tag_id: id })),
definitionCode ?? '',
definitionTags.map(({ id }) => ({ tag_id: id })),
user,
Expand Down
4 changes: 2 additions & 2 deletions src/components/scheduling/goals/SchedulingGoalForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@
description,
name,
public: isPublic,
tags,
tags: metadataTags,
},
} = event;
const newGoalId = await effects.createSchedulingGoal(
name,
isPublic,
tags.map(({ id }) => ({ tag_id: id })),
metadataTags.map(({ id }) => ({ tag_id: id })),
definitionType === DefinitionType.CODE ? SchedulingType.EDSL : SchedulingType.JAR,
definitionCode,
definitionFile ?? null,
Expand Down

0 comments on commit da79bf8

Please sign in to comment.