Improve the readability and reduce brittleness of Variable Services "bucket" logic
Open
@makubacki is already working on this.
Since May 10, 2022.
repo:mu_basecore
state:backlog
type:enhancement
- Dominant language
- Python
- Stars
- 658
- Forks
- 99
- Avg merge
- 20h 53m
- Merged PRs (30d)
- 1
Description
You can see perhaps the worst offender here:
https://github.com/microsoft/mu_basecore/blob/c4d0d1130454b3e5051bb601c707234e3a91713a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c#L2185
But the idea is to wrap each of these tests in a descriptive macro or function so that it's more readable AND we don't have to change multiple places if we ever change the logic (like adding a new PCD).
Example: WillVarExceedHwErrQuota( VarSize );, or something like that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.