How to add query parameters to Data Explorer?

AI-generated summary

A feature request was made by Nacho_Caballero to allow query parameters in Data Explorer reports, enabling default parameters to be filled in when sharing a URL. pfaffman initially mentioned that the feature exists, but later clarified that it is actually not implemented.

Nacho_Caballero attempted to use query parameters with the syntax /reports/100?username=myName and /admin/plugins/explorer?id=100&username=myName, but it did not populate the text fields as expected. pfaffman acknowledged the misunderstanding and confirmed that the feature is indeed not available, which is why it has a pr-welcome tag.

As for implementing the feature, pfaffman estimated it would take around 2 to 4 hours of work with proper specifications.

I recently suggested it would be great to allow query parameters in reports. That way, I could share a Data Explorer URL with a default parameter already filled in. Something like this:

Would anyone be interested in implementing this feature?

If not, does anyone have any pointers that could help me implement it myself?

That feature exists. There should be some examples of your search.

Thanks for replying, Jay.

@sam added pr-welcome tag, so I thought it didn’t exist.

What’s the syntax? I’ve tried /reports/100?username=myName and it doesn’t populate the username text field with myName.

Sorry, I’m conflating reports with the data explorer plugin. You can do that with the data explorer.

I’ve tried /admin/plugins/explorer?id=100&username=myName and that doesn’t fill the textbox either.

Am I missing something?

Oh. Sorry. Now I see. That’s the part that I missed. You know how to write the query and use the parameters, but want to change the defaults with a url. And that’s why it’s pr welcome.

Sorry about that.

No problem. I should have probably explained it better. :grin:

How difficult do you think it would be to implement?

No. I didn’t read. You were clear.

I do not know how to do it. But since your asked, My wild guess is that it’s 2 to 4 hours work with proper specs.