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

feat(asset): add the query type and group by buttons for calibration forecast #64

Merged
merged 25 commits into from
Aug 28, 2024

Conversation

MileaRobertStefan
Copy link
Collaborator

@MileaRobertStefan MileaRobertStefan commented Aug 16, 2024

Pull Request

🤨 Rationale

In the existing Grafana plugin for Assets , we want to implement a new query type for Calibration Forecast for Assets.

The Plugin will have the following fields when "Calibration Forecast" query type will be selected:

Query Configuration

  • Query Type

    • Metadata (Default)
    • Calibration Forecast
  • Group By

    • Time based groupings:
      • Day
      • Week
      • Month

👩‍💻 Implementation

Add a radio button that allows to select the query type.
Add a multi select with custom logic to handle the selection of group by day / week / month.

🧪 Testing

Added new unit tests to cover the changes.

calibration forecast

Backend call:
image

✅ Checklist

@MileaRobertStefan MileaRobertStefan marked this pull request as ready for review August 16, 2024 09:25
@MileaRobertStefan MileaRobertStefan changed the title feat(asset): add the query type, group by and time span buttons feat(asset): add the query type and group by buttons Aug 16, 2024
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.ts Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.ts Outdated Show resolved Hide resolved
src/datasources/asset/components/AssetQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/asset/AssetDataSource.ts Show resolved Hide resolved
MileaRobertStefan and others added 4 commits August 22, 2024 09:10
…Editor.tsx

Co-authored-by: vpstoynova <100705307+vpstoynova@users.noreply.github.com>
Co-authored-by: vpstoynova <100705307+vpstoynova@users.noreply.github.com>
@MileaRobertStefan MileaRobertStefan changed the title feat(asset): add the query type and group by buttons feat(asset): add the query type and group by buttons for calibration forecast Aug 28, 2024
@MileaRobertStefan
Copy link
Collaborator Author

@cameronwaterman @mure I'm going to close this PR. If you find any issues please add a comment and I will address it in a different PR.

@MileaRobertStefan MileaRobertStefan merged commit 7ab470b into main Aug 28, 2024
1 check passed
mure pushed a commit that referenced this pull request Aug 28, 2024
## [3.12.0](v3.11.0...v3.12.0) (2024-08-28)

### Features

* **asset:** add the query type and group by buttons for calibration forecast ([#64](#64)) ([7ab470b](7ab470b))
@mure
Copy link
Collaborator

mure commented Aug 28, 2024

🎉 This PR is included in version 3.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mure mure added the released label Aug 28, 2024
@mure mure deleted the users/rmilea/2024/add_assets_buttons branch October 3, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants