Skip to content

Conversation

@btry
Copy link
Collaborator

@btry btry commented Oct 2, 2025

  • Fix the relation at upgrade
  • Fix fresh install
  • Delete carbon emission calculated for assets in Quebec. They will be recalculated thanks to the automatic action.

close #77

@btry btry added the bug Something isn't working label Oct 2, 2025
$source_id = Install::getOrCreateSource('Hydro Quebec');
$zone_id_quebec = Install::getOrCreateZone('Quebec', $source_id);
Install::linkSourceZone($source_id, $zone_id);
Install::linkSourceZone($source_id, $zone_id_quebec);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug was here

@btry btry force-pushed the bugfix/bad_relation_for_quebec branch from 41e3d8b to 942c0af Compare October 2, 2025 13:49
@btry btry force-pushed the bugfix/bad_relation_for_quebec branch 4 times, most recently from 56038d1 to 7870b13 Compare October 3, 2025 05:03
@btry btry force-pushed the bugfix/bad_relation_for_quebec branch from 7870b13 to e6debcf Compare October 3, 2025 05:07
@btry btry merged commit 9ab0105 into pluginsGLPI:support/1.0.0 Oct 3, 2025
3 checks passed
@btry btry deleted the bugfix/bad_relation_for_quebec branch October 3, 2025 05:19
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
btry added a commit that referenced this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong carbon intensity for Quebec

1 participant