Skip to content
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

Feat: Provide filtering capabilities for scalers #1400

Merged
merged 8 commits into from
Jun 14, 2024

Conversation

thisisobate
Copy link
Contributor

@thisisobate thisisobate commented May 28, 2024

Todo

  • provide filter button on mobile
  • Annotate existing scalers with metadata for easier filtering

Relates to #412

@thisisobate thisisobate requested a review from a team as a code owner May 28, 2024 15:30
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

While you are waiting, make sure to:

  • Add your contribution to all applicable KEDA versions
  • GitHub checks are passing
  • Is the DCO check failing? Here is how you can fix DCO issues

Learn more about:

Copy link

netlify bot commented May 28, 2024

Deploy Preview for keda ready!

Name Link
🔨 Latest commit de27239
🔍 Latest deploy log https://app.netlify.com/sites/keda/deploys/666afc63c21b8d00085884c9
😎 Deploy Preview https://deploy-preview-1400--keda.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@thisisobate
Copy link
Contributor Author

cc: @tomkerkhove

@tomkerkhove
Copy link
Member

I was waiting with reviewing because there was a TODO :) Doing that now!

@tomkerkhove
Copy link
Member

This takes up a big chunck of the scaler area:
image

Can we move the filter on top with a drop down or so? Any thoughts @kedacore/keda-maintainers?

@thisisobate
Copy link
Contributor Author

This takes up a big chunck of the scaler area

This is because bulma spacing selectors automatically allocate that much space for columns. I can try using vanilla css instead to reduce the spacing so the scaler cards can fit comfortably.

@thisisobate
Copy link
Contributor Author

@tomkerkhove any updates on this?

@tomkerkhove
Copy link
Member

No not for now, but I don't think this should block this PR, does it?

If you share how I can add new categories seperately then that is OK for me.

@tomkerkhove
Copy link
Member

Btw, can we align the external vs built-in filter in to this new model please? Now we have 2 flavors

@thisisobate
Copy link
Contributor Author

No not for now, but I don't think this should block this PR, does it?

I agree. It doesn't block it. In that case, I think we should merge and close this issue.

@tomkerkhove
Copy link
Member

Btw, can we align the external vs built-in filter in to this new model please? Now we have 2 flavors

We need to do this first though

@thisisobate
Copy link
Contributor Author

Btw, can we align the external vs built-in filter in to this new model please? Now we have 2 flavors

What exactly do you mean? The "maintainer" filter option already supports the built-in and external scalers. E.g, to filter the maintainer "JensWalter", you need to switch to the external tab.

If you are saying we should add a new "built-in scaler" and "external scaler" filter options in the new filter pane, then I don't think that would work. Moreover, I don't think it's necessary given we already designed the ux and data architecture to work for the existing UI structure.

@tomkerkhove
Copy link
Member

If you are saying we should add a new "built-in scaler" and "external scaler" filter options in the new filter pane, then I don't think that would work. Moreover, I don't think it's necessary given we already designed the ux and data architecture to work for the existing UI structure.

I tend to disagree though, we currently have 2 UX for filtering scalers which is confusing. Certainly if we'll start adding more filters

@thisisobate
Copy link
Contributor Author

we currently have 2 UX for filtering scalers

You have a point. If we must go the route you suggest, then it would warrant a complete overhaul of the data architecture which is an additional workload and frankly, it's slightly out of scope.

I will have to discuss with @nate-double-u internally and see what we can do about this. In the meantime, I would advise you open a new issue for this request.

Thank you!

@tomkerkhove
Copy link
Member

Let's keep this open, it's better to keep the current experience rather than introducing two different UXes.

Why would this alignment cause a complete data architecture overhaul?

@thisisobate
Copy link
Contributor Author

thisisobate commented Jun 5, 2024 via email

@thisisobate
Copy link
Contributor Author

@tomkerkhove PTAL

@tomkerkhove
Copy link
Member

A lot better, thank you!

image

One last ask: Can we change the order so that we show, "Type", "Category", "Maintainer" please?
Any other remarks @kedacore/keda-maintainers?

Signed-off-by: thisisobate <[email protected]>
@thisisobate
Copy link
Contributor Author

@tomkerkhove I think we're good to go 😀

@tomkerkhove tomkerkhove merged commit b34cf03 into kedacore:main Jun 14, 2024
7 of 8 checks passed
@tomkerkhove
Copy link
Member

Thank you!

rxg8255 pushed a commit to rxg8255/keda-docs that referenced this pull request Jun 27, 2024
* Feat: Provide filtering capabilities for scalers

Signed-off-by: thisisobate <[email protected]>

* chore: provide filter button on mobile

Signed-off-by: thisisobate <[email protected]>

* chore: reduce spacing between filter and scaler cards

Signed-off-by: thisisobate <[email protected]>

* chore: improve filter logic to use new model

Signed-off-by: thisisobate <[email protected]>

* chore: reorder filter options

Signed-off-by: thisisobate <[email protected]>

* chore: nit fix

Signed-off-by: thisisobate <[email protected]>

---------

Signed-off-by: thisisobate <[email protected]>
Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Ranjith Gopal <[email protected]>
shubhusion pushed a commit to shubhusion/keda-docs that referenced this pull request Jun 28, 2024
* Feat: Provide filtering capabilities for scalers

Signed-off-by: thisisobate <[email protected]>

* chore: provide filter button on mobile

Signed-off-by: thisisobate <[email protected]>

* chore: reduce spacing between filter and scaler cards

Signed-off-by: thisisobate <[email protected]>

* chore: improve filter logic to use new model

Signed-off-by: thisisobate <[email protected]>

* chore: reorder filter options

Signed-off-by: thisisobate <[email protected]>

* chore: nit fix

Signed-off-by: thisisobate <[email protected]>

---------

Signed-off-by: thisisobate <[email protected]>
Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: shubhusion <[email protected]>
SpiritZhou pushed a commit to SpiritZhou/keda-docs that referenced this pull request Jul 11, 2024
* Feat: Provide filtering capabilities for scalers

Signed-off-by: thisisobate <[email protected]>

* chore: provide filter button on mobile

Signed-off-by: thisisobate <[email protected]>

* chore: reduce spacing between filter and scaler cards

Signed-off-by: thisisobate <[email protected]>

* chore: improve filter logic to use new model

Signed-off-by: thisisobate <[email protected]>

* chore: reorder filter options

Signed-off-by: thisisobate <[email protected]>

* chore: nit fix

Signed-off-by: thisisobate <[email protected]>

---------

Signed-off-by: thisisobate <[email protected]>
Co-authored-by: Tom Kerkhove <[email protected]>
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.

2 participants