drewminns / slack

DEPRECATED - V3 is here https://github.com/drewminns/slackdeletron
http://www.slackdeletron.com/
107 stars 31 forks source link

Only returns 100 files at a time #10

Open ianhouser opened 8 years ago

ianhouser commented 8 years ago

If I delete 5, it will show that I have 95 files until I refresh, then I "Have 100 files" again. My team has a total of 1200 files and I'd like to go to the end of the list and work my way to the newer files.

ianhouser commented 8 years ago

If no argument is passed 100 is default. So by adding

count: 1500

to the request params I got it to show more results on my own instance. See "Count" in the files.list documentation. Ideally there'd be an option to select how many results to return.

haroldkyle commented 8 years ago

For future reference, the count argument goes in the data of the fetchFiles function in /assets/scripts/actions/index.js

After playing with this, I was unsuccessful getting count responses higher than 1000--these requests defaulted to 100, In other words, adjusting the count doesn't help with 1000+ images. A better approach would be to paginate the responses. The server response and the API requests allow for viewing as pages, but pagination controls would need to be incorporated into the interface.

JarrettR commented 7 years ago

Looks like @emilyytlin has solved this and issue #9 as well: https://github.com/emilyytlin/slack/tree/d

Looks awesome, would be great if she submitted a PR :confetti_ball:

linbarbell commented 7 years ago

Hi I made a PR. @drewminns please respawn.

budda commented 7 years ago

Ah, glad somebody else has already discovered and fixed this issue! Didn't realise i had to keep going back and clicking "Get Files" again in order to clear out the months of images.