TracksApp / tracks

Tracks is a GTD™ web application, built with Ruby on Rails
https://www.getontracks.org/
GNU General Public License v2.0
1.18k stars 537 forks source link

Task enter screen: Don't load contexts via ajax (autocomplete) #1188

Open dnrce opened 10 years ago

dnrce commented 10 years ago

Migrated from the original issue at https://www.assembla.com/spaces/tracks-tickets/tickets/1188

The context field on task enter screen is set to autocomplete via ajax. This request takes long time and slows down task entering. I suggest to preload them (don't do a remote autocomplete), because users normally won't have a huge load of contexts. This could also be done for projects.

I can implement this, if there aren't any objections.

Some notes for the implementer: List has to be extended if a new context is created.

Originally reported by u2ix on August 8, 2011 at 13:06:25 (+0000)

dnrce commented 10 years ago

On August 8, 2011 at 08:38:04 (+0000), lrbalt commented:

it's tricky to get this right. We used to have this in tracks, but managing the preloaded lists has corner cases. I'll accept a patch...

dnrce commented 10 years ago

On August 8, 2011 at 11:08:00 (+0000), u2ix commented:

But I think it will worth the effort, because...

dnrce commented 10 years ago

On October 10, 2011 at 18:26:08 (+0000), popsch commented:

I would welcome this feature, because it speeds up data entry.

A clear problem though is when people work with multiple tabs where they create a new context in one tab and expect it to be then instantaneously present in the autocomplete in the other tab (without another reload).

dnrce commented 10 years ago

On October 10, 2011 at 22:05:05 (+0000), u2ix commented:

I begun with this ticket here: https://github.com/u2ix/tracks/tree/feature-autocomplete ([[url:https://github.com/u2ix/tracks/compare/TracksApp:master...feature-autocomplete|diff]])

@popsch I could add an update to TodoController#check_deferred which is called via ajax periodically. But this won't be 'instantaneously'. Do you think this is a big problem?