codeforamerica / glossary-bot

A Glossary bot for Slack
MIT License
116 stars 45 forks source link

feature request: list-all action #25

Closed mathowie closed 9 years ago

mathowie commented 9 years ago

I'd love it if there was a /gloss list-all feature that simply returned a comma delimited list of all defined words within glossary-bot.

mathowie commented 9 years ago

This would just be a tweak of the "learnings" command, just remove the date limit to get all records and order alphabetically.

tmaybe commented 9 years ago

hmm...there's an undocumented random modifier to the learnings command (i.e. /gloss learnings random gets you 12 random selections from the database); it'd be easy to add an all as well.

tmaybe commented 9 years ago

This is now available as of 6ec9f58e4e87dd3e31dada02afc35a388a65f330

You can now do the following:

And you can combine parameters in ways that make sense.

You may have problems upgrading because I added a database migration earlier this week. Follow the instructions here:

https://github.com/codeforamerica/glossary-bot#upgrade-on-heroku

or get in touch if you have any problems.

tmaybe commented 9 years ago

Whoops, I missed that you asked for alphabetical sort. That's now in as of 600be51cc093d633df2d6d224bef80ae1248884b

Use it like so: /gloss learnings alpha So /gloss learnings all alpha will get you all records ordered alphabetically.

mathowie commented 9 years ago

Thanks @tmaybe I got this all working for my team!

migurski commented 9 years ago

:fist: bump