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

[BUG] Unable to Edit Report Definition by request time from Recurring to Cron based and from Cron based to Recurring #1041

Open
Sangeetha14 opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working untriaged

Comments

@Sangeetha14
Copy link

What is the bug?
Unable to Edit Report Definition by request time from Recurring to Cron based and from Cron based to Recurring.

How can one reproduce the bug?
Steps to reproduce the behavior:
Bug 1: Edit request time from Recurring to Cron based

  1. Create report definition with request time Recurring
Screenshot 2024-10-03 at 7 04 43 PM

Query Execution:
curl -X GET "localhost:9200/_plugins/_reports/definition/QRebUpIBg7m4Lu8dXvJT?pretty" -H 'Content-Type: application/json' -d'{"from":0,"size":10000,"timeout":"60000ms","query":{"terms":{"tenant":[""],"boost":1.0}},"sort":[{"lastUpdatedTimeMs":{"order":"asc"}}]}'

Screenshot 2024-10-03 at 7 17 44 PM
  1. Edit the Report by request time from Recurring to Cron based
Screenshot 2024-10-03 at 7 19 36 PM

Query Execution:
curl -X GET "localhost:9200/_plugins/_reports/definition/QRebUpIBg7m4Lu8dXvJT?pretty" -H 'Content-Type: application/json' -d'{"from":0,"size":10000,"timeout":"60000ms","query":{"terms":{"tenant":[""],"boost":1.0}},"sort":[{"lastUpdatedTimeMs":{"order":"asc"}}]}'

Screenshot 2024-10-03 at 7 24 35 PM

Note: Within schedule "interval" is not updated to "cron"

  1. But it is not updated in Report Definition
Screenshot 2024-10-03 at 7 22 41 PM

Bug 2: Edit request time from Cron based to Recurring

  1. Create report definition with request time Cron based
  2. Edit the Report by request time from Cron based to Recurring
  3. But it is not updated in Report Definition
    Note: Same as Bug1

What is the expected behavior?
The Report Definition Edit should be work properly.

Do you have any additional context?
Actually we observed "In Edit report definition both interval and cron are available in data" by executing the query
curl -XGET "http://localhost:9200/.opendistro-reports-definitions/_search?pretty" -H 'Content-Type: application/json' -d' {"from":0,"size":10000,"timeout":"60000ms","query":{"terms":{"tenant":[""],"boost":1.0}},"sort":[{"lastUpdatedTimeMs":{"order":"asc"}}]}'
Screenshot 2024-10-03 at 7 28 38 PM

@Sangeetha14 Sangeetha14 added bug Something isn't working untriaged labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant