Marcus Efraimsson
2403665998
Chore: Remove legacydata package ( #88790 )
...
* Chore: Remove legacydata package
* remove unused dependency
* sdk v0.234.0
2024-06-05 22:31:06 +02:00
Giordano Ricci
b5a2c3c7f5
Query History: Remove migration ( #67470 )
2023-04-28 16:03:51 +01:00
idafurjes
6c5a573772
Chore: Move ReqContext to contexthandler service ( #62102 )
...
* Chore: Move ReqContext to contexthandler service
* Rename package to contextmodel
* Generate ngalert files
* Remove unused imports
2023-01-27 08:50:36 +01:00
Sofia Papagiannaki
7ba076de10
Chore: Move swagger definitions to the handlers ( #52643 )
2022-07-27 09:54:37 -04:00
Ivana Huckova
0ddb3b7521
Query history: Add swagger definitions ( #50498 )
...
* Query history: Add swagger definitions
* Update
* Remove changes in generated files
* Generate api files
* Add query history into api docs
* Add examples for commands
* Add missing parameters
* Generate api-spec and api-merged
* Fix linting
* Fix showing of example of queries
* Revert "Fix showing of example of queries"
This reverts commit b1eb073fbe .
* Update
* Update
2022-06-13 09:47:40 +02:00
Ivana Huckova
b92fe0e0f5
Query history: Add from and to parameters ( #48212 )
...
* Query history: Add from and to parameters
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Implement Grafana relative time range
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-04-29 09:55:33 +02:00
Ivana Huckova
aceedb3a32
Query history: Add migration endpoint ( #47551 )
...
* Add endpoint for migration
* Check for createdAt
* Query history: Remove returning of dtos
* Query history: Fix CreatedAt
* Refactor based on suggestions
* Insert into table in batches
2022-04-14 09:33:41 +02:00
Ivana Huckova
6e96506c23
Query history: Add search functionality ( #45932 )
...
* Query history: Add search functionality
* Add more tests
* Add documentation
* Fix spell errors
* Update docs
* Update docs
* Fix lint error
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Document limit
* Run tests with postgres and mysql
* Use CASE insted of IIF
* Use BooleanStr instead of 1
* Change LIKE to LikeStr()
* Return back integration tests
* Update SQL to use Bool() everywhere
* Create new tests for sorting
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Add page, count and limit to results
* Remove newline
* Update documentation
* Update docs
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-03-07 12:28:04 +01:00
Ivana Huckova
a3a852be81
Query history: Create API to star and unstar query in query history ( #45077 )
...
* Query history: Add starring and unstarring API
* Return dto with starred info when commenting
* Add documentation for starring and unstarring of query
* Return dto when starring/unstarring
* Update documentation
* Update deleting with unstarring
* Check queryUID length in queryhistory
* Fix linting issues
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2022-02-23 17:03:04 +01:00
Ivana Huckova
636a45f065
Query history: Create API to patch comment of query in query history ( #44981 )
...
* Query history: Patch comment
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Remove redundant check
* Use WithTransactionalDbSession to update comment
* Fix status code in test
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-02-15 15:43:17 +01:00
Ivana Huckova
0f362f8dfc
Query history: Create API to delete query from query history ( #44653 )
...
* Query history: Add delete and refactor
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2022-02-04 16:14:36 +01:00
Ivana Huckova
4e37a53a1c
Query history: Create API to add query to query history ( #44479 )
...
* Create config to enable/disable query history
* Create add to query history functionality
* Add documentation
* Add test
* Refactor
* Add test
* Fix built errors and linting errors
* Refactor
* Remove old tests
* Refactor, adjust based on feedback, add new test
* Update default value
2022-01-28 17:55:09 +01:00