Bug 424691

Summary: query screen slow down due to ajax
Product: [Community] Bugzilla Reporter: Kevin Baker <kbaker>
Component: Query/Bug ListAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 3.2CC: dkl, ineilsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-25 22:22:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to disable use of ajax on first page load if no form data present none

Description Kevin Baker 2007-12-14 07:38:52 UTC
Description of problem:

When you first click on the 
https://bugzilla.redhat.com/query.cgi?format=simple page the page locks up 
while the ajax calls to load Versions/Components/Milstones complete. Even 
though there is no product intially selected. This is painful when I want to 
go to the simple page but then get to the Advanced page asap. 

I think it would be better for the user experience, and less stress full on 
system resources if it didn't call ajax to load the 
Version/Components/Milestones until a product is selected. After all, for 
which product is it loading these fields when no product is selected on the 
initial view? ditto for the advanced screen. So initially all the user sees is 
the product list to choose from.

Comment 1 David Lawrence 2007-12-14 15:20:10 UTC
Currently this done at first load so that if any form values are passed in they
will be automatically selected such as product/component/version and that the
lists will look correct. This is critical for things like editing stored
queries, etc.

A fix would be to define a javascript variable that is true/false depending on
whether any form data was passed to the cgi. Then also had another var called 
firstrun that is set to 1 when the page first loads and then set to 0 once the
products have been updated once.

Then in the jscript code do check:

if ( formdata == 1 && firstrun == 0 ) {
    update select lists 
    set formdate = 0
    set firstrun = 0
} else {
    do nothing
}

Comment 2 David Lawrence 2007-12-14 15:21:00 UTC
ooops should be:

if ( formdata == 1 || firstrun == 0 ) {
    update select lists 
    set formdata = 0
    set firstrun = 0
} else {
    do nothing
}



Comment 3 David Lawrence 2007-12-14 17:56:52 UTC
Created attachment 289311 [details]
Patch to disable use of ajax on first page load if no form data present

Comment 4 David Lawrence 2008-09-16 16:55:40 UTC
Red Hat Bugzilla is now using version 3.2 of the Bugzilla codebase and therefore this bug will need to be re-verified against the new release. With the updated code this bug may no longer be relevant or may have been fixed in the new code.
Updating bug version to 3.2.

Comment 5 David Lawrence 2008-11-25 22:22:42 UTC
This is still issue even with the new revised ajax code.

*** This bug has been marked as a duplicate of bug 457843 ***