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

[MAINTENANCE] Refactor TarBag to remove global variables #600

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

mark-dce
Copy link
Contributor

@mark-dce mark-dce commented Oct 3, 2024

ISSUE
A number of instance variables were used to pass values across methods which made code linkages and dependencies difficult to analyze.

RESOLUTION
This change removes all instance variables in the class and passes required data as paramaters to the method calls. Where data from the instance initialization is required, we've replaced references to instance variables with corresponding attribute readers.

This change also adds more detailed testing of the TAR file that gets created to confirm it has the esxpected content.

@coveralls
Copy link

coveralls commented Oct 3, 2024

Coverage Status

coverage: 94.681% (-0.03%) from 94.713%
when pulling a788935 on bag_refactor
into db7097b on main.

**ISSUE**
A number of instance variables were used to pass values across
methods which made code linkages and dependencies difficult
to analyze.

**RESOLUTION**
This change removes all instance variables in the class and
passes required data as paramaters to the method calls.
Where data from the instance initialization is required,
we've replaced references to instance variables with
corresponding attribute readers.

This change also adds more detailed testing of the TAR file
that gets created to confirm it has the esxpected content.
@mark-dce mark-dce merged commit 91c56db into main Oct 3, 2024
1 check passed
@mark-dce mark-dce deleted the bag_refactor branch October 3, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants