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

OOP removal #129

Merged
merged 2 commits into from
Dec 17, 2024
Merged

OOP removal #129

merged 2 commits into from
Dec 17, 2024

Conversation

LCVcode
Copy link
Owner

@LCVcode LCVcode commented Dec 17, 2024

Description

This PR removes all of the object-oriented code in Jockey, which was the result of early optimization. This change makes the Jockey code and logic simpler, cleaner, and easier to maintain. This change introduces some regressions, such as not being able to filter objects by their Juju status, but these features will be re-implemented with a functional approach should they prove to be needed.

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security fix

Testing

Many old tests have been removed. No new tests have been added.

Additional Information

Any additional information that reviewers should be aware of.

Checklist

  • I have documented my code with docstrings and comments, particularly in hard-to-understand areas.
  • My changes adhere to the coding and style guidelines of the project and pass linting.
  • My changes generate no new warnings.

Removed source files:
- abstractions.py
- filters.py
- objects.py
- juju.py
- Includes fix to typehint in cloud.py
Copy link

filepath $$\textcolor{#23d18b}{\tt{passed}}$$ SUBTOTAL
$$\textcolor{#23d18b}{\tt{tests/test\_cache.py}}$$ $$\textcolor{#23d18b}{\tt{21}}$$ $$\textcolor{#23d18b}{\tt{21}}$$
$$\textcolor{#23d18b}{\tt{tests/test\_cli.py}}$$ $$\textcolor{#23d18b}{\tt{6}}$$ $$\textcolor{#23d18b}{\tt{6}}$$
$$\textcolor{#23d18b}{\tt{TOTAL}}$$ $$\textcolor{#23d18b}{\tt{27}}$$ $$\textcolor{#23d18b}{\tt{27}}$$

@LCVcode LCVcode merged commit dfa2c42 into master Dec 17, 2024
13 checks passed
@LCVcode LCVcode deleted the oop-removal branch December 17, 2024 23:38
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.

1 participant