Skip to content

Commit

Permalink
feat(command): add unimplemented remove update binding constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL committed Dec 18, 2024
1 parent 0319e93 commit 8501514
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from antarest.study.storage.variantstudy.model.command.remove_user_resource import RemoveUserResource
from antarest.study.storage.variantstudy.model.command.replace_matrix import ReplaceMatrix
from antarest.study.storage.variantstudy.model.command.update_binding_constraint import UpdateBindingConstraint
from antarest.study.storage.variantstudy.model.command.update_binding_constraints import UpdateBindingConstraints
from antarest.study.storage.variantstudy.model.command.update_comments import UpdateComments
from antarest.study.storage.variantstudy.model.command.update_config import UpdateConfig
from antarest.study.storage.variantstudy.model.command.update_district import UpdateDistrict
Expand Down Expand Up @@ -155,6 +156,14 @@ def _revert_update_binding_constraint(

return base_command.get_command_extractor().extract_binding_constraint(base, base_command.id)

@staticmethod
def _revert_update_binding_constraints(
base_command: UpdateBindingConstraints,
history: t.List["ICommand"],
base: FileStudy,
) -> t.List[ICommand]:
raise NotImplementedError("The revert function for UpdateBindingConstraints is not available")

@staticmethod
def _revert_remove_binding_constraint(
base_command: RemoveBindingConstraint,
Expand Down

0 comments on commit 8501514

Please sign in to comment.