-
Notifications
You must be signed in to change notification settings - Fork 35
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
[BUG] ignore_dashboard_filters is not giving any dashboard #232
Comments
That's intended behavior. You've set watched is supposed to be the ONLY folders GDG will operate on, unless you want to ignore all filters by setting the ignore_dashboard_filters. Also, if you need to back up by a given tag, It may be doable to add that feature, but right now the tag filtering only applies to listing.
|
So, to use |
Yes, tags would be an additional filter on the folders. So in folder A, B, C we have 7 dashboards and additionally you want to filter out the tags listed. (ie intersection of the two filters ) leaving let's say 3 dashboard that have the tag specified. If you want to act on a tag across all dashboards, then setting Also, if you want to add a ticket to support upload by tag, I think that's a fair ask, if you have a use case for it. You can probably get around it with some shell scripting mixing the listing and -d if you need this urgently but adding support for tag filter on upload would be best. |
I can submit a ticket of course. Just to clarify, we are talking about two features:
Am I right? |
Yes, the --tags in general isn't really supported properly. So right now the only somewhat supported pattern is on listing. I don't think the ignore_dashboard_filters flag matters in this case, it's just a matter of respecting the --tags for dashboards. When passed to any operations, which should include download/clear/upload/list it should maintain the behavior. If you set the ignore_dashboard_filters to true or false it should keep on working as expected. |
Also, I have noticed you're using "1" for booleans, I haven't really tested that behavior, if that works than that's great but those fields are intended to be booleans. Also, your OrgId needs to be a valid value, 0 isn't. You'll need to set it to 1 (default Org) or whatever Org you're operating on. |
Opened up #236 to address this request, closing this ticket. |
@paulojmdias merged a fix for this request. WIll be part of the next release. |
Describe the bug
When we try to set
ignore_dashboard_filters: false
the gdg is not finding any dashboard. When we setignore_dashboard_filters: true
, he founds everything.Config
To Reproduce
Expected behavior
Even with
ignore_dashboard_filters: false
the gdg should search on all folders whenwatched
is empty.Desktop (please complete the following information):
Additional context
Let me explain better our end goal:
Explaining better the upload process:
dashboardA
has the tagsprd
andqa
, this dashboard should be uploaded in these two environmentsdashboardB
has the tagprd
, this dashboard should be deployed only inprd
context, this is possible to be done?The text was updated successfully, but these errors were encountered: