grafana-toolbox / grafana-wtf

Grep through all Grafana entities in the spirit of git-wtf.
GNU Affero General Public License v3.0
152 stars 15 forks source link

Allow replace command to have dry run option #47

Closed TaylorMutch closed 1 year ago

TaylorMutch commented 1 year ago

It would be excellent to simulate a dry run of a replacement when you want to perform a replacement across a large number of dashboards (like migrating datasource IDs)

amotl commented 1 year ago

Dear Taylor,

thank you for writing in. I absolutely agree with your proposal. Would you have the capacity to submit a corresponding patch?

With kind regards, Andreas.

amotl commented 1 year ago

It looks like it was easy to add, see GH-54.

TaylorMutch commented 1 year ago

So fast! I would have contributed but you seem to have done it already 👏

amotl commented 1 year ago

Hi again. Can you test it on behalf of the main branch before I am running a new release [^1]?

[^1]: I will probably modernize some dependencies beforehand.

amotl commented 1 year ago

I've just released grafana-wtf 0.14.0, which includes the corresponding improvement. Let me know if that works for you.

TaylorMutch commented 1 year ago

Looking now - works like a charm! Case closed 🤛