checkmk icon indicating copy to clipboard operation
checkmk copied to clipboard

Implement service state filter for quicksearch widget

Open moschlar opened this issue 2 years ago • 3 comments

General information

I use the quicksearch sidebar widget a lot and I often find myself wanting to see all services matching a description that are not OK - so I thought it would be nice to have an additional filter so that I can query for e.g. s:Certificate st:1 st:2.

Proposed changes

I implemented a ServiceStateMatchPlugin class to accomplish this - it works quite well now!

Open tasks/questions:

  • What is the first element of the return value of get_matches supposed to be?
  • How to correctly display the "preselected" quicksearch filters in the graphical filter selection dialog?

moschlar avatar Mar 31 '23 08:03 moschlar

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Apr 28 '23 06:04 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

moschlar avatar Apr 28 '23 06:04 moschlar

@Checkmk Ping?

moschlar avatar Aug 07 '23 08:08 moschlar

Dear Checkmk Contributor! Unfortunately, we had to re-write our git-repo history, rendering your PR auto-closed. We will therefore rebase your PR onto the current master and reopen it again. Sorry for the inconvenience.

TimotheusBachinger avatar Jun 19 '24 08:06 TimotheusBachinger

I have just rebased it myself already!

moschlar avatar Jun 19 '24 08:06 moschlar

Hi @moschlar thanks for rebasing. However it still seems that your PR has not an up-to-date state (we still see those 10k commits in the header). Maybe you need to update also your PR?

TimotheusBachinger avatar Jun 19 '24 09:06 TimotheusBachinger

I think I can't do that because it's closed...

But I could just start a new one?

moschlar avatar Jun 19 '24 09:06 moschlar

Starting a new one would be an option but we're facing the issue with 52 PRs and all the comments etc would be lost... I just found this hint, can you try that on your end? https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

TimotheusBachinger avatar Jun 19 '24 09:06 TimotheusBachinger

I tried, but I don't think I have the permission to re-open the PR!

moschlar avatar Jun 19 '24 09:06 moschlar

Dear Contributor. Unfortunately, we learned that re-opening a PR which was force-rebased, is not possible (see https://github.com/isaacs/github/issues/361). Therefore we kindly ask you to create a new PR for your change. We apologize for the circumstances and will implement technical measures to prevent such incidents in the future.

TimotheusBachinger avatar Jun 19 '24 13:06 TimotheusBachinger