These are chat archives for ecjs/Concierge

15th
Nov 2014
Joe Elsey
@joeelsey
Nov 15 2014 00:04
I figured out uncaught exceptions. All we need is to include a middleware file that uses this code.
app.use(function(req,res,next){
  var domain = createDomain();

  domain.on('error', function(err){
    res.statusCode = 500;
    res.end(err.message + '\n');

    domain.dispose();
  });

  domain.enter();
  next();
});
Still has some edge cases, but worked with certain types of errors
Joe Elsey
@joeelsey
Nov 15 2014 00:11
Pretty much works for everything
Mark Harrell
@ecjs
Nov 15 2014 00:32
nice!
Joe Elsey
@joeelsey
Nov 15 2014 00:43
I've tried putting strings and exceptionally long numbers in my zip field for my beer app. Just returns an error message. I'm sure this could be used for redirects. We would probably create a separate middlewear file for just this.
You don't need to include the status code. That's just window dressing.
Mark Harrell
@ecjs
Nov 15 2014 05:53
Project update: 50% complete with the Job scheduling. I am successfully moving jobs out of the job database to the queue, if they are a recurring job (happens tomorrow), I refactor the new job date to be for tomorrow at the same time. Next step is running through the job queue, and checking for jobs happening within the next 5 minutes, and pretty much doing the same thing.
once I am done with this process (which should wrap up almost all of that code), I am going to write up the trello docs, and move on to some interface design stuff/logo/colors etc.
Joe Elsey
@joeelsey
Nov 15 2014 18:20
amazing.
Mark Harrell
@ecjs
Nov 15 2014 18:34
so basically, I got the job scheduling completed last night..
also: recent update is pushed to master
I am going to start back on dev now on the concierge side of things
see if I can get a good matching setup
Mark Harrell
@ecjs
Nov 15 2014 19:23
did we decide the best way to match concierges
I am trying to figure out the logic for this
Joe Elsey
@joeelsey
Nov 15 2014 19:25
one sec
I think we discussed two different options.
One where the concierge notifies of their availability ahead of time. I think this way the computer assumes the concierge makes the phone call without checking for 'actual' availability
The other way was a concierge 'checks in' and notifies the computer of availability.
Both ways have the concierges put into a queue for availability to take a call.
Mark Harrell
@ecjs
Nov 15 2014 19:27
Ok..I'm a little worried about the concierge putting availability in ahead of time.
Joe Elsey
@joeelsey
Nov 15 2014 19:27
I am as wel
well
Mark Harrell
@ecjs
Nov 15 2014 19:28
And the logic is a little tough..we have to check all concierge documents for a concierge who's availability lies within s specific range
Joe Elsey
@joeelsey
Nov 15 2014 19:28
I don't really like assumptions. I'd rather be certain that the concierge is available by them checking in. This way, from a legal standpoint, they've entered into a brief agreement that they are willing to take calls.
Tokens?
If a concierge is available it sends their token?
Mark Harrell
@ecjs
Nov 15 2014 19:29
well, what we can do is…if a concierge says they are available, we just set an item in their user collection, like available: true
Joe Elsey
@joeelsey
Nov 15 2014 19:29
You can add a time.date() to the token and if we could use that info to see when the token is sent.
How would we set available:false when the concierge is done?
Or what's the general logic?
Mark Harrell
@ecjs
Nov 15 2014 19:33
general logic is that the scheduler is going to be checking for a concierge to add to a call within 1/2 hour of the call, maybe sooner (we can change that if we need to), if there is a concierge available (available:true), we set them up for the call.
Joe Elsey
@joeelsey
Nov 15 2014 19:34
1/2 hour? That's a large window imho.
Mark Harrell
@ecjs
Nov 15 2014 19:34
just trying to give the concierge enough time..that probably is a huge window
maybe its like 10 minutes?
Joe Elsey
@joeelsey
Nov 15 2014 19:35
10 to 15 sounds better. Maybe 30 is the right answer, but that would come out of testing.
Mark Harrell
@ecjs
Nov 15 2014 19:35
sure
ok..so for now
I am going to code the logic as available: true
not a time range
Joe Elsey
@joeelsey
Nov 15 2014 19:35
cool
Mark Harrell
@ecjs
Nov 15 2014 19:35
we can always change that later
then I am going to start on trello/design/logo
Joe Elsey
@joeelsey
Nov 15 2014 19:36
sounds good.
Mark Harrell
@ecjs
Nov 15 2014 19:36
thanks joe!
Joe Elsey
@joeelsey
Nov 15 2014 19:37
np. I'm here and available until about 6pm.