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