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

Time field is not getting saved in kibana view. It is showing earlier selected timefield. #4748

Closed
rakhinarveka1 opened this issue Aug 16, 2023 · 2 comments
Labels
bug Something isn't working needs more info Requires more information from poster

Comments

@rakhinarveka1
Copy link

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Discover, Created view with timefield 'Last 30 days'
  2. Save kibana view with name 'Last 30 days'.
  3. while opened the same view again , It does show timefield selected at the time of kibana view creation. here i.e. Last 30 days

Expected behavior
If we are opening specific kibana view, it should show the selected Timefield when kibana view created. But it shows earlier timefield selected on screen irrespective of whatever view selected.

OpenSearch Version
Opensearch dashboard 1.3

Screenshots

If applicable, add screenshots to help explain your problem.
View created as below,
image

but when reopened again, not showing same timefield.

image
@rakhinarveka1 rakhinarveka1 added bug Something isn't working untriaged labels Aug 16, 2023
@zhongnansu
Copy link
Member

@rakhinarveka1 I couldn't reproduce this issue, but I suggest 2 things for you to take another look.

  1. could you update to the latest version of Dashboards and see if there'e still issue?
  2. make sure you save the current discover view as a "search" after selecting the time range

@zhongnansu zhongnansu added needs more info Requires more information from poster and removed untriaged labels Aug 22, 2023
@ashwin-pc
Copy link
Member

@rakhinarveka1 the time field is not a part of the saved view. When you save a view the columns selected, their sort order and the index pattern selected is saved. The query used, the timerange are part of the global state and thus is persisted across apps. e.g. when you switch between Discover and Dashboard, the time range stays the same. I dont think there is a plan to update this behavior right now.

If you want to save the timerange, I suggest using the saved query option. This saves the query and timerange and is accessible using the save icon next to the search bar.

Closing this for now, feel free to reopen if this does not address your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info Requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants