Skip to content

Conversation

@sandy2008
Copy link
Contributor

@sandy2008 sandy2008 commented Dec 25, 2025

Description

feat: refactor datasource tests to improve readability and maintainability

  • Updated test cases to use a factory function for creating DataSource instances
  • Enhanced assertions and added more test cases for better coverage

fix: improve datasource request handling and error messages

  • Refactored doRequest and getApplicationNames methods to use backend service
  • Improved error handling in testDatasource method

style: clean up code formatting and comments

  • Standardized comments and removed unnecessary console logs
  • Ensured consistent formatting across all files

chore: update plugin.json to require Grafana version >=9.5.0

Motivation and Context

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@sandy2008 sandy2008 requested a review from sokoide December 25, 2025 03:56
…bpack build system

fix: update grafana dependency version in plugin.json to support Grafana 12.3.0

refactor: remove unused properties from DataSource class in datasource.ts

chore: update TypeScript configuration to extend custom tsconfig
- Created externals configuration for bundling dependencies in webpack.
- Added docker-compose configuration for Grafana service.
- Implemented entrypoint script for development and test modes.
- Set up ESLint configuration with Grafana's base rules.
- Established Jest setup and configuration for testing.
- Mocked react-inlinesvg for testing purposes.
- Created utility functions for Jest configuration.
- Developed Rspack plugin for live reloading during development.
- Configured Rspack with necessary plugins and optimizations.
- Added TypeScript configuration for the project.
- Defined types for bundler rules and webpack plugins.
- Created webpack configuration for building the Grafana plugin.
- Updated .gitignore to exclude .config directory.
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