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

Traffic Portal v1 - Quick Search does not work for second/layered profiles #7052

Closed
tcfdev opened this issue Aug 31, 2022 · 2 comments · Fixed by #7074
Closed

Traffic Portal v1 - Quick Search does not work for second/layered profiles #7052

tcfdev opened this issue Aug 31, 2022 · 2 comments · Fixed by #7074
Assignees
Labels
bug something isn't working as intended low difficulty the estimated level of effort to resolve this issue is low low impact affects only a small portion of a CDN, and cannot itself break one Traffic Portal v1 related to Traffic Portal version 1

Comments

@tcfdev
Copy link
Collaborator

tcfdev commented Aug 31, 2022

This Bug Report affects these Traffic Control components:

  • Traffic Portal

Current behavior:

Open the server table in Traffic Portal. At the top of the page is the "Quick search" input field. The quick search does not filter / show servers if the input is the second/layered profile.

Expected behavior:

If a server were to have "PRIMARY_PROFILE" assigned as the first profile, it will be filtered and show correctly, as expected. Additionally if you were to create and add a "SECONDARY_PROFILE" to the same server(s) the Quick search would display said server(s).

Steps to reproduce:

Create a server (or use existing). Assign a profile ("PRIMARY_PROFILE" for example). This should be the first and only profile assigned to the server. You can verify that Quick search on the Configure->Servers page works for said profile.

Then create and/or add another profile (say "SECONDARY_PROFILE"). Then add this profile to the same server such that it has both PRIMARY and SECONDARY profiles assigned. Go to the Configure->Servers page and attempt to Quick Search on "SECONDARY_PROFILE" and the list will be empty

@tcfdev tcfdev added the bug something isn't working as intended label Aug 31, 2022
@zrhoffman zrhoffman added the Traffic Portal v1 related to Traffic Portal version 1 label Aug 31, 2022
@ocket8888 ocket8888 added low impact affects only a small portion of a CDN, and cannot itself break one low difficulty the estimated level of effort to resolve this issue is low labels Aug 31, 2022
@ocket8888
Copy link
Contributor

The simplest fix would be to update the display value to include all Profile names, probably separated by , . Then a filter on the table would check all of the profiles because the cell value is composed of all profiles.

In TPv2 we could make a custom filter for Profiles such that you can include and exclude specific names even if they are substrings of one another. For example, if using the solution above you filter for "Profile contains 'foo' and doesn't contain 'bar'" you would get as a match servers with profile 'foo' but not servers with profile 'foobar', whereas I really only meant to exclude the profile name that is exactly 'bar'.

@rimashah25
Copy link
Contributor

I'll resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended low difficulty the estimated level of effort to resolve this issue is low low impact affects only a small portion of a CDN, and cannot itself break one Traffic Portal v1 related to Traffic Portal version 1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants