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

[DEVOPS-646] Refactor all output into plugins similar to Fact & Analyse #68

Merged
merged 8 commits into from
Oct 22, 2024

Conversation

yusufhm
Copy link
Contributor

@yusufhm yusufhm commented Oct 18, 2024

Also added lagoon-source flag when pushing Problems to Insights.

This PR introduces the interface & plugin system for Output, similar to how Fact & Analyse plugins are done.

Two new such interfaces are introduced:

  • Outputter
    • Two implementations are provided based on the previously available ones: Stdout & Lagoon
  • FlagsProvider
    • Augments the cli's flags for the two outputters above.

@yusufhm yusufhm force-pushed the feature/DEVOPS-646-lagoon-problems-source branch from 52b7b3d to 32cf1d5 Compare October 18, 2024 16:31
@yusufhm yusufhm force-pushed the feature/DEVOPS-646-lagoon-problems-source branch from 87fe4b3 to 60c024a Compare October 20, 2024 10:13
@@ -0,0 +1,141 @@
package lagoon
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm — this is a difficult choice, I like how we have the output package. It clearly illustrates what is an output plugin. However, problems being specific to Lagoon pose a bit of an issue with the convention.

We can leave it here for now, but I'm wondering if we want to make it part of the output package for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make more sense in the future when actually implementing the plugin system - see the sample here: #69

@yusufhm yusufhm merged commit 8eb364a into 1.x Oct 22, 2024
4 checks passed
@yusufhm yusufhm deleted the feature/DEVOPS-646-lagoon-problems-source branch October 22, 2024 01:29
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