Comments (11)
Hi,
is this issue still open? can I work on this?
from opensearch-dashboards.
I haven't seen any updates so I am happy for you to go ahead :)
from opensearch-dashboards.
Is the bug still coming or sorted?
from opensearch-dashboards.
the bug is still coming
from opensearch-dashboards.
I believe Discover is being revamped and this would be addressed there. @ashwin-pc might have more information.
from opensearch-dashboards.
@huehnerlady I have a suspicion that this might be an issue with how the link is stored rather than the URL itself. Here is a URL to the playground website that has the filters applied and a few columns selected:
This URL can be corrupted depending on the way you store it (e.g. markdown) which is why the share functionality exists. Does this URL work for you?
Another reason for this might be because f something you mentioned in the issue description. When switching from dev to prod environments, the necessary indexes or other state information is not valid for the new environment. This will prevent the app from loading the state correctly and clear out all the filters and columns even if they are valid.
from opensearch-dashboards.
@ashwin-pc we use Opensearch for a while and changing the stage worked for a long time, it just hasn't stopped working recently.
Our stages are all the same, so index etc. are also available.
Is there another possibility to export/import the filters somehow as a workaround? It is super frustrating if you clicked together quite a complex filter setup and then you have to do the same AGAIN in the different stage
The link works for me, do you have a different stage you can manipulate the link to?
Does this mean we need to change the setup to change the way we store things?
from opensearch-dashboards.
Hmm, i dont know what could cause such a thing, especially since discover simply loads the state stored in the URL. So if you are able to load the URL I shared, you should be able to load the the same when you moved between stages. Do you have a sample URL i can look at to see what might be different from mine?
Do you also happen to know which version broke for you? i.e. which version were you on and which did you move to?
Also If you want to take a stab at fixing this, i'll be happy to help you contribute a fix :)
from opensearch-dashboards.
Our URLs do not look like that anymore, but more like this:
https://<host>/_dashboards/app/discover#/?_g=h@37c70d4&_a=h@1843b5e
so it does not reveal the filters etc. in the URL
When I then change the stage, all filters are gone.
In the rare occasions where I do have the other type of URL:
Example:
https://<host>/_dashboards/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!f,value:300000),time:(from:now-7d,to:now))&_a=(columns:!(service,message,stack_trace,request_path),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:f0b0f300-8812-11ec-b707-ef8e772da31b,key:service,negate:!f,params:(query:foo),type:phrase),query:(match_phrase:(service:foo)))),index:f0b0f300-8812-11ec-b707-ef8e772da31b,interval:auto,query:(language:lucene,query:''),sort:!(!('@timestamp',desc)))
Example after changing stage:
https://host/_dashboards/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!f,value:300000),time:(from:now-7d,to:now))&_a=h@50057b0
I can show the following behaviour:
After I change the stage, I see this:
I need to then choose the same index:
which would be ok, but the field name and value is also gone
from opensearch-dashboards.
Oh i see the issue. So the URL you provided is a shortened URL. The way the app makes these URL's is by storing the state information on the browser storage and using the key for that stored value in the URL. This way the URL is smaller. The downside to this approach for your use case is that when you switch domains, the same key does not exist for the new domain. So when the app loads and looks for the key, it is not able to find it for the new domain and does not load the state information correctly.
Basically, when the URL works as follows:
https://<host>/_dashboards/app/discover#/?_g=<GLOBAL_STATE>&_a=<APPLICATION_STATE>
GLOBAL_STATE
or APPLICATION_STATE
can be the raw state thats rison encoded or a key to the stored state value. if it is the raw state, this can be moved across domains, but if its the saved key, it cannot since the new domain does not have the key.
from opensearch-dashboards.
Oh i see the issue. So the URL you provided is a shortened URL. The way the app makes these URL's is by storing the state information on the browser storage and using the key for that stored value in the URL. This way the URL is smaller. The downside to this approach for your use case is that when you switch domains, the same key does not exist for the new domain. So when the app loads and looks for the key, it is not able to find it for the new domain and does not load the state information correctly.
Basically, when the URL works as follows:
https://<host>/_dashboards/app/discover#/?_g=<GLOBAL_STATE>&_a=<APPLICATION_STATE>
GLOBAL_STATE
orAPPLICATION_STATE
can be the raw state thats rison encoded or a key to the stored state value. if it is the raw state, this can be moved across domains, but if its the saved key, it cannot since the new domain does not have the key.
Ah that makes sense. But how can I keep Opensearch from shortening the URL? Is that a setting in my account? Or a setting in Opensearch itself?
from opensearch-dashboards.
Related Issues (20)
- [BUG] Dashboard URLs from Markdown visualizations are not loaded correctly HOT 4
- [Data Explorer][Discover 2.0] Index pattern without a default time field is wonky HOT 1
- [Data Explorer][Discover 2.0] Add data grid functionality like move column left/right
- [Data Explorer][Discover 2.0] Look into disabling "hide column" on the column that determines the order of HOT 1
- [Data Explorer][Discover 2.0] Full screen view is hiding under the nav HOT 2
- [Data Explorer][Discover 2.0] Append popout icon to oui link for view surrounding and single document
- [Data Explorer][Discover 2.0] Replace expand icon with inspect icon
- Index Management UI: Name Width and Row Count
- [AUTOCUT] Distribution Build Failed for OpenSearch-Dashboards-3.0.0 HOT 1
- [AUTOCUT] Integration Test failed for OpenSearch-Dashboards: 2.10.0 tar distribution HOT 1
- [AUTOCUT] Distribution Build Failed for OpenSearch-Dashboards-3.0.0 HOT 1
- [AUTOCUT] Distribution Build Failed for OpenSearch-Dashboards-3.0.0 HOT 1
- [AUTOCUT] Integration Test failed for OpenSearch-Dashboards: 2.10.0 tar distribution HOT 1
- [BUG] Data table vis applies wrong filter when sorted
- [Data Explorer][Discover 2.0] Surrouding docs table should disable sort functionality HOT 1
- [Data Explorer][Discover 2.0][BUG] Side navigation menu shows columns not in the selected index pattern HOT 1
- [Data Explorer][Discover 2.0] Go back history run into state mismatch when go back from single/surrounding doc HOT 1
- [Data Explorer][Discover][BUG] Fail to re-route to discover from single/surrounding doc due to lost history HOT 1
- [Data Explorer][Discover 2.0] Should disable sort if column is not sortable HOT 1
- [BUG] [Data Explorer] Saved search functionality buggy on data explorer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensearch-dashboards.