Re: ATC Fall Summit 2017

2017-09-12 Thread Dave Neuman
Final reminder that our CFP (Call For Presentations) ends on Friday 9/15. This just needs to be a sentence or two about what you plan to present and how much time you need. You can send your proposal to summ...@trafficcontrol.incubator.apache.org. Let me know if you have any questions. Thanks! D

Re: [VOTE] Bugtracking in Github Issues

2017-09-12 Thread Jeremy Mitchell
+1 but the fact that only committers can be assigned to issues is a big problem in my opinion. On Tue, Aug 29, 2017 at 7:16 PM, Eric Friedrich (efriedri) < efrie...@cisco.com> wrote: > Thanks Leif- > I’ll check with the Incubator gurus. We already pulled the trigger, so > at this point its more

Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Dewayne Richardson
There has been quite a bit of discussion about how to move forward with the Traffic Ops Rewrite in terms of Golang dependencies. Currently there is only one dependency for Mocking out the database for unit testing called https://github.com/DATA-DOG/go-sqlmock. Another that we want to evaluate is h

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Gelinas, Derek
After looking at the code, and given the work I've been doing with rewriting the config file endpoints, I have to say sqlx all the way. What's involved in the maintenance? Derek On Sep 12, 2017, at 8:28 PM, Dewayne Richardson mailto:dewr...@gmail.com>> wrote: There has been quite a bit of di

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Volz, Dylan (Contractor)
It would be maintaining about a 1500 line codebase (excluding tests with ~70% coverage), it uses reflection and tag introspection so it isn’t the simplest go code but it does seem to be well commented. On 9/12/17, 6:36 PM, "Gelinas, Derek" wrote: After looking at the code, and given the wo

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Robert Butts
I am a pretty big -1 on sqlx. Those PRs are extremely deceptive. Those lines are entirely unnecessary. I have created an example PR at https://github.com/apache/incu bator-trafficcontrol/pull/1165 The relevant commits are https://github.com/apache/incubator-trafficcontrol/pull/1165 /commits/6fc7

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Chris Lemmons
I'm also -1 on sqlx. That said, the "single line" in the `sql` version is 674 characters long. I think we can agree that it's one heck of a line. We're focusing on the Scan call vs. the ScanStruct call, which I think is the right place to look. Here's what `sql` requires: - One identifier per col

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Jeremy Mitchell
@dewayne - you said "performance was +/-5% depending on the cloud resources that were active". How many milliseconds difference (average) are we talking about for ONE call to /api/1.2/servers (using sqlx and not using sqlx)? I'm assuming it is so small that we can rule out performance as a factor w

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Chris Lemmons
> Why the fear of using dependencies? There's no fear of using dependencies. There's a recognition that dependencies aren't free and a balancing of the costs they entail. In this case, looking at the costs associate with `sqlx`, I don't think the benefits justify it. The way we're using it, we cou

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Dan Kirkwood
As one ready to jump in and add more endpoints, I'm a strong +1 on using sqlx. I agree that adding a new dependency should not be done without consideration, but I find the sqlx version much more readable and easier to approach than either your or dew's version of non-sqlx and would be much easi

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Chris Lemmons
@dan, how do you feel about the middle-ground I proposed: a reflection-based function that would look like this: rows.Scan(FieldsOf(&server)...) ? On Tue, Sep 12, 2017 at 9:05 PM, Dan Kirkwood wrote: > As one ready to jump in and add more endpoints, I'm a strong +1 on > using sqlx. I agree tha

Re: Traffic Ops Rewrite Golang Dependency - sqlx

2017-09-12 Thread Jan van Doorn
I’m +1 on using sqlx. We’ve done this dance, what 3 times now already? Let’s just use it and move on. Just my $0.02. Rgds, JvD > On Sep 12, 2017, at 9:08 PM, Chris Lemmons wrote: > > @dan, how do you feel about the middle-ground I proposed: a > reflection-based function that would look like