Open Bug 1564833 Opened 3 months ago Updated 3 months ago

Switch to server side search


(Tree Management :: Perfherder, defect, P3)



(Not tracked)


(Reporter: alexandrui, Unassigned, Mentored)



(1 file)

When searching for a specific word in Alerts page of Perfherder, it doesn't collect the results down to one page if they fit. Video with steps attached.

This bug is making Perfsheriffs' process of identifying regressions more difficult as it requires some additional clicks.

Assignee: nobody → alexandru.ionescu

Sarah, I'm waiting for further guidance on this. Thanks!

Flags: needinfo?(sclements)

And because this is an improving perfherder task, I would also pagination at the top of the page, not only bottom.

(In reply to Alexandru Ionescu :alexandrui from comment #2)

And because this is an improving perfherder task, I would also pagination at the top of the page, not only bottom.

It'll be easier to review if you can keep the two tasks in separate commits and possibly two separate pr's.

Have you gotten yourself set up with docker? If not, you'll need to get that set up to work on the backend:

I suggest filing a bug in the Treeherder component to get access to the Treeherder-production-replica RDS instance (read only) so that you will have ample data for testing out API changes locally.

We use React/Javascript in the UI and Django/python in the backend so you'll need to have familiarity with both (for Django, understanding the queryset API should be sufficient). We use django-rest-framework with Django to structure our APIs.

I think what you'll what to do is look into passing a query parameter with the search term from the search input to the API that is called to fetch data, so the top 10 results will be returned based on that filter (we want to keep the existing pagination since new data is called when a user navigates to a new page) . You'll also probably need to change the search input component or create a new one that is used only for the alerts view so that it fetches data, not just update the state.

This is where you'll want to start to familiarize yourself with the pagination code:

This is where the search input component is used:

Adding pagination to the top would probably be the easiest to start with. :)

Flags: needinfo?(sclements)

Thank you, Sarah. Looks like a quite big task. A good occasion to get familiarized with js stuff. I'll file another bug to add pagination to the top.
This will not be top priority, but I'll work on it between the priority tasks.
Dave, you ok with this?

Flags: needinfo?(dave.hunt)

We already have a fair amount of Perfherder work planned for Q3, so I'm curious to know if this should be higher priority than the dependencies on bug 1563748.

Flags: needinfo?(dave.hunt)

Probably this depends on the working style of the sheriff. I'm still in the ramp-up phase of learning perfherder, so I use fairly often the search function. But I think this function is useful anytime you want to search through all the alerts of certain type (raptor, awsy, etc).
It's true that requires quite high effort from someone outside of the perfherder development team. Probably should be set for next/future quarter or so.
Marian, bebe?

Flags: needinfo?(marian.raiciof)
Flags: needinfo?(fstrugariu)

Sarah, I thrown a closer eye on your guidance above and I think this is a pretty complicated task for who's not actively working on that. Also it includes opening a bug for permissions. As this is not on the priority list for me&my team, probably I should wait until someone more suitable for this will take care. I appreciate that you made time to write that guidance steps.
Thanks for fixing the lack of persistence of the search term. It is really helpful for at least my work on sheriffing.
Should I assign this to you or leave it unassigned?

Flags: needinfo?(sclements)

I don't think I'll have time to work on it so you can mark it as a P3 and leave it unassigned (we're aiming to only mark something as P1 or P2 if it's assigned to someone).

Flags: needinfo?(sclements)
Flags: needinfo?(marian.raiciof)
Assignee: alexandru.ionescu → nobody
Priority: P2 → P3

This would be useful for sure. But as it's not in the current priority list I agree with the P3

Flags: needinfo?(fstrugariu)
You need to log in before you can comment on or make changes to this bug.