last day (95 days later) » 

7:27 PM
@ArtOfCode Oy
 
ah superpings
 
I'd like to help, so feel free to give me stuff to do
 
All that's there is a user model (auth doesn't work on it) and a Bot scaffold
 
(but keep in mind that I don't know Ruby so I'll have to learn it)
 
7:30 PM
@NobodyNada Oh, fun. ProTip: Just kinda write stuff that looks plausible and it'll work half the time
 
@Undo aren't you member of the SOBotics organization on GH?
 
If I'm slowing everybody down rather than helping, please let me know :)
 
@FelixSFD Probably not
 
in SOBotics Room Meeting - March 2017, 3 mins ago, by Andy
Ok, here is the Bot Census form that I'd like to use to get an idea of what bots are out there. This will help us figure out what the eventual framework would need to cover, assuming we can get some of these integrated and what scope we actually want to do with the framework. If you could fill it out once for each bot, that'd be cool and send it to other bot owners would be helpful too.
in SOBotics Room Meeting - March 2017, 3 mins ago, by Andy
https://docs.google.com/forms/d/e/1FAIpQLSfZl5MDcUQGK6h1uKd6oMTJaCtfPmH7l4QbXdBy‌​sVotC_ig0A/viewform?usp=sf_link
 
@FelixSFD nope, neither am I
still have review rights for Guttenberg somehow, but I'm not a member
 
7:31 PM
I'll add you guys
actually, I don't think I have privileges to do that
 
@NobodyNada thanks. The organization is a better place for a project like this
 
who's org admin? They'll be able to add
 
I think Tuna is
 
@ArtOfCode Petter. I'll ping him in the RO's chat
 
Working on getting Cap going, shouldn't conflict with anything else
 
7:32 PM
@FelixSFD we have an RO chat?
 
@NobodyNada If I remember correctly, that was the place where you denied the invitation for
it's not on SE
 
oh yeah, that
 
@FelixSFD Proooobably should be
(off site RO chats make me a little... nervous)
 
@Undo where else could we share passwords to databases etc?
it's actually not ROs only. But most of us are :-D
 
Private on-site room would be best. Keybase is your friend.
 
7:36 PM
I like that typo, we turned to biostudies :p
(room description)
 
J F
One thing you could add could be a mirror of the SE API so bots don’t have to query the SE API for the same posts over and over again.
 
That'd be an interesting idea
 
@Tunaki you are owner of SOBotics on GH as well? If yes, can you please add Undo and Art?
 
@JF so basically metapi, but for the SE API
 
7:39 PM
Yup, sending invivations
 
Thanks
 
J F
@ArtOfCode Yeah, but server-side (not client-side).
 
afk
 
Basically, it'd be a cache for the SE API. Bots would hit our API. If the post isn't in our hub, we hit SE API quickly and then fill it in.
 
an API proxy
 
J F
7:42 PM
^ That. Plus, any analysis that’s needed by multiple bots can be done once.
 
That sounds like a great idea. Maybe we could also integrate the data from the data dump in this database
 
J F
(for example, body as HTML, body with HTML stripped, and links from body)
 
@Undo what are you working on/what am I free to work on?
@FelixSFD that'd be a decent idea
 
Right now, working on eating a taco. After that, Capistrano stuff.
Sprint checklist as I see it: [ ] topbar, [ ] login, [ ] permissions around bots
 
so "just about anything because I have no idea how to work Capistrano" :)
 
7:44 PM
Yeah
 
J F
?src=data-dump and ?src=api; falling back in that order
 
@JF SEDE isn't a source we can query
 
J F
Fixed
 
@Undo did you intend the Bot model to be like the SmokeDetector model in metasmoke, or were you going for a BotInstance model as well?
 
@ArtOfCode I see Bot as the type model, with child objects for individual instances
So the latter
 
7:46 PM
yep, awesome
 
My working theory is that a User can create a Bot, and then they own it and can add other Users to that Bot. Users added to a Bot can create BotInstances
Rolify has all we need for permission logic there
(don't need/want a habtm between User and Bot)
 
That works, I've just created a BotInstance model with bot:references user:references location:string key:string
I'm assuming MySQL?
 
Maria in prod, so yes
@ArtOfCode Should work
bonus points if that'd been a scaffold, but it works
 
I like my customisation :)
 
;)
 
7:54 PM
@Tuna it would be nice with a lib for this, it has no real sense that we do 5 different devs (cc @FelixSFD @BR (not pingable)
 
Right room?
 
Yeah... :D
@Undo I guess the bots should ping this, should it not?
 
Eventually, yeah. We're just trying to ramp up fast
 
8:12 PM
back
 
Okay, Cap and SSL all set up. redunda.erwaysoftware.com
 
I got it to run on my machine, can I help with anything?
 
I'm throwing a quick topbar up, if you'd like you could clean it up a bit
 
okay, thanks!
 
Pushed
 
8:25 PM
@PetterFriberg It would be nice yes. I wonder if I make a small lib out of this, like a sobotics-chat or something, that could hide a bit of the chat lib. Hmm, needs thinking.
 
@Undo so make it look nice?
 
@NobodyNada However you'd like. I just ripped it out of metasmoke and deleted stuff until it didn't error out
 
J F
@Undo You should include //charcoal-se.org/assets/css/branding.css on the page if you’re going to keep the Charcoal branding.
 
We probably aren't, it's not really a Charcoal project
 
I have provided some quick data :D
 
8:29 PM
@Undo bug #1: sign in link don't work
 
yeah
it was also pulled from metasmoke
I'm working on SE OAuth right now
 
8:43 PM
@Undo I've submitted a PR.
 
kk
 
thanks! I don't think I broke anything, but I fought with Git a bunch trying to submit the PR
hmm, the SOBotics logo needs more spacing between it and the name "Redunda"
 
SE login should work now
 
nice!
 
/me is working on a dashboard for bots and bot instances, FYI
 
8:56 PM
kk, I'm working on getting Bootstrap better integrated
We don't have JS like we should
 
9:07 PM
the gem is only for the CSS, might need to just chuck a new script tag in the head
 
Yeah, I'm just bypassing the gem completely
 
shrug long as it's there, I'm happy
 
There, that should work
Gonna wait until @ArtOfCode is done with the dashboard thing, then jump into permissions
 
I'm mostly there, few bits to work out
That'll do me, all yours @Undo
 
k
 
9:31 PM
nvm, I made a mistake copying code from MS
 
9:55 PM
@Undo The "Redunda" label works fine if I add .navbar-brand { margin-left: auto !important; } to the CSS. I have no idea why it looks fine in Metasmoke
 
10:06 PM
Bah, UTF issues
 
Hey, you fixed the navbar spacing! How did you do it?
 
Ummmmm
I don't think I touched it :P
Oh, actually, we might be a on a previous rev. Just a sec
Been messing with the deploy cycle
There we're on latest
And... yeah, it looks better. I have no idea why
 
looks like Art fixed it
Why'd my dev copy ask me to authenticate for "Droid overflow?"
Also, after attempting to log out, I can't access the prod copy anymore
"We're sorry, but something went wrong."
 
10:27 PM
Ah, yep.
Fixing
 
Oh, I left the client_id as 1234
which must be "Droid overflow"
 
Fixed
 
thanks!
How should I authenticate on my dev copy/work around not being able to?
 
@NobodyNada create a new Stack App, set its OAuth domain to localhost:3000
and then put its settings in your config file
 
10:43 PM
great, thanks! Do I need to enable Client Side OAuth Flow?
 
probably not
 
11:27 PM
Can I help with another task?
 
@NobodyNada Want to implement collaborators?
 
Sure, how will that work?
 
Idea is that a Bot would have multiple 'collaborators' (or whatever we call it), and those folks would be able to create instances.
The latter part can be another project, for now it'd probably be adding a selector of some kind to the edit screen and setting permissions on the backend
 
Makes sense. I'll get to work on that
 
To add that permission to a user, user.add_role :collaborator, @bot
 
11:31 PM
k
 
Lemme know if you have any questions. I'm waiting for my main machine to do some updating
 
11:44 PM
Just to be sure I'm doing it right before I start: I'll create a new table called bot_collaborators, containing bot_id and user_id (and maybe something else if I need it). Then I'll create a barebones UI that allows me to add a collaborator role to a user and add an entry to bot_collaborators.
 
@NobodyNada Rails tradition would be bots_users for the join table name.
In fact, I'm not sure it even needs the HABTM/join table, because we can track it with roles
user.add_role :collaborator, @bot
 
oh, cool!
 
Find who's a collaborator using User.with_role(:collaborator, @bot)
or user.has_role? :collaborator, @bot for a single user
 
makes sense
 

  last day (95 days later) »