Closed Bug 787791 Opened 12 years ago Closed 11 years ago

[Events] When in 'current and future' mode the same events get loaded twice as user scrolls down

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: williamq, Assigned: giorgos)

References

Details

(Whiteboard: [kb=1330321] )

Attachments

(2 files)

When scrolling down events and reaching the bottom, new events are added but they are no longer in chronological order (see attachment).
True, I 'll work on a patch asap and push to prod.
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Group: mozilla-reps-admins
Summary: Events not in chronological order when more events are added after scrolling down → [Events] When in 'current and future' mode the same events get loaded twice as user scrolls down
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Looks ok on stague.
Status: RESOLVED → VERIFIED
Attached image Selection_011.png
Screen of events.
I still see the duplicates issue is not yet resolved.
Galaxy, I can't reproduce that. Can you please provide a url?
Flags: needinfo?(iGalaxyK)
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Hi Giorgos, I was just trying to search reps from India in list view and I see the same list is being populated thrice as I scroll down the page. https://reps.mozilla.org/people/#/view/list/search/india/
I'm looking at this right now.
Whiteboard: [kb=1330321]
OS: Mac OS X → All
Hardware: x86 → All
Version: 0.3.5 - Amanda → unspecified
Commits pushed to master at https://github.com/mozilla/remo https://github.com/mozilla/remo/commit/d06d16ef5d84583bf673dfca5851b199747435e6 [fix bug 787791] Stop making API calls when full list gets loaded. Tastypie upgrade (8757ea5) changed the API behavior when it comes to 'limit' meta data returned to API call. It's now limited to 1000, while previously respected any limit given. We based parts of our logic on the limit returned and that caused Events and Reps to be loaded multiple times by consecutive API calls. We fix that by watching the meta.next variable which always tells the truth about the existence of more data, independently of the value of the limit. https://github.com/mozilla/remo/commit/aadbe6fc942ef854caed1ce20cc26b37d32d8731 Merge pull request #699 from glogiotatidis/787791 [fix bug 787791] Stop making API calls when full list gets loaded.
Status: REOPENED → RESOLVED
Closed: 12 years ago11 years ago
Resolution: --- → FIXED
Version: unspecified → next
Tested it locally and it worked. On stage we don't have sufficient entries to verify that. Using a breakpoint, it seems that the if condition changed works as expected.
Status: RESOLVED → VERIFIED
Version: next → 429
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: