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

feat(url Query): Added an optional URL query parameter #116

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

colin-roy-ehri
Copy link
Contributor

The new url query parameter queryPrompt will automatically enter the query and execute it. This allows other apps to call this app with a pre-defined initial query.
For example, you can make the Dashboard Summary app have follow-up queries which link to the Explore Assistant using this queryPrompt parameter.

@colin-roy-ehri colin-roy-ehri requested a review from a team as a code owner October 11, 2024 00:15
@ryan-gould-accenture
Copy link

Hi Colin, this along with your other PRs look really interesting I would love to implement something similar. I understand the code in your commit but would you mind explaining a bit on how you integrated this with the dashboard summary app? Thanks.

@colin-roy-ehri
Copy link
Contributor Author

colin-roy-ehri commented Oct 15, 2024 via email

Copy link
Collaborator

@LukaFontanilla LukaFontanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting! Am I correct in that, this makes the assumption that the default LookML Model and Explore set as the source for the Explore Assistant will be used?

Copying the following from another file. Given that Explore Assistant now supports and could have multiple Model & Explore combinations to choose from, I think it would be valuable to have 2 other queryParams in the url: one that sets the model and the other that sets the explore. Then we can update the state using something like this:

// set the explore if it is not set dispatch( updateCurrentThread({ exploreId: <New Explore ID>, modelName: <Model URL Param>, exploreKey: <Explore URL Param> }), )

@colin-roy-ehri
Copy link
Contributor Author

colin-roy-ehri commented Oct 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants