Skip to content

Commit

Permalink
feat: add workflow triggers (#439)
Browse files Browse the repository at this point in the history
* feat: add workflow triggers

* refactor: change variable name so it's the same in both modules

* fix: external_id naming

* chore: rename power_ops_version to power_ops_data_model_version

* chore: rename toolkit file

* chore: poetry update

* chore: bump toolkit for files

* fix: typo

* revert: model file
  • Loading branch information
nodegard authored Oct 25, 2024
1 parent a2a5934 commit 29998c1
Show file tree
Hide file tree
Showing 91 changed files with 701 additions and 586 deletions.
115 changes: 58 additions & 57 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion toolkit/cdf.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[cdf]
default_env = "dev"

[feature_flags]
require-kind = true

[modules]
# This is the version of the modules. It should not be changed manually.
# It will be updated by the 'cdf module upgrade' command.
version = "0.3.4"
version = "0.3.5"


[plugins]
Expand Down
2 changes: 1 addition & 1 deletion toolkit/config.heco-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
2 changes: 1 addition & 1 deletion toolkit/config.heco-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
2 changes: 1 addition & 1 deletion toolkit/config.lyse-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
2 changes: 1 addition & 1 deletion toolkit/config.lyse-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
2 changes: 1 addition & 1 deletion toolkit/config.oe-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
2 changes: 1 addition & 1 deletion toolkit/config.oe-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ variables:
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_version: "1"
11 changes: 10 additions & 1 deletion toolkit/config.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ environment:
type: staging
selected:
- modules/power_model
# - modules/power_ops_template

variables:
modules:
# variables required for BOTH power_model and power_ops_template
power_ops_type_space: "power_ops_types"
power_ops_instance_space: "power_ops_instances"
power_ops_models_space: "power_ops_core"
version: "1"
power_ops_data_model_version: "1"
# variables required for ONLY power_ops_template
wf_day_ahead_market: "DAY_AHEAD"
wf_day_ahead_bid_process_xid: "DayAheadBidProcess"
wf_day_ahead_bid_process_version: "latest"
wf_day_ahead_bid_process_cron: "30 9 * * *" # translates to 9:30 UTC / 11:30 CEST
wf_trigger_client_id: "d985b4fe-275e-4df3-9e49-b6b18a77778a"
wf_trigger_client_secret: ${WF_TRIGGER_SECRET}
90 changes: 45 additions & 45 deletions toolkit/modules/power_model/data_models/all_DayAhead.datamodel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,180 +7,180 @@ views:
- externalId: BidConfigurationDayAhead
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: MarketConfiguration
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PriceArea
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PriceAreaDayAhead
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PartialBidConfiguration
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopBasedPartialBidConfiguration
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: WaterValueBasedPartialBidConfiguration
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopOutputTimeSeriesDefinition
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopScenario
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopScenarioSet
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopAttributeMapping
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopModel
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: Generator
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: TurbineEfficiencyCurve
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: GeneratorEfficiencyCurve
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopCommands
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: Plant
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PlantWaterValueBased
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: TaskDispatcherInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: TaskDispatcherOutput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopPreprocessorInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopPreprocessorOutput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopTriggerInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopTriggerOutput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PartialBidMatrixCalculationInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: MultiScenarioPartialBidMatrixCalculationInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PartialBidMatrixCalculationOutput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: BidMatrix
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopResult
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: Alert
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: PriceProduction
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopTimeSeries
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- space: "{{power_ops_models_space}}"
externalId: FunctionInput
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- space: "{{power_ops_models_space}}"
externalId: FunctionOutput
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- externalId: WaterValueBasedPartialBidMatrixCalculationInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: TotalBidMatrixCalculationInput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: TotalBidMatrixCalculationOutput
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: BidDocumentDayAhead
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- externalId: ShopCase
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
- space: "{{power_ops_models_space}}"
externalId: BidDocument
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- space: "{{power_ops_models_space}}"
externalId: PowerAsset
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- space: "{{power_ops_models_space}}"
externalId: ShopFile
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- space: "{{power_ops_models_space}}"
externalId: BidMatrixInformation
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- space: "{{power_ops_models_space}}"
externalId: PartialBidMatrixInformation
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
type: view
- externalId: DateSpecification
space: "{{power_ops_models_space}}"
type: view
version: "{{version}}"
version: "{{power_ops_data_model_version}}"
Loading

0 comments on commit 29998c1

Please sign in to comment.