Skip to content

Commit 46f66d8

Browse files
vaughanknightdanuwdanuwpichuangtkuramoto33
authored
1.5 WattTime v3 Updates (#547)
* doc initial set up using classic template and typescript - doc is currently copied into casdk-docs/docs to get live updates (copied and not moved so changes in main can be easily identified when rebasing once it all works) * favicon * reoganising first draft * doc link fixes * github pages pipelines to accomodate customisations * Update WattTime registration link Signed-off-by: Phil Huang <[email protected]> * Create adopters.md Signed-off-by: tkuramoto33 <[email protected]> * Initial codespace branch and associated docs * Add Vestas. Signed-off-by: tkuramoto33 <[email protected]> * Remove a hyphen for consistent appearance Signed-off-by: tkuramoto33 <[email protected]> * Create enablement.md table of content Signed-off-by: Rintaro Ikeda <[email protected]> * link fix * workflow update * updated github action * ensuring there is a yarn lock file * removed working directory from setup node action * trying to have the working directory at a higher level * trying cache dependency path property * dont break the build on broken links for now * updated user * removed user * updated user to deploy pages * draft of enablement.md Signed-off-by: Rintaro Ikeda <[email protected]> * Update containerization.md Small typo ("arbon" => "Carbon") Signed-off-by: Richard Jackson <[email protected]> * github token permissions updated to ensure contents write * workflows fixes * Ensuring username was not needed * Support location source setting in Helm chart Signed-off-by: Yasumasa Suenaga <[email protected]> * Update carbon-aware-cli.md Fixes bugs with Linux scripts Signed-off-by: JasonLuuk <[email protected]> * Update overview.md Change the net url inside the prerequisites, I think the sdk requires version 6.0 net instead of the latest 8.0, which can mislead users. Signed-off-by: JasonLuuk <[email protected]> * Update quickstart.md Fix wrong links Signed-off-by: JasonLuuk <[email protected]> * verify azure function workflow not to trigger on casdk-docs changes only * Link fixes (may be related to latest version now erroring) * test doc file * restoring username and email and removing the test file * updated vs code extensions * DCO Remediation Commit for Dan Benitah <[email protected]> I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 44578f4 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 3ae9a00 Signed-off-by: Dan Benitah <[email protected]> * Update the description Signed-off-by: tkuramoto33 <[email protected]> * Update the description to mention pull requests Signed-off-by: tkuramoto33 <[email protected]> * Update README.md * More updates More updates * Added plcaeholder images Added plcaeholder images * Create tests.md test coverage #413 Signed-off-by: Dan Benitah <[email protected]> * Updated images Updates all images and compressed some images, cleaned up naming for the avif file. * More updates New images, and some updates to the copy after stepping away from it for a bit. * Updates with theory of change details Updates with theory of change details * Update README.md * More updates More updates * Added plcaeholder images Added plcaeholder images * Updated images Updates all images and compressed some images, cleaned up naming for the avif file. * More updates New images, and some updates to the copy after stepping away from it for a bit. * Updates with theory of change details Updates with theory of change details * Minor updates, included adopters page link Minor updates, included adopters page link * Further updates to clean up merge duplication * Signed-off-by: Vaughan Knight <[email protected]> DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: da70ec4 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6be74ff I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: fe5cef9 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b4a7973 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: d0a954a I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 996d084 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 648a1ce I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 581267c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 3c90f55 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6c1514e I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0592710 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: c59057c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0cec58f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 028a179 Signed-off-by: Vaughan Knight <[email protected]> * blog posts - unpublished / placeholder posts currently sit in blog_preview sub folder * annoucementBar #416 to include disclaimer as well as CarbonHack link * CarbonHack24 Update to README.md Signed-off-by: Dan Benitah <[email protected]> * bold disclaimer / banner message * ensuring samples get deployed as part of the docs too * working directory correction for moving samples in docs deployment workflow * normalisation of the workflow name to others * latest docusaurus updates to check the latest workflow * docusaurus broken links build warning + move all samples folder * Update CONTRIBUTING.md Signed-off-by: Sophie Trinder <[email protected]> * Update CONTRIBUTING.md Signed-off-by: Sophie Trinder <[email protected]> * Update CHANGELOG.md Signed-off-by: Dan Benitah <[email protected]> * Update CHANGELOG.md with first draft release notes for 1.2 Signed-off-by: Dan Benitah <[email protected]> * Update CHANGELOG.md Signed-off-by: Dan Benitah <[email protected]> * Update CHANGELOG.md Updating release date Signed-off-by: Dan Benitah <[email protected]> * Update WattTime registration link Signed-off-by: Phil Huang <[email protected]> * Update containerization.md Small typo ("arbon" => "Carbon") Signed-off-by: Richard Jackson <[email protected]> * Create adopters.md Signed-off-by: tkuramoto33 <[email protected]> * Add Vestas. Signed-off-by: tkuramoto33 <[email protected]> * Remove a hyphen for consistent appearance Signed-off-by: tkuramoto33 <[email protected]> * Update the description Signed-off-by: tkuramoto33 <[email protected]> * Update the description to mention pull requests Signed-off-by: tkuramoto33 <[email protected]> * Create enablement.md table of content Signed-off-by: Rintaro Ikeda <[email protected]> * draft of enablement.md Signed-off-by: Rintaro Ikeda <[email protected]> * Update carbon-aware-cli.md Fixes bugs with Linux scripts Signed-off-by: JasonLuuk <[email protected]> * Initial codespace branch and associated docs * updated vs code extensions * DCO Remediation Commit for Dan Benitah <[email protected]> I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 44578f4 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 3ae9a00 Signed-off-by: Dan Benitah <[email protected]> * Update README.md * More updates More updates * Added plcaeholder images Added plcaeholder images * Updated images Updates all images and compressed some images, cleaned up naming for the avif file. * More updates New images, and some updates to the copy after stepping away from it for a bit. * Updates with theory of change details Updates with theory of change details * Minor updates, included adopters page link Minor updates, included adopters page link * Update README.md * More updates More updates * Added plcaeholder images Added plcaeholder images * Updated images Updates all images and compressed some images, cleaned up naming for the avif file. * More updates New images, and some updates to the copy after stepping away from it for a bit. * Updates with theory of change details Updates with theory of change details * Signed-off-by: Vaughan Knight <[email protected]> DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: da70ec4 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6be74ff I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: fe5cef9 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b4a7973 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: d0a954a I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 996d084 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 648a1ce I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 581267c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 3c90f55 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6c1514e I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0592710 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: c59057c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0cec58f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 028a179 Signed-off-by: Vaughan Knight <[email protected]> * Update tests.md our current coverage is 74.6% so adjusting until we can improve Signed-off-by: Dan Benitah <[email protected]> * Update README.md linking to the new banner Signed-off-by: Dan Benitah <[email protected]> * adding the banner image Signed-off-by: Dan Benitah <[email protected]> * Create SECURITY.md * merge and bug fixes * Qucikstart fix and overview link adjustment following move * Up Helm chart version to 1.1.0 Signed-off-by: Yasumasa Suenaga <[email protected]> * Signed-off-by: Vaughan Knight <[email protected]> DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: da70ec4 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6be74ff I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: fe5cef9 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b4a7973 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: d0a954a I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 996d084 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 648a1ce I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 581267c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 3c90f55 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6c1514e I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0592710 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: c59057c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0cec58f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 028a179 Signed-off-by: Vaughan Knight <[email protected]> * CarbonHack24 Update to README.md Signed-off-by: Dan Benitah <[email protected]> * Create tests.md test coverage #413 Signed-off-by: Dan Benitah <[email protected]> * Update tests.md our current coverage is 74.6% so adjusting until we can improve Signed-off-by: Dan Benitah <[email protected]> * Signed-off-by: Vaughan Knight <[email protected]> DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: da70ec4 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6be74ff I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: fe5cef9 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b4a7973 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: d0a954a I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 996d084 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 648a1ce I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 581267c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 3c90f55 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 6c1514e I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0592710 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: c59057c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0cec58f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 028a179 Signed-off-by: Vaughan Knight <[email protected]> * blog updates * DCO Remediation Commit for Dan Benitah <[email protected]> I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 356ce09 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 2c342a8 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 04be596 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: c437b5b I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 46958d9 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 21a0e16 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 8bbe72e I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 62e2a95 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 5183d73 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 93267d6 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: ee8841c I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 2d7b4dd I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 68bbb2f I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 735a515 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: a31b391 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: b7483b6 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 4cece7b I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 83f3073 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 4799d7a I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: d2d823d I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: c3d832c I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: ec96b52 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 9567c45 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 4527514 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: ff729b0 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 1bdd2ad I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 012ca25 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: c7d4563 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: a51782f I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: cc15035 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 3c62bd4 I, Dan Benitah <[email protected]>, hereby add my Signed-off-by to this commit: 590f262 Signed-off-by: Dan Benitah <[email protected]> DCO Remediation Commit for danuw <[email protected]> I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: fbc602c I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: ac1432f I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: 8166cf2 I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: 48f117e Signed-off-by: danuw <[email protected]> * DCO Remediation Commit for danuw <[email protected]> I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: fbc602c I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: ac1432f I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: 8166cf2 I, danuw <[email protected]>, hereby add my Signed-off-by to this commit: 48f117e Signed-off-by: danuw <[email protected]> Signed-off-by: Dan Benitah <[email protected]> * Update baseURL docusaurus config Signed-off-by: Osama Jandali <[email protected]> * Update docusaurus.config.js Signed-off-by: Osama Jandali <[email protected]> * Revert changes Signed-off-by: Osama Jandali <[email protected]> * Update domain from docusaurus Signed-off-by: Osama Jandali <[email protected]> * Update docusaurus.config.js Signed-off-by: Osama Jandali <[email protected]> * Create CNAME file Signed-off-by: Osama Jandali <[email protected]> * clean up for title * Option to show the samples in the local docs using `nm run start-with-samples` . Will need deleting manually for now * seo for the doc site * docs fixes * layout update for blogs * Update SECURITY.md Updated with @Willmish recommendations for the document which were lost in a comment 👍 * DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 2dc06f8 Signed-off-by: Vaughan Knight <[email protected]> * Ensure pictures on the blog are correctly sized * updated links to videos * Update README.md * Change "Withing" to "Within" I'm genuinely unsure on what word this should be, possible "Using", but I'm sure it's not "Withing". Signed-off-by: Richard Jackson <[email protected]> * Update README.md Two other typos - programatically -> programmatically - soruces -> sources Signed-off-by: Richard Jackson <[email protected]> * first draft of release 1.3 changelog * Update README.md with updated link to overview Signed-off-by: Dan Benitah <[email protected]> * Fix overview URL in README Signed-off-by: Szymon Duchniewicz <[email protected]> * Update README.md Update FAQ link for Carbon Hack Signed-off-by: Russell Trow <[email protected]> * Updates to the contribution documentation Updates to the contribution documentation * DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: f267eba Signed-off-by: Vaughan Knight <[email protected]> * Readme as project overview in docs, disclaimer update for graduated project, and docs deploying pipeline updates * DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: bd7ad15 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 693beed I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 1d78756 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: a7bc0fc I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 571e217 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: a07870f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0314c47 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 3af6f73 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 932a665 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 9f09493 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 02ea4d6 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 183a676 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 0481081 Signed-off-by: Vaughan Knight <[email protected]> * Migrate to .NET 8 #404 #420 #421 #422 Co-authored-by: Takuya Iwatsuka <[email protected]> Signed-off-by: Yasumasa Suenaga <[email protected]> * fix typos Signed-off-by: omahs <[email protected]> * fix typo Signed-off-by: omahs <[email protected]> * fix typo Signed-off-by: omahs <[email protected]> * fix typos Signed-off-by: omahs <[email protected]> * fix typos Signed-off-by: omahs <[email protected]> * fix typos Signed-off-by: omahs <[email protected]> * Update agenda-template.md Signed-off-by: Sophie Trinder <[email protected]> * Resolve NU1605 relating to System.IO.FileSystem.Primitives https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1605#example-3 Signed-off-by: Yasumasa Suenaga <[email protected]> * Use RID rather than QEMU to build WebAPI container image https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ Signed-off-by: Yasumasa Suenaga <[email protected]> * Separate OpenAPI document generation from build-env stage Signed-off-by: Yasumasa Suenaga <[email protected]> * Create case-study-template.md Creating the case study template. Signed-off-by: Vaughan Knight <[email protected]> * Update case-study-template.md Minor updates. Signed-off-by: Vaughan Knight <[email protected]> * Up Helm chart version to 1.2.0 (#500) Signed-off-by: Yasumasa Suenaga <[email protected]> * First draft of the ADR for watt time v3 changes First draft of the ADR for watt time v3 changes. Looking at path mappings and parameters. Still plenty to work on. * Initial changelog 1.4.0 (#511) Signed-off-by: Dan Benitah <[email protected]> * overview.md: Fixed three broken links Signed-off-by: joecus1 <[email protected]> * DCO Remediation Commit for joecus1 <[email protected]> I, joecus1 <[email protected]>, hereby add my Signed-off-by to this commit: c6b2c14 Signed-off-by: joecus1 <[email protected]> * Update enablement.md update older .Net reference Signed-off-by: nttDamien <[email protected]> * (fix) broken links - Update enablement.md Signed-off-by: nttDamien <[email protected]> * Moved ADR to correct location Moved ADR to correct location * Further updates for the watt time v2 to v3 upgrade Signed-off-by: Vaughan Knight <[email protected]> * Further updates for the watt time v2 to v3 upgrade Signed-off-by: Vaughan Knight <[email protected]> * Update SECURITY.md (.NET 8 upgrade) Signed-off-by: nttDamien <[email protected]> * Update enablement.md 2 missed references... Signed-off-by: nttDamien <[email protected]> * Update docusaurus.config.js removed banner's mention of Hack Signed-off-by: Dan Benitah <[email protected]> * Update docusaurus.config.js Signed-off-by: Dan Benitah <[email protected]> * Update 0016-watt-time-v3.md updated notes for BA Signed-off-by: Vaughan Knight <[email protected]> * First draft of the ADR for watt time v3 changes First draft of the ADR for watt time v3 changes. Looking at path mappings and parameters. Still plenty to work on. * Moved ADR to correct location Moved ADR to correct location * Further updates for the watt time v2 to v3 upgrade Signed-off-by: Vaughan Knight <[email protected]> * Update 0016-watt-time-v3.md updated notes for BA Signed-off-by: Vaughan Knight <[email protected]> * Create 0016-watt-time-v3.md More updates. * Added base url to the configuration with validation Added AuthenticationBaseUrl to the configuration and updated Authentication to leverage the v3 authenication path - note the API is not updated and will require further updates. * Updated start and end configuration Updated start and end configuration to new values * Balancing Authority Parameter Renamed to Region Balancing Authority Renamed to Region. Does not include updates to API, just the Query String parameter. * Add example for 'podman play kube' (#340) * Add example for 'podman play kube' Signed-off-by: Yasumasa Suenaga <[email protected]> * Update Swagger JSON URL Signed-off-by: Yasumasa Suenaga <[email protected]> --------- Signed-off-by: Yasumasa Suenaga <[email protected]> * Updates for historical data API Updates for historical data API * Removed accidental file Removed accidental file * Lots of test updates Lots of test updates, need to do some fixes. * Historical forecasts updated Historical forecasts updated * DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b9490e4 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b991bac I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: e4f1494 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: b443e9e I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: ab1205d I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 7c115fa I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: e047c9a I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: aa81382 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 8640c8c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 880fcf7 Signed-off-by: Vaughan Knight <[email protected]> * Many tests reworked, a few to go Many tests reworked, a few to go. Consolidated a lot of the hand crafted json objects into objects that get serialized as the purist JsonObject format was prone to errors - in some cases tests were passing even with bad typing. * Further test updates Further test updates * Further updates, just 1 test left to remediate Further updates, just 1 test left to remediate * Updated to add authentication client to the service builder for the tests Updated to add authentication client to the service builder for the tests. All tests now passing. * Renaming of Balancing Authority to Region Renaming of Balancing Authority to Region through all code and comments. This will also need updating through documentation. * Fixed spelling error in latitude Fixed spelling error in latitude * Fixed a bug where location sources were loading twice Fixed a bug where location sources were loading twice. Added a semaphore to stop any threading issues, and also stopped it loading twice in the service configuration. * Fixed typo for method name Fixed typo for method name * DCO Remediation Commit for Vaughan Knight <[email protected]> I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: e324f36 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: be6663c I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 39e45a6 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: fbfcac1 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 9aabd27 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 8127a92 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 4ff0151 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: d93320f I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 91799f7 I, Vaughan Knight <[email protected]>, hereby add my Signed-off-by to this commit: 4665813 Signed-off-by: Vaughan Knight <[email protected]> * Updates based on code review for WattTime Tests Updates based on code review for WattTime Tests. Mostly cleanup of constants which were removed elsewhere in tests. * Cleaned up a lot of the string literals Cleaned up a lot of the string literals. They were causing too much fragility in the code base, and made it complex when updating the WattTime API. * More cleanup of some of the strings More cleanup of some of the strings. Creating consistency for using the test data on parameters and not just reponses also. * Updates to documentation and changelog Updates to documentation and changelog * Update azure-regions.json (#536) Latest azure-regions.json list Adds italynorth, polandcentral, spaincentral, mexicocentral, israelcentral, qatarcentral, brazilus, eastusstg (Also seems to remove trailing zeros in some existing coordinates) Signed-off-by: Dan Benitah <[email protected]> * Update CHANGELOG.md for v1.5 Signed-off-by: Dan Benitah <[email protected]> * Update CHANGELOG.md layout update Signed-off-by: Dan Benitah <[email protected]> --------- Signed-off-by: Phil Huang <[email protected]> Signed-off-by: tkuramoto33 <[email protected]> Signed-off-by: Rintaro Ikeda <[email protected]> Signed-off-by: Richard Jackson <[email protected]> Signed-off-by: Yasumasa Suenaga <[email protected]> Signed-off-by: JasonLuuk <[email protected]> Signed-off-by: Dan Benitah <[email protected]> Signed-off-by: Vaughan Knight <[email protected]> Signed-off-by: Sophie Trinder <[email protected]> Signed-off-by: danuw <[email protected]> Signed-off-by: Osama Jandali <[email protected]> Signed-off-by: Szymon Duchniewicz <[email protected]> Signed-off-by: Russell Trow <[email protected]> Signed-off-by: Yasumasa Suenaga <[email protected]> Signed-off-by: omahs <[email protected]> Signed-off-by: joecus1 <[email protected]> Signed-off-by: nttDamien <[email protected]> Co-authored-by: danuw <[email protected]> Co-authored-by: Dan Benitah <[email protected]> Co-authored-by: Phil Huang <[email protected]> Co-authored-by: tkuramoto33 <[email protected]> Co-authored-by: Rintaro Ikeda <[email protected]> Co-authored-by: rinikeda <[email protected]> Co-authored-by: Richard Jackson <[email protected]> Co-authored-by: yasuenag <[email protected]> Co-authored-by: JasonLuuk <[email protected]> Co-authored-by: Szymon Duchniewicz <[email protected]> Co-authored-by: Sophie Trinder <[email protected]> Co-authored-by: Osama Jandali <[email protected]> Co-authored-by: Szymon Duchniewicz <[email protected]> Co-authored-by: Russell Trow <[email protected]> Co-authored-by: Takuya Iwatsuka <[email protected]> Co-authored-by: omahs <[email protected]> Co-authored-by: joecus1 <[email protected]> Co-authored-by: nttDamien <[email protected]>
1 parent 90a4ea6 commit 46f66d8

File tree

50 files changed

+1254
-558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1254
-558
lines changed

CHANGELOG.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,79 @@
22

33
All notable changes to the Carbon Aware SDK will be documented in this file.
44

5+
## [1.5.0] - 2024-05
6+
7+
This is the WattTime v3 update. Most notable changes that may require action are for deployment configuration, and these are minor.
8+
9+
### Added
10+
11+
WattTime v3 API support. This is an inplace upgrade for v2.
12+
13+
- [PR #532] Watt Time v3 Support ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/532)
14+
- [PR #340] Add example for 'podman play kube' ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/340)
15+
- [PR #536] Updated azure-regions.json with new regions ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/536)
16+
- [#519] Remove hackathon sentence from our website banner ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/519)
17+
- [#510] Gap Analysis for WattTime v3 ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/510)
18+
- [#262] [Feature Contribution]: Publish the docker file in a docker registry ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/262)
19+
20+
### Removed
21+
22+
WattTime v2 API support due to v3 in place replacement.
23+
24+
### Fixed
25+
26+
- [PR #522] Remove Hack mention from the Docs's banner ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/522)
27+
- [#535] [Bug]: Configuration for locations loads twice ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/535)
28+
- [PR #516] Update published documentation to .NET 8 ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/516)
29+
- [PR #515] overview.md: Fixed three broken links Signed-off-by: joecus1 <joecusa… ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/515)
30+
- [#506] Check our published documentation to identify any references to .NET7 ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/506)
31+
- [#512] [Bug]: Broken links in overview.md file ](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/512)
32+
33+
### Changed
34+
35+
Updates for WattTime v3 API endpoint from v2, details in the [ADR for WattTime v3 changes](./casdk-docs/docs/architecture//decisions/0016-watt-time-v3.md).
36+
37+
#### API
38+
39+
No changes
40+
41+
#### API Deployment
42+
43+
Due to the change for WattTime v3, there is change to the configuration for WattTime users.
44+
45+
With some of the changes to the code, some of the configuration will also needs to change.
46+
47+
| Config (v2) | Config (v3) | Description |
48+
|------------------------------------|----------------------------------|------------------------------|
49+
| `BalancingAuthorityCacheTTL` | `RegionCacheTTL` | This is the cache for regions data in seconds, and has a default value of 1 day. This only needs updating if you set it |
50+
| n/a | `AuthenticationBaseUrl` | **NEW** This is the base URL for the WattTime Authentication API and defaults to `https://api.watttime.org/` if not set. |
51+
52+
Example below if set (note they do not have to be set)
53+
```json
54+
"wattTime_no-proxy": {
55+
"Type": "WattTime",
56+
"Username": "the_username",
57+
"Password": "super_secret_secret",
58+
"BaseURL": "https://api.watttime.org/v3/",
59+
"AutenticationBaseURL": "https://api.watttime.org", // This is new but not mandatory in config
60+
"RegionCacheTTL": 86400, // This is changed but not mandatory in config
61+
"Proxy": {
62+
"UseProxy": false
63+
}
64+
```
65+
66+
#### SDK
67+
68+
No changes
69+
70+
71+
#### Other
72+
73+
No changes
74+
75+
76+
For more details, checkout [https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/503](https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/503)
77+
578

679
## [1.4.0] - 2024-05
780

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
2+
# 0015. WattTime v3 Changes
3+
4+
## Status
5+
6+
Proposed
7+
8+
## Context
9+
As part of the update to Watt Time v3 we are proposing the changes to the underlying API calls. This needs to be tracked so we understand the impacts, and if multiple options are available, which option was selected and why.
10+
11+
This wll impact the `CarbonAware.DataSources.WattTime` project primarily - however all test will need changing where there are downstream tests that are impacted, and for example, if any initialization needs reconfiguring it will impact dependency injection and likely `Program.cs` in the WattTime API projects.
12+
13+
## Decision
14+
15+
The proposal is for the outlined WattTime API mapping and changes.
16+
17+
## WattTime v2, v3 Mapping
18+
19+
The following document and guidelines was used to understand the impact to the Carbon Aware SDK for the WattTime v3 updates. https://docs.watttime.org/#tag/Transitioning-from-APIv2-to-APIv3
20+
21+
### Base URL
22+
The base URL will need to change. This is configured in the `appsettings.config` and can be set from environment variables.
23+
24+
|Base URL (v2) | Based URL (v3) |
25+
|---|---|
26+
| /v2 | /v3 |
27+
28+
29+
### Paths
30+
The paths will also need to change.
31+
32+
The following is configured at `CarbonAware.DataSources.WattTime/src/Constants/Paths.cs`
33+
34+
All response types for emission data include a response/data object, and a `meta` object which contains information such as `region`. As such historical data, forecast data, and historical forecast data objects will change significantly. These will be moved across to their own `...Response` record objects to abstract any future changes in the response type. Previously these objects had a lot of overlap so where the same class and this will cause significant rework of the code and tests, and breaking these out now will abstract them.
35+
36+
The `Login` is now at a different base URL, and to avoid any future issues a different HTTP client will be used for authentication, and the existing HTTP client will be used for API interaction. These will still sit in the `WattTimeClient` and as such no impacts to the dependent classes/logic.
37+
38+
| API Endpoint | Description | Path (v2) | Path (v3) | Notes |
39+
|--------------|-------------|-----------|-----------|---|
40+
| Data | Get data | /data | /historical | _Request_ <li> `starttime` is now `start` and mandatory <li> `endtime` is now `end` and mandatory <li> `ba` is now `region` <li> `signal_type` added <br> _Response_ <li> `signal_type` added
41+
| Forecast | Get forecast| /forecast | /forecast | <br> No longer be used for historical data <br> _Request_ <li> `ba` is now `region` <li> `extended_forecast` removed <li> `horizon_hours` added <li> `signal_type` added <li> Historical forecasts are now at `/forecast/historical` <br> _Response_ <li> `signal_type` added
42+
| Historical | Get historical forecast data | /historical (?) | /forecast/historical (?) | This changed signficantly. <br> _Request_ <li> `ba` is now `region` <li> `starttime` is now `start` and mandatory <li> `endtime` is now `end` and mandatory <li> `signal_type` added <br> _Response_ <li> `signal_type` added
43+
| Balancing Authority From Location | Get balancing authority from location | /ba-from-loc | /region-from-loc | Check if the CA SDK uses BA at all <br><br> _Request_ <li> `name` is now `region_full_name` <li> `abbrev` is now `region` <li> `signal_type` added <br> _Response_ <li> `id` removed <li> `signal_type` added |
44+
| Login | User login | https://api2.watttime.org/v2/login | https://api.watttime.org/login | Path has changed from being version specific to being no longer related to the API version. <br><br> Updated in `WattTimeClient` to now have 2 HTTP clients to decouple versions from the login.
45+
46+
### Query Strings
47+
48+
#### Signal Type
49+
Everything call takes an optional `signal_type` parameter that defaults to `co2_moer`.
50+
51+
The following comes from `CarbonAware.DataSources.WattTime/src/Constants/QueryStrings.cs` and the changes are consistent with the discussion above.
52+
53+
| Query String (v2) | Query String if Changed (v3) | Description |
54+
|------------------------------------|----------------------------------|------------------------------|
55+
| `ba` | `region` | Balancing Authority / Region |
56+
| `starttime` | `start` | Start Time |
57+
| `endtime` | `end` | End Time |
58+
| `latitude` | - | Latitude |
59+
| `longitude` | - | Longitude |
60+
| `username` | - | Username |
61+
62+
## Update Changes
63+
With some of the changes to the code, some of the configuration will also needs to change.
64+
65+
| Config (v2) | Config (v3) | Description |
66+
|------------------------------------|----------------------------------|------------------------------|
67+
| `BalancingAuthorityCacheTTL` | `RegionCacheTTL` | This is the cache for regions data in seconds, and has a default value of 1 day. |
68+
| n/a | `AuthenticationBaseUrl` | **NEW** This is the base URL for the WattTime Authentication API and defaults to `https://api.watttime.org/` if not set. |
69+
70+
Example below if set (note they do not have to be set)
71+
```json
72+
"wattTime_no-proxy": {
73+
"Type": "WattTime",
74+
"Username": "the_username",
75+
"Password": "super_secret_secret",
76+
"BaseURL": "https://api.watttime.org/v3/",
77+
"AutenticationBaseURL": "https://api.watttime.org", // This is new but not mandatory
78+
"RegionCacheTTL": 86400, // This is new but not mandatory
79+
"Proxy": {
80+
"UseProxy": false
81+
}
82+
```
83+
## Green Impact
84+
85+
Neutral
86+

casdk-docs/docs/tutorial-extras/carbon-aware-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ EmissionsForecast()
423423
#### Locations
424424

425425
Each WattTime emissions data point is associated with a particular named
426-
balancing authority. For transparency, this value is also used in
426+
region often referred to as a balancing authority. For transparency, this value is also used in
427427
`EmissionsData` response objects. It is not overwritten to match the named
428428
datacenter provided by any request.
429429

casdk-docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const config = {
130130
id: 'announcementBar-0', // Increment on change
131131
// content: `⭐️ If you like Docusaurus, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/facebook/docusaurus">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/docusaurus">Twitter ${TwitterSvg}</a>`,
132132
//content: `🎉️ <b><a target="_blank" href="https://docusaurus.io/blog/releases/3.0">Docusaurus v3.0</a> is now out!</b> 🥳️`,
133-
content:`<strong>\u26A0 Graduated Project: This project is a Graduated Project, supported by the Green Software Foundation. The publicly available version documented in the README is trusted by the GSF. New versions of the project may be released, or it may move to the Maintained or Archived Stage. <br><br> 🎉️ We are running a Hackathon! CarbonHack is open to all, including software practitioners and those with a passion for Green Software. Find out more on the <a href="https://grnsft.org/hack/github">CarbonHack website</a> </strong>`,
133+
content:`<strong>\u26A0 Graduated Project: This project is a Graduated Project, supported by the Green Software Foundation. The publicly available version documented in the README is trusted by the GSF. New versions of the project may be released, or it may move to the Maintained or Archived Stage.</strong> `,
134134
backgroundColor:'#EBF2D7',
135135
textColor:'#00524f'
136136
},

samples/casdk-demo/README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Carbon Aware SDK demonstration on Podman
2+
3+
This folder contains an example for Carbon Aware SDK and Swagger UI for the SDK. The user can demonstrate Carbon Aware SDK via Swagger UI with just one command.
4+
5+
This demonstration uses `podman play kube` to deploy apps like a Kubernetes application. Deployment is defined in [demo.yaml](demo.yaml).
6+
7+
## Requirements
8+
9+
- Podman
10+
11+
## Ports to open
12+
13+
Podman creates virtual network, then all of containers in the deployment would be located flatten. So Each containers can access each other as a `localhost`. We need to consider TCP port:
14+
15+
* 8080: Carbon Aware SDK
16+
* 8081: Swagger UI
17+
* 8082: NGINX (for reverse proxy)
18+
19+
NGINX is a reverse proxy to both Carbon Aware SDK and Swagger UI. To avoid CORS error, you can access Swagger UI via NGINX ( http://localhost:8082/swagger-ui/ ).
20+
21+
## Reverse proxy rule
22+
23+
See [nginx-rp.conf](nginx-rp.conf)
24+
25+
/ -> Carbon Aware SDK
26+
/swagger.yaml -> OpenAPI document provided by Carbon Aware SDK
27+
/swagger-ui/ -> Swagger UI for Carbon Aware SDK
28+
29+
## How to run
30+
31+
1. Set environment variables prefixed with `CASDK_`: e.g. `CASDK_DataSources__EmissionsDataSource`
32+
33+
2. Start demonstration
34+
35+
```
36+
./demo.sh start
37+
```
38+
39+
:::warning
40+
41+
* [demo.sh](demo.sh) would create `/tmp/casdk-config.yaml` which may contain credentials (e.g. API token of backend service). This file would be removed by `./demo.sh stop`.
42+
* [demo.sh](demo.sh) would change security context of [nginx-rp.conf](nginx-rp.conf) to `container_file_t` if SELinux is enabled. It would not recover in `./demo.sh stop`, so you need to recover manually via `restorecon` if need.
43+
44+
:::
45+
46+
3. Access endpoints (e.g. http://localhost:8082/swagger-ui/ )
47+
48+
4. Stop demonstration
49+
50+
```
51+
./demo.sh stop
52+
```
53+
54+
## Example
55+
56+
Run demonstration with ElectricityMapsFree datasource
57+
58+
```
59+
export CASDK_DataSources__EmissionsDataSource=ElectricityMapsFree
60+
export CASDK_DataSources__Configurations__ElectricityMapsFree__Type=ElectricityMapsFree
61+
export CASDK_DataSources__Configurations__ElectricityMapsFree__token=YOUR_SECRET_TOKEN
62+
63+
./demo.sh start
64+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: casdk-config
5+
data:
6+
# Environment variables would be added by demo.sh

samples/casdk-demo/demo.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/sh
2+
3+
THISFILE=$0
4+
BASEDIR=$(dirname $THISFILE)
5+
SUBCMD=$1
6+
CONFIGMAP=/tmp/casdk-config.yaml
7+
8+
help_and_exit () {
9+
echo "Usage:"
10+
echo " $THISFILE [start|stop]"
11+
12+
rm -f $CONFIGMAP
13+
exit 1
14+
}
15+
16+
start () {
17+
# Create ConfigMap for envvars in CASDK container
18+
cp -f $BASEDIR/casdk-config.yaml.template $CONFIGMAP
19+
for CASDK_ENV in `env | grep CASDK_`; do
20+
KEY=`echo $CASDK_ENV | cut -d '=' -f 1 | sed -e 's/^CASDK_//'`
21+
VALUE=`echo $CASDK_ENV | cut -d '=' -f '2'`
22+
23+
echo " $KEY: $VALUE" >> $CONFIGMAP
24+
done
25+
26+
27+
# Change security context of nginx-rp.conf because it would be mounted by
28+
# NGINX container in demo.yaml.
29+
SELINUX_MODE=`getenforce 2>/dev/null`
30+
if [ "$SELINUX_MODE" = 'Enforcing' ]; then
31+
chcon -t container_file_t $BASEDIR/nginx-rp.conf
32+
fi
33+
34+
# Start Podman
35+
# Move to BASEDIR because demo.yaml should refer nginx-rp.conf in that dir.
36+
pushd $BASEDIR > /dev/null 2>&1
37+
podman play kube --configmap=$CONFIGMAP demo.yaml
38+
popd > /dev/null 2>&1
39+
}
40+
41+
stop () {
42+
podman play kube --down $BASEDIR/demo.yaml
43+
rm -f $CONFIGMAP
44+
}
45+
46+
case "$SUBCMD" in
47+
start)
48+
start;;
49+
50+
stop)
51+
stop;;
52+
53+
*)
54+
help_and_exit;;
55+
esac

samples/casdk-demo/demo.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: casdk-demo
5+
labels:
6+
app: casdk-demo
7+
spec:
8+
selector:
9+
matchLabels:
10+
app: casdk-demo
11+
template:
12+
metadata:
13+
labels:
14+
app: casdk-demo
15+
spec:
16+
containers:
17+
- name: carbon-aware-sdk
18+
image: ghcr.io/green-software-foundation/carbon-aware-sdk:pre
19+
envFrom:
20+
- configMapRef:
21+
name: casdk-config
22+
ports:
23+
- containerPort: 8080
24+
hostPort: 8080
25+
- name: swagger-ui
26+
image: swaggerapi/swagger-ui
27+
env:
28+
- name: SWAGGER_JSON_URL
29+
value: /swagger.yaml
30+
- name: PORT
31+
value: "8081"
32+
ports:
33+
- containerPort: 8081
34+
hostPort: 8081
35+
- name: nginx
36+
image: nginx
37+
ports:
38+
- containerPort: 8082
39+
hostPort: 8082
40+
volumeMounts:
41+
- name: rp-config
42+
mountPath: /etc/nginx/conf.d/default.conf
43+
volumes:
44+
- name: rp-config
45+
hostPath:
46+
path: nginx-rp.conf
47+
type: File

samples/casdk-demo/nginx-rp.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
server {
2+
listen 8082;
3+
4+
location / {
5+
proxy_pass http://localhost:8080;
6+
}
7+
8+
location /swagger.yaml {
9+
proxy_pass http://localhost:8080/api/v1/swagger.yaml;
10+
}
11+
12+
location /swagger-ui/ {
13+
proxy_pass http://localhost:8081/;
14+
}
15+
16+
}

src/CarbonAware.CLI/test/integrationTests/Commands/EmissionsForecasts/EmissionsForecastsCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public async Task EmissionsForecasts_RequestedAtOptions_ReturnsExpectedData()
9999
IgnoreTestForDataSource("data source does not implement '--requested-at'", DataSourceType.ElectricityMaps);
100100

101101
// Arrange
102-
_dataSourceMocker.SetupBatchForecastMock();
102+
_dataSourceMocker.SetupHistoricalBatchForecastMock();
103103

104104
// Act
105105
var exitCode = await InvokeCliAsync($"emissions-forecasts -l eastus -r 2022-09-01");

src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/mock/ElectricityMapDataSourceMocker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void SetupDataMock(DateTimeOffset start, DateTimeOffset end, string locat
126126
SetupResponseGivenGetRequest(Paths.PastRange, pastRange);
127127
}
128128

129-
public void SetupBatchForecastMock()
129+
public void SetupHistoricalBatchForecastMock()
130130
{
131131
throw new NotImplementedException();
132132
}

0 commit comments

Comments
 (0)