Skip to content

Conversation

@amotl
Copy link
Contributor

@amotl amotl commented Feb 6, 2022

Hi there,

coming from the original patch m0nhawk/grafana_api#85, this fixes m0nhawk/grafana_api#82. Users reported the original flaw through grafana-toolbox/grafana-wtf#5.

When the folderId is not available within the dashboard payload, populate it from the nested meta object, if given. On the other hand, if it is given within the dashboard payload, it should take precedence.

With kind regards,
Andreas.

/cc @pierluigilenoci, @JackNelson

When the "folderId" is not available within the dashboard payload,
populate it from the nested "meta" object, if given.

On the other hand, if it *is* given within the dashboard payload,
it should take precedence.
@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2022

Codecov Report

Merging #7 (39293f0) into main (1052363) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   87.48%   87.55%   +0.07%     
==========================================
  Files          17       17              
  Lines         655      659       +4     
==========================================
+ Hits          573      577       +4     
  Misses         82       82              
Impacted Files Coverage Δ
grafana_client/elements/dashboard.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed1ffb...39293f0. Read the comment docs.

@pierluigilenoci
Copy link

Thanks @amotl 🚀

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.

Updating dashboards will cause them to move to the "General" folder

4 participants