Commit Graph

201 Commits

Author SHA1 Message Date
Brian S. Stephan a4d51b1f2c remove choices app, everything is in facts now
closes bss/dr.botzo#15
2017-02-11 09:37:03 -06:00
Brian S. Stephan fb04732ec3 facts: recreate the choices experience in facts
recreates the choices view in facts, allowing for display of any fact
category in the system, and providing a random item from it

bss/dr.botzo#15
2017-02-11 09:34:15 -06:00
Brian S. Stephan 8f8af4e6b4 package updates and resulting compat stuff
changes to urls.py in the django views, trivial __init__ change for the
irc library stuff

bss/dr.botzo#16
2017-02-06 22:58:51 -06:00
Brian S. Stephan cd23f062a9 collapsing all of dr_botzo one directory 2017-02-04 11:51:22 -06:00
Brian S. Stephan 38d14bb0d2 Merge branch 'random-from-set' into 'master'
add !random command to dice module

See merge request !11
2017-02-04 10:43:49 -06:00
Brian S. Stephan 5e033d164a Merge branch 'gitlab' into 'master'
Gitlab code review support

See merge request !12
2017-02-04 10:40:48 -06:00
Brian S. Stephan be0fafc897 add !random command to dice module
chooses one random element from the provided list of choices. pretty
basic right now
2017-02-04 10:03:47 -06:00
Brian S. Stephan 693f296eba choices: trivial comment correction 2017-02-04 08:25:02 -06:00
Brian S. Stephan 5d0e7aeb9f choices: simple choose randomly from choices thing
similar to a hybrid of the random facts (but defined more simply) and
the dice rolling (but not picking from dice), this allows for definition
of "choice sets" (only in the admin for the moment) and then getting a
random pull from that set (only in the web interface for the moment)
2016-12-04 11:43:47 -06:00
Brian S. Stephan ed66246f14 markov: don't append punctuation to nothingness
this is an attempt to fix bss/dr.botzo#10
2016-12-04 10:51:14 -06:00
Brian S. Stephan 6e21416791 markov: import generic text files 2016-11-16 12:10:42 -06:00
Brian S. Stephan a944bf70fe gitlab: reassign MR to reviewer when resetting 2016-11-11 09:23:14 -06:00
Brian S. Stephan b248a47658 gitlab: evenly distribute MRs among reviewers
bss/dr.botzo#8
2016-09-08 17:36:43 -05:00
Brian S. Stephan 2761e2315e gitlab: don't reassign MR if assigned to author 2016-09-08 17:23:03 -05:00
Brian S. Stephan 0b332f79c9 gitlab bot: use assignee name in comments
when assigning a new user for review/acceptance, use their real name in
the message, not their username (the reassign will include their
username a split second later anyway)
2016-07-01 13:23:57 -05:00
Brian S. Stephan 8fded6ba6c markov: replace max_sentences with sentance_bias
the theory here is that counting the number of sentences generated is
kind of silly, if we're already specifying min/max word counts, we
probably just want to fall into that range, and not really care how many
sentences we get

meanwhile, we were overloading max_sentences to also calculate how long
any one sentence must be, which is kind of a weird thing to derive, so
we're going to drop the max_sentences language and call this more what
it is, a bias towards the number of sentences that might be seen
2016-06-30 23:26:04 -05:00
Brian S. Stephan 9b5e8445bf Revert "markov: abandon min_words_per_sentence for lines"
This reverts commit 464727cc74.

it turns out that without the min_words_per_sentence adjustment, the
default min_words (15) is way too demanding on a lot of chains, so we're
going to go back to this for the moment
2016-06-30 23:20:05 -05:00
Brian S. Stephan ab9edb2c9b markov: work harder to avoid short sentences
not sure how effective this will be, but it's worth a shot
2016-06-30 23:16:49 -05:00
Brian S. Stephan 464727cc74 markov: abandon min_words_per_sentence for lines
was yielding too many short chains, i think
2016-06-30 23:16:13 -05:00
Brian S. Stephan dcb7a0af4a markov: some debugging statements in longish 2016-06-30 23:05:58 -05:00
Brian S. Stephan ccfc5e7484 markov: be smarter with appending punctuation
don't append commas ever (it looks weird), ignore other situations
where the chain already ends with punctation so we don't need more
2016-06-30 22:46:47 -05:00
Brian S. Stephan db3e2a27a0 markov: try harder to get a right len sentence
this puts additional pressure on the sentence generator, retrying many
times to get something that's long but not too long. only testing on a
small context so far, so this is certainly not yet ready to go live, but
the results are pretty good so far
2016-06-30 22:43:26 -05:00
Brian S. Stephan 897f29c8d4 markov: tweaks to the sentence generator
this tunes things a bit in the sentence generator, trying to favor
complete sentences over the min/max word counts, which are still kinda
heeded but not as militantly. this *should* create more interesting
chains, especially with topics, without really breaking things, but this
certainly needs some testing before we can see if it's actually right
2016-06-30 22:21:02 -05:00
Brian S. Stephan 70032dc42b Merge branch 'master' of git.incorporeal.org:bss/dr.botzo 2016-06-30 16:27:19 -05:00
Brian S. Stephan c9f73f44e2 markov: point admin forms at templates properly 2016-06-30 16:26:06 -05:00
Brian S. Stephan 81339a4f16 markov: bit of debug logging in file import 2016-06-30 16:25:38 -05:00
Brian S. Stephan 93c9224644 gitlab bot: no reset message on approvals 0/N
bot was overzealous in logging the approval reset message when seeing
pushes. this commit should keep it from logging the message if a push
happened but there weren't actually any approvals yet (so there's
nothing to reset)

still waiting on testing, but this seems like a decent fix to me

bss/dr.botzo#4
2016-06-29 10:23:33 -05:00
Brian S. Stephan dd0fa00e8e gitlab bot: code reviews: ignore closed MRs 2016-06-27 12:39:52 -05:00
Brian S. Stephan e48b7867fe gitlab bot: command for reviewing one specific MR 2016-06-27 10:31:53 -05:00
Brian S. Stephan feb3944380 gitlab bot: standardize on accept/approve language 2016-06-27 10:25:50 -05:00
Brian S. Stephan 98bea53906 gitlab bot: don't bother scanning merged requests 2016-06-27 10:25:29 -05:00
Brian S. Stephan 5fc2c0c7f6 gitlab bot: merge request IDs arg to scanner
for use cases when we know the merge request(s) to scan, allow passing
them as an optional argument
2016-06-27 10:24:40 -05:00
Brian S. Stephan e2ed53d031 gitlab bot: more silly messages 2016-06-27 10:23:42 -05:00
Brian S. Stephan a0f76e4c0f gitlab bot: major refactoring of code review scan
this moves a bunch of code around and renames a bunch of things, so the
diff for it is fairly huge, but it's the same general idea, just
organized better. woo.
2016-06-24 17:44:36 -05:00
Brian S. Stephan fca69b1994 gitlab bot: add a class to track review scanning
the code to scan all merge request notes for reviews is getting messy,
going to try moving most of the state into a class. still unsure this is
final
2016-06-24 14:32:59 -05:00
Brian S. Stephan 1a428e7d29 gitlab bot: make project_id unique=True 2016-06-24 13:54:37 -05:00
Brian S. Stephan e846502b48 gitlab bot: start refactoring code review methods
the code review logic to this point is kind of convoluted, and still is
for the moment, but this moves some of the stuff into a more coherent
spot in the expectation of reuse. most of the refactoring is still to
come
2016-06-24 13:50:09 -05:00
Brian S. Stephan 8f7b477fb8 start of gitlab code review/merge bot
the intent of this thing is to scan configured projects' merge requests,
and automatically assign them to designated code reviewers. if someone
says "LGTM" in the merge request thread, that counts as a review and the
bot either selects another reviewer or assigns the thing to a designated
merge approver for the final approval and merge

this is most of the way there, but not done yet. things still to do:

1) more strings than "LGTM", but we should be careful to avoid things
   that someone might actually say
2) i'm trying to avoid it but i probably need to track the 2 of 2
   reviewer message separate from the message assigning the merge
   request to an approver. it's plausible that a reviewer is also an
   approver, and if the last reviewer is a candidate approver, the
   script does nothing, but we probably want it to still log the 2 of 2
   part. i could track the "nagging" for 2 of 2 messages, to avoid
   the bot repeating itself, but that seems unfortunately annoying
2016-06-23 23:49:38 -05:00
Brian S. Stephan 18ff814bc8 karma: add a pagination default of 10 2016-05-13 22:41:13 -05:00
Brian S. Stephan 46ffe7a72d karma: remove the rank from the index table
it's kind of redundant anyway, since we include the score
2016-05-13 22:30:59 -05:00
Brian S. Stephan 26f0604922 karma: add django rest framework
i tried to use this for datatables, but it was taking too long to get a
response, so i'm abandoning this for the moment, but the support's there
for the future
2016-05-13 22:19:38 -05:00
Brian S. Stephan 4809247632 karma: display all karma keys in index page
this kind of sucks from a performance standpoint, i'd like to make it
better
2016-05-13 21:55:54 -05:00
Brian S. Stephan b82e5309e1 drop the artificial data point at 0,0
kinda screwing up some graphs
2016-03-31 19:19:35 -05:00
Brian S. Stephan c364578e5d lowercase the key in karma graph URL 2016-03-31 16:47:17 -05:00
Brian S. Stephan e5263d0019 show karma graph with date-based X range
this is way more interesting of a graph than delta-based, which just
ends up being a linear slope. dunno what i was thinking yesterday
2016-03-31 16:36:10 -05:00
Brian S. Stephan dab41fa7d3 pad the bottom of pages' content 2016-03-30 18:06:44 -05:00
Brian S. Stephan 50f2b12c18 only build history once in karma graph, do history 2016-03-30 18:04:19 -05:00
Brian S. Stephan 08da8ea9f3 tweak karma graph output for many data points
if there's a ton of data points, the graph starts looking real gross,
so do a couple things to make the display of that a bit simpler so
there's less noise and distracting lines and whatnot
2016-03-30 17:57:00 -05:00
Brian S. Stephan 3e9302c89c don't display dots on the karma graph 2016-03-30 17:26:59 -05:00
Brian S. Stephan 03047c458f add an initial point to the karma key graph 2016-03-30 17:20:33 -05:00