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): Added calibration forecast query builder #69

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

saradei-ni
Copy link
Collaborator

@saradei-ni saradei-ni commented Sep 24, 2024

Pull Request

🀨 Rationale

User Story 2798210: [UI][Grafana] Add support for filters on the Grafana plugin

πŸ‘©β€πŸ’» Implementation

  • integrated the query builder component
  • moved constants and types that are used in multiple places in core
  • created and integrated callbacks for query builder expression templates in order to handle computed field queries (ex: Location.MinionId || Location.PhysicalLocation)
  • updated expression template callbacks to take option label/value into consideration so that the label is displayed and the value is sent

πŸ§ͺ Testing

Added unit tests.

GIF of the query builder sending the right requests.
test

βœ… Checklist

@kkerezsi
Copy link
Collaborator

Please add a description and a prepare a gif to highlight the functionality in the description

src/core/query-builder.utils.ts Show resolved Hide resolved
src/core/query-builder.utils.test.ts Outdated Show resolved Hide resolved
src/core/query-builder.utils.test.ts Outdated Show resolved Hide resolved
src/core/query-builder.utils.test.ts Outdated Show resolved Hide resolved
src/core/query-builder.utils.ts Outdated Show resolved Hide resolved
@kkerezsi
Copy link
Collaborator

kkerezsi commented Sep 30, 2024

@mure Is there any possibility to get this reviewed? The PR is out for some time now and we are expecting to start testing it

src/core/types.ts Outdated Show resolved Hide resolved
src/core/query-builder.constants.ts Outdated Show resolved Hide resolved
src/datasources/asset-calibration/constants.ts Outdated Show resolved Hide resolved
src/datasources/asset-calibration/constants.ts Outdated Show resolved Hide resolved
@kkerezsi kkerezsi enabled auto-merge (squash) October 1, 2024 05:03
@kkerezsi kkerezsi mentioned this pull request Oct 1, 2024
1 task
@saradei-ni
Copy link
Collaborator Author

@mure can you please take a look again? The feedback has been addressed.

@kkerezsi kkerezsi merged commit 99f2fff into main Oct 2, 2024
1 check passed
mure pushed a commit that referenced this pull request Oct 2, 2024
## [3.15.0](v3.14.1...v3.15.0) (2024-10-02)

### Features

* **asset:** Added calibration forecast query builder ([#69](#69)) ([99f2fff](99f2fff))
@mure
Copy link
Collaborator

mure commented Oct 2, 2024

πŸŽ‰ This PR is included in version 3.15.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@mure mure added the released label Oct 2, 2024
@mure mure deleted the users/saradei-ni/2798210 branch October 3, 2024 15:56
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.

4 participants