-
Notifications
You must be signed in to change notification settings - Fork 6
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
Dashboard -> Variables #16
Comments
Are you planning to develop the Query Variable ? Actually I'd like to dynamically, based on a query, build the list of possible values available for the filter instead of the custom variable. My use case we has a lot of different values and would be nice to count on it. Here is an example but for influx db https://youtu.be/6jYKn5ULJX0?t=368 |
I didn't read through the "Query Variables" in the first time when I implemented the plugin. But it looks like a power feature. Will plan it for future release. |
Do you have an ETA for it? Just to understand how I can overcome this need now. |
I anticipate the first iteration could happen in this week |
Added #17 to fix this Package: https://github.com/haohanyang/mongodb-datasource/actions/runs/11371029920 |
@haohanyang Let me know when it is available to test and I can do that! |
It's ready for test now. Necessary changes can be done in this PR |
Did you download the correct package?
https://github.com/haohanyang/mongodb-datasource/actions/runs/11371029920
…On Thu, Oct 17, 2024 at 2:57 PM Neilor Mendes ***@***.***> wrote:
am I missing anything here? I still can't see the textbox to write the
query after the plugin get upgraded.
image.png (view on web)
<https://github.com/user-attachments/assets/41a15ea4-169d-410a-baf2-14487bad8c04>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINVZ6TCC5SIL3ZOL54TZ36XZ5AVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZGQ3TKNZSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Let me test again @haohanyang |
@haohanyang I downloaded it again and didn't work. What I can check to make sure I'm using the right package?
|
I updated the mongo version to 0.1.1 so you can see it here https://github.com/haohanyang/mongodb-datasource/actions/runs/11401370940 |
@haohanyang Now I was able to write the query but seems there is something still not right. On the preview of values down below we are supposed to see the list of values coming from the query not the key name and those values will be used as variable values. |
I updated the text name so you can view the value: |
@haohanyang Gonna test it and let you know! |
@haohanyang can we reopen this? I'm just testing it know and seems it is not working as expected yet but you are close. Se below that it is returnin a object and not only a list of values It is expected only the values separated by comma. |
This is indeed an array, want you see is just a mongodb-datasource/src/utils.ts Line 119 in e01a63e
But the value is an array if it has more than 1 element mongodb-datasource/src/utils.ts Line 125 in e01a63e
|
Sorry to bother you again but take a look on what is happening. This is an example of the query I'm using
|
Do you want to expand this chipid variable and show 6339425, …, those all
chip ids in the dropdown?
…On Fri, Nov 29, 2024 at 3:07 PM Neilor Mendes ***@***.***> wrote:
@haohanyang <https://github.com/haohanyang> ,
Sorry to bother you again but take a look on what is happening.
image.png (view on web)
<https://github.com/user-attachments/assets/5d3adab9-2025-4b0a-97ff-a53f7e554fd0>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINUDG2IQL3FNVV4FXGT2DBYIZAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBXHA4DSNBUG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Exactly, each id should be a value in the drop-down
Em seg., 2 de dez. de 2024, 07:27, Haohan Yang ***@***.***>
escreveu:
… Do you want to expand this chipid variable and show 6339425, …, those all
chip ids in the dropdown?
On Fri, Nov 29, 2024 at 3:07 PM Neilor Mendes ***@***.***>
wrote:
> @haohanyang <https://github.com/haohanyang> ,
>
> Sorry to bother you again but take a look on what is happening.
>
> image.png (view on web)
> <
https://github.com/user-attachments/assets/5d3adab9-2025-4b0a-97ff-a53f7e554fd0>
>
> —
> Reply to this email directly, view it on GitHub
> <
#16 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AI7IINUDG2IQL3FNVV4FXGT2DBYIZAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBXHA4DSNBUG4>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQNLRPLGV5IYUEDBRMRYGOD2DQY27AVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJRGE2DIMBRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Makes sense. I will make a PR to fix this |
@neilor-mendes please check #28. |
Seems it is working properly now. Did you have a chance to test also with
the "Multiple Selection" checkbox checked?
Em qua., 4 de dez. de 2024, 20:35, Haohan Yang ***@***.***>
escreveu:
… @neilor-mendes <https://github.com/neilor-mendes> please check #28
<#28>.
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQNLRPNV3A34AL47F5KRPK32D6GVLAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYG43TEOBXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I was taking about this Multi-Value option instead
Em qua., 4 de dez. de 2024, 20:35, Haohan Yang ***@***.***>
escreveu:
… @neilor-mendes <https://github.com/neilor-mendes> please check #28
<#28>.
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQNLRPNV3A34AL47F5KRPK32D6GVLAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYG43TEOBXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks a lot! So, how can I download this fix?
Em qui., 5 de dez. de 2024, 13:57, Haohan Yang ***@***.***>
escreveu:
… Multi-value is supported
image.png (view on web)
<https://github.com/user-attachments/assets/7291dcf1-7a40-4ffb-9183-8acd4b1cce92>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQNLRPNB3D5EA2E2HL6L52D2ECAWXAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRQHEYTQOJSGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Download from the latest release v0.2.0
Neilor Mendes ***@***.***>于2024年12月7日 周六下午12:34写道:
… Thanks a lot! So, how can I download this fix?
Em qui., 5 de dez. de 2024, 13:57, Haohan Yang ***@***.***>
escreveu:
> Multi-value is supported
> image.png (view on web)
> <
https://github.com/user-attachments/assets/7291dcf1-7a40-4ffb-9183-8acd4b1cce92>
>
> —
> Reply to this email directly, view it on GitHub
> <
#16 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AQNLRPNB3D5EA2E2HL6L52D2ECAWXAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRQHEYTQOJSGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINSSNFWSRMETK2Z5BDD2ELMKRAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGA4DAMBUGA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
@haohanyang I'm still not sure what is wrong... The query is not returning any value, take a look below: This is how the query retuns at MongoDB Compass But here, after upgraded the plugin, it is empty, im running the same query: Version Upgraded: |
You should project “value”: “$chipid”
…On Mon, Dec 9, 2024 at 3:56 PM Neilor Mendes ***@***.***> wrote:
@haohanyang <https://github.com/haohanyang> I'm still not sure what is
wrong... The query is not returning any value, take a look below:
This is how the query retuns at MongoDB Compass
image.png (view on web)
<https://github.com/user-attachments/assets/00534fa8-eab0-4e1a-a23f-75dd2fa4b4f7>
But here, after upgraded the plugin, it is empty, im running the same
query:
image.png (view on web)
<https://github.com/user-attachments/assets/832f5217-597e-4652-ad5d-d41c0a8c7261>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINQ2PMUQHO4QURINQTT2EWVSDAVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRYGI2DCNBWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Did you click “Query” button?
…On Mon, Dec 9, 2024 at 4:18 PM Neilor Mendes ***@***.***> wrote:
Same...
MongoDB:
image.png (view on web)
<https://github.com/user-attachments/assets/a710d817-6dc7-4e0e-b999-bf21296b3c37>
Grafana:
image.png (view on web)
<https://github.com/user-attachments/assets/84464709-87f7-4aa9-bfec-a3ac191fd844>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINR7VLFAUAJQTXBJS3L2EWYD3AVCNFSM6AAAAABP5VT47OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRYGMYTCMRQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@haohanyang is it also possible to add the feature to support dashboard variables? I tried it but seems the plugins is missing some components to make it work.
Variables is very useful to create more interactive and dynamic dashboards
Found this link, maybe it can help: https://grafana.com/developers/plugin-tools/how-to-guides/data-source-plugins/add-support-for-variables
The text was updated successfully, but these errors were encountered: