Opened 3 years ago

Closed 3 years ago

#2236 closed enhancement (fixed)

Display notification if loading a list page takes a long time

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.18
Component: web Version:
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

The new features with parent/child columns that has been implemented in #2202, #2218 and #2234 may cause the query for loading the list to take longer time than usual. This is more likely the further apart the parent/child items are (for example, adding a biosource column to the raw bioassays table). There is a caching mechanism in place but the initial query may still take several seconds (or even a minute).

It would be nice to display some feedback to the user while the list is loading. I am thinking that this could be hooked up to the Form.submit() method which starts a timer. After about 1 second it should display a message like "Please wait... the list is loading!". If it takes less than a second the timer will of course not be triggered since the page has been replaced with the new list.

Change History (5)

comment:1 by Nicklas Nordborg, 3 years ago

Description: modified (diff)

comment:2 by Nicklas Nordborg, 3 years ago

In 7894:

References #2236: Display notification if loading a list page takes a long time

Added a feature in the Forms.submit() method that starts a timer that will trigger a "Please wait..." notification after 1 second. The message will change a bit if it takes a very long time.

There is also a hook in the menu.

comment:3 by Nicklas Nordborg, 3 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newaccepted

comment:4 by Nicklas Nordborg, 3 years ago

In 7906:

References #2236: Display notification if loading a list page takes a long time

Don't disable the form while showing the notification. The user may want interact with items in the list.

comment:5 by Nicklas Nordborg, 3 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.