Skip to content

refactor!: Use IVariableMap instead of VariableMap - #8401

Merged
gonfunko merged 3 commits into
RaspberryPiFoundation:rc/v12.0.0from
gonfunko:use-ivariable-map
Jul 22, 2024
Merged

refactor!: Use IVariableMap instead of VariableMap#8401
gonfunko merged 3 commits into
RaspberryPiFoundation:rc/v12.0.0from
gonfunko:use-ivariable-map

Conversation

@gonfunko

@gonfunkogonfunko commented Jul 19, 2024

Copy link
Copy Markdown
Contributor

The basics

-[x] I validated my changes

The details

Resolves

Fixes#8371, #8079, #8075

Proposed Changes

This PR uses IVariableMap in place of hardcoding VariableMap. It also refactors variable deletion handling; the VariableMap methods getVariableUsesById and deleteVariableById are deprecated and moved to the Variables namespace.

Breaking Change

The VariableMap.deleteVariable method now unconditionally deletes uses of the variable in question as well.

@gonfunko
gonfunko requested a review from a team as a code ownerJuly 19, 2024 22:06
@gonfunkogonfunko changed the title refactor! Use IVariableMap instead of VariableMaprefactor!: Use IVariableMap instead of VariableMapJul 19, 2024
@github-actionsgithub-actionsBot added breaking change Used to mark a PR or issue that changes our public APIs. PR: refactor Refactors code labels Jul 19, 2024
@gonfunko
gonfunko merged commit 21c0a7d into RaspberryPiFoundation:rc/v12.0.0Jul 22, 2024
@gonfunko
gonfunko deleted the use-ivariable-map branch July 22, 2024 16:18
@tasheetashee mentioned this pull request Oct 1, 2025
1 task
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changeUsed to mark a PR or issue that changes our public APIs.PR: refactorRefactors code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@gonfunko@rachel-fenichel