Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor removeCopiesFromComponents to be a filter #2337

Closed
lucasrod16 opened this issue Feb 27, 2024 · 0 comments · Fixed by #2474
Closed

refactor removeCopiesFromComponents to be a filter #2337

lucasrod16 opened this issue Feb 27, 2024 · 0 comments · Fixed by #2474
Labels
tech-debt 💳 Debt that the team has charged and needs to repay

Comments

@lucasrod16
Copy link
Member

lucasrod16 commented Feb 27, 2024

Describe what should be investigated or refactored

refactor removeCopiesFromComponents to be a filter

Links to any relevant code

func removeCopiesFromComponents(components []types.ZarfComponent, loadedDiffData *types.DifferentialData) (diffComponents []types.ZarfComponent, err error) {

Additional context

#2223 (comment)

depends on #2321 being merged

cc: @Noxsios

@lucasrod16 lucasrod16 added the tech-debt 💳 Debt that the team has charged and needs to repay label Feb 27, 2024
@lucasrod16 lucasrod16 changed the title refactor removeCopiesFromComponents to be a filter refactor removeCopiesFromComponents to be a filter Feb 27, 2024
AustinAbro321 added a commit that referenced this issue May 6, 2024
…ng (#2473)

## Description

This change adds tests for remove copies from components to enable
refactoring in the future.

## Related Issue

Relates to #2337

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: razzle <razzle@defenseunicorns.com>
Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Noxsios added a commit that referenced this issue May 7, 2024
## Description

This change refactors remove copies from components to a filter.

## Related Issue

Depends on: #2473
Fixes #2337 

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

---------

Co-authored-by: razzle <razzle@defenseunicorns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt 💳 Debt that the team has charged and needs to repay
Projects
Status: Done
Status: New
Development

Successfully merging a pull request may close this issue.

1 participant