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

Create plugin hooks for reporters #13815

Open
5 tasks
Tracked by #13707
travishathaway opened this issue Apr 18, 2024 · 0 comments · May be fixed by #13868
Open
5 tasks
Tracked by #13707

Create plugin hooks for reporters #13815

travishathaway opened this issue Apr 18, 2024 · 0 comments · May be fixed by #13868
Assignees
Labels
in-progress issue is actively being worked on plugins pertains to a plugin/subcommand source::anaconda created by members of Anaconda, Inc. type::feature request for a new feature or capability
Milestone

Comments

@travishathaway
Copy link
Contributor

travishathaway commented Apr 18, 2024

Related to: #13814

What's the idea?

In the aforementioned issue, we are creating a class structure that will eventually be used to customize the way output is rendered in conda. This issue will see us integrate this as a plugin hook, so that the output can be customize by plugin authors too.

We will create two new plugin hooks: one for "reporter handlers" and one for "output handlers". This will allow plugin authors to customize how output looks and where it is sent, respectively.

What should be done?

  • Create a new conda_reporter_handler plugin hook. This will require authors to return a subclass of the ReporterHandler abstract base class.
  • Create a new conda_output_handler plugin hook. This will require authors to return a subclass of the OutputHandler abstract base class
  • Add new documentation for these two plugin hooks
  • Refactor our existing reporting handlers (console and json) to use the plugin system
  • Refactor our existing output handlers (stdout) to use the plugin system
@travishathaway travishathaway self-assigned this Apr 18, 2024
@travishathaway travishathaway added in-progress issue is actively being worked on source::anaconda created by members of Anaconda, Inc. type::feature request for a new feature or capability plugins pertains to a plugin/subcommand labels Apr 18, 2024
@travishathaway travishathaway added this to the 24.7.x milestone Apr 18, 2024
@travishathaway travishathaway linked a pull request Apr 26, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress issue is actively being worked on plugins pertains to a plugin/subcommand source::anaconda created by members of Anaconda, Inc. type::feature request for a new feature or capability
Projects
Status: 🏗️ In Progress
Development

Successfully merging a pull request may close this issue.

1 participant