These are chat archives for exceptionless/Discuss

31st
Mar 2016
Blake Niemyjski
@niemyjski
Mar 31 2016 12:38
@ejsmith looks like the .net blog helped a bit
have a few new issues for foundatio :)
Eric J. Smith
@ejsmith
Mar 31 2016 12:39
Cool
Blake Niemyjski
@niemyjski
Mar 31 2016 12:40
exceptionless/Foundatio#34
dang
so cool reading about that kind of stuff
would be cool to work on research projects like that
writing code to detect users through a wall using wifi signals
crazy
Foundatio trending
Blake Niemyjski
@niemyjski
Mar 31 2016 14:39
:)
Blake Niemyjski
@niemyjski
Mar 31 2016 15:29
whelp that kind of sucks
they changed github a bit over night
went to go update a readme and I can only update it via pull request and all tests must pass before merging
which is good except it’s a dam readme
Eric J. Smith
@ejsmith
Mar 31 2016 15:34
Yeah, I changed that.
Might be too aggressive.
Blake Niemyjski
@niemyjski
Mar 31 2016 15:40
Programmatic cut and copy to the clipboard
It’s now possible to programmatically copy and cut text in response to a user gesture with document.execCommand('copy') and document.execCommand('cut'). Having this ability may eliminate some websites’ last need for the Flash plug-in.
DANG
running safari 9.1 that ships with 10.11.4 is 53% on https://kangax.github.io/compat-table/es6/
that safari preview that was released yesterday is 98%
more than any other browser out there
beats chrome 51 nightly by 2%
latest edge by 13%
Blake Niemyjski
@niemyjski
Mar 31 2016 15:49
that was really cool
WOW
that’s awesome!!!
wow
that’s badass
Eric J. Smith
@ejsmith
Mar 31 2016 15:55
wondering if they just have all the experimental features on.
Blake Niemyjski
@niemyjski
Mar 31 2016 15:56
who knows
Eric J. Smith
@ejsmith
Mar 31 2016 15:56
they might not be planning to release all of them with the next version of OSX
Blake Niemyjski
@niemyjski
Mar 31 2016 15:56
yeah
would be nice
really give mobile devices a huge huge jump
Eric J. Smith
@ejsmith
Mar 31 2016 15:56
so we were talking about upgrading to ES2 this morning… and we are going to do it.
so I need to know what are the blockers for it right now.
where is it at.
Blake Niemyjski
@niemyjski
Mar 31 2016 15:56
in a branch
want me to update it
the branch
Eric J. Smith
@ejsmith
Mar 31 2016 15:57
yes, I know that… but I want to know what is blocking it from moving forward.
Blake Niemyjski
@niemyjski
Mar 31 2016 15:57
looking
there were a few things
the elastic guys have been unresponsive
guess I’m going to have to progress without them
Eric J. Smith
@ejsmith
Mar 31 2016 15:58
niemyjskify those sons of bitches.
Lord-Hasek
@Lord-Hasek
Mar 31 2016 15:59
Good day everyone, @niemyjski when you have some free time would you be able to help take a look at our recalcitrant setup of Exceptionless?
Blake Niemyjski
@niemyjski
Mar 31 2016 16:00
Yeah, when are you free today?
Lord-Hasek
@Lord-Hasek
Mar 31 2016 16:01
lets say around 1:00 PM central time, have a meeting that is supposed to go through lunch
I caught the flu or we could have done this on Tuesday
Blake Niemyjski
@niemyjski
Mar 31 2016 16:02
ok
sounds good
I hope you feel better
Lord-Hasek
@Lord-Hasek
Mar 31 2016 16:02
Ok cool, then 1:00 it is :)
Blake Niemyjski
@niemyjski
Mar 31 2016 16:03
@ejsmith did you get rid of some typehelper stuff in foundatio?
    private ICollection<IMigration> GetAllMigrations() {
        var migrationTypes = TypeHelper.GetDerivedTypes<IMigration>(new[] { typeof(IMigration).Assembly });
        return migrationTypes
            .Select(migrationType => (IMigration)_container.GetService(migrationType))
            .OrderBy(m => m.Version)
            .ToList();
    }
GetDerivedTypes no longer works
you removed it
guess we should get that from di
or what
Eric J. Smith
@ejsmith
Mar 31 2016 16:08
yeah, tying to stay focused on what Foundatio is supposed to be.
not DI and general helper lib.
cloud app abstractions and impls.
Blake Niemyjski
@niemyjski
Mar 31 2016 16:11
I’m goign to mark that as a todo
and comment it out
Blake Niemyjski
@niemyjski
Mar 31 2016 16:27
@ejsmith are you updated to use foundatio.repositories
cause you should be
Eric J. Smith
@ejsmith
Mar 31 2016 16:27
nope, but I am going to do that as part of updating our stuff to work on 2.0
Blake Niemyjski
@niemyjski
Mar 31 2016 16:37
ok
talking to greg from elastic now
Blake Niemyjski
@niemyjski
Mar 31 2016 16:59
@ejsmith
we WILL have to go to elastic 2.x before elastic 5
Eric J. Smith
@ejsmith
Mar 31 2016 17:36
they are killing us
Lord-Hasek
@Lord-Hasek
Mar 31 2016 18:06
@niemyjski I messaged you a link to a join.me so we can continue troubleshooting
Blake Niemyjski
@niemyjski
Mar 31 2016 18:06
sounds good
Blake Niemyjski
@niemyjski
Mar 31 2016 19:14
he gets all the clicks
Sander Rijken
@srijken
Mar 31 2016 19:15
Been fighting with calling async/await code from an Rx Subscribe(Observer). Problem was that IObserver only contains void OnNext(T item). Because there’s nothing that returns task, you can’t do .Subscribe(async item => { await ProcessAsync(item) }).
it’s fixed now by doing: .Subscribe(item => { ProcessAsync(item).GetAwaiter().Result(); })
in the process I learned the difference between Task.Wait() and Task.Result vs Task.GetAwaiter().Result()
it’s explained best over here: aspnet/Security#59
"One last remark: you should avoid using Task.Result and Task.Wait as much as possible as they always encapsulate the inner exception in an AggregateException and replace the message by a generic one (One or more errors occurred), which makes debugging harder. Even if the synchronous version shouldn't be used that often, you should strongly consider using Task.GetAwaiter().GetResult() instead."
Blake Niemyjski
@niemyjski
Mar 31 2016 19:22
+1
learned a few things today
Eric J. Smith
@ejsmith
Mar 31 2016 19:28
?
Sander Rijken
@srijken
Mar 31 2016 19:28
I learned that I’ve got a lot to learn about mixing Rx and async/await
basically it’s pretty much impossible to do nicely
Eric J. Smith
@ejsmith
Mar 31 2016 19:29
yeah, I keep wanting to get into Rx
wonder if we should think about hosting our jobs that way.
Blake Niemyjski
@niemyjski
Mar 31 2016 19:44
welp
next step
everything compiles
Eric J. Smith
@ejsmith
Mar 31 2016 19:44
nice!
Blake Niemyjski
@niemyjski
Mar 31 2016 19:44
now I guess get foundatio tests passing and work and get that published
Eric J. Smith
@ejsmith
Mar 31 2016 19:45
so no blockers in the way, eh?
Blake Niemyjski
@niemyjski
Mar 31 2016 19:45
would like to finish up the users stuff first but should get this done
well there will be with index names
lol
Eric J. Smith
@ejsmith
Mar 31 2016 19:57
the functions thing looks interesting...
but don’t think it’s quite there yet.
you can make a storage folder the trigger… so just putting the postdata there would trigger it to run.
can run C# code and it scales on its own based on triggers.
but it looks like you have to just run some c# code from a text box vs triggering a exe or being able to use full assemblies.
guess you can add nuget packages and external references
but you have to put the core logic in a .csx script file.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:15
elastic/elasticsearch#17459
hmm
Sander Rijken
@srijken
Mar 31 2016 20:17
@niemyjski what’s the status of the .Count property on event? is it too early to make changes to the deduplication plugin?
Blake Niemyjski
@niemyjski
Mar 31 2016 20:17
it’s pushed
won’t be live until 8pm tonight
:)
Sander Rijken
@srijken
Mar 31 2016 20:18
that’s fine, cause it’s 10:18pm
Blake Niemyjski
@niemyjski
Mar 31 2016 20:18
haha
Eric J. Smith
@ejsmith
Mar 31 2016 20:18
LOL
time travel
Sander Rijken
@srijken
Mar 31 2016 20:18
this difference isn’t that bad
I worked on an open source project with a guy in Australia once
that’s impossible
round trip time of emails is a day
so events that are being received without Count, have Count = 1?
not sure if anyone of you seen this happen, but it looks like VS started saving pdb files in my solution directory. Any idea how to make that stop?
Eric J. Smith
@ejsmith
Mar 31 2016 20:27
yes, we are going to default missing values to 1 in the UI counts.
Sander Rijken
@srijken
Mar 31 2016 20:27
good
Eric J. Smith
@ejsmith
Mar 31 2016 20:27
not sure about the pdb thing.
Sander Rijken
@srijken
Mar 31 2016 20:28
it’s fine, until I need something from the sln dir
it looks like a symbol server / symbol cache in there
so events that aren’t duplicates, just send those along without a count?
Eric J. Smith
@ejsmith
Mar 31 2016 20:30
yeah, no need to populate it if its just 1
let it default
Sander Rijken
@srijken
Mar 31 2016 20:30
yeah
done
Eric J. Smith
@ejsmith
Mar 31 2016 20:32
sweet
will be good to get this finished up.
Sander Rijken
@srijken
Mar 31 2016 20:32
only thing I wonder now that Value is free for other use, is wether Value should be part of the hash calculation (when set)
Eric J. Smith
@ejsmith
Mar 31 2016 20:32
yeah, probably should.
Sander Rijken
@srijken
Mar 31 2016 20:33
that’s good, ‘cause it already is, lol
Eric J. Smith
@ejsmith
Mar 31 2016 20:33
haha nice work man.
Sander Rijken
@srijken
Mar 31 2016 20:35
will be so nice to see this working
Eric J. Smith
@ejsmith
Mar 31 2016 20:35
agreed
Sander Rijken
@srijken
Mar 31 2016 20:35
in recent work I’ve been doing it’s so easy to hit a problem that causes a storm of exceptions
had one today; in queue processing, it fails, restarts processing, fails, etc
Blake Niemyjski
@niemyjski
Mar 31 2016 20:36
guess we push this and the counts will be lower
and then when we update the ui in the near future things will light up
?
Eric J. Smith
@ejsmith
Mar 31 2016 20:37
yeah, exactly… this will be huge for that.
I’ve seen tons of customers get their entire plan eaten up in a few hours.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:37
@ejsmith
want to work with me on these tests for 2.0 :)
just the foundatio.repository tests
Sander Rijken
@srijken
Mar 31 2016 20:38
@niemyjski I think the question on the UI update was for @ejsmith as well?
Blake Niemyjski
@niemyjski
Mar 31 2016 20:38
yeah
I think we are safe with pushing it out there
Eric J. Smith
@ejsmith
Mar 31 2016 20:38
I gotta finish my AWS stuff over the next couple days before I move on to ES2.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:38
ok
gotta figure out the stuff on just_name
and what that did before
cause that no longer exists
Eric J. Smith
@ejsmith
Mar 31 2016 20:39
that was making it so that if you had a nested property it would be available as blah: in search vs someobject.nested.blah
I think I read tha you have to do multifields or something instead now.
elastic/elasticsearch#6677
Blake Niemyjski
@niemyjski
Mar 31 2016 20:43
ok
Sander Rijken
@srijken
Mar 31 2016 20:43
crap, forgot to update the tests
at least its good that the build now fails when a testcase fails hehe
Blake Niemyjski
@niemyjski
Mar 31 2016 20:44
:)
Eric J. Smith
@ejsmith
Mar 31 2016 20:45
elastic/elasticsearch#11079
Blake Niemyjski
@niemyjski
Mar 31 2016 20:46
so should we be doing copyto
Eric J. Smith
@ejsmith
Mar 31 2016 20:47
yeah and setting that field to be not indexed.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:47
sigh
lol
ok
Eric J. Smith
@ejsmith
Mar 31 2016 20:48
so I guess you have to create the top level properties for things that we have and then do copy_to on the nested ones.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:48
but what happens for ip
Eric J. Smith
@ejsmith
Mar 31 2016 20:48
what about it?
Blake Niemyjski
@niemyjski
Mar 31 2016 20:48
when you have multiple fields doing copyto
Eric J. Smith
@ejsmith
Mar 31 2016 20:48
you can have multiple fields copy_to the same field
Blake Niemyjski
@niemyjski
Mar 31 2016 20:49
ok
sucks that we can’t have dots in the name
names
gotta figure that out
Eric J. Smith
@ejsmith
Mar 31 2016 20:50
you can
Blake Niemyjski
@niemyjski
Mar 31 2016 20:50
ah
I’m pretty sure you cant
Eric J. Smith
@ejsmith
Mar 31 2016 20:50
I just saw an example that had it.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:53

Invalid NEST response built from a unsuccesful low level call on PUT: /employees-v1

Audit trail of this API call:

  • BadResponse: Node: http://localhost:9200/ Took: 00:00:00.4679548

    ServerError: ServerError: 400Type: mapper_parsing_exception Reason: "Failed to parse mapping [employee]: Mapping definition for [companyId] has unsupported parameters: [index_name : company]" CausedBy: "Type: mapper_parsing_exception Reason: "Mapping definition for [companyId] has unsupported parameters: [index_name : company]""

    OriginalException: System.Net.WebException: The remote server returned an error: (400) Bad Request.

    at System.Net.HttpWebRequest.GetResponse()
    at Elasticsearch.Net.HttpConnection.RequestTReturn in C:\users\russ\source\elasticsearch-net\src\Elasticsearch.Net\Connection\HttpConnection.cs:line 138

    Request:

    <Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>

    Response:

    <Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>

                .String(f => f.Name(e => e.CompanyId).IndexName(Fields.Employee.CompanyId).Index(FieldIndexOption.NotAnalyzed))
way to even throw a dam compiler warning
0 warnings
Sander Rijken
@srijken
Mar 31 2016 20:55
that looks nice
Eric J. Smith
@ejsmith
Mar 31 2016 20:55
gotta do copy_to for that too… kind of sucks.
they said it was confusing I guess.
that error is a HELL of a lot better than the old errors.
we used to get a massive java stacktrace with the error burried in the middle of 1000s of lines of text.
Blake Niemyjski
@niemyjski
Mar 31 2016 20:56
how the FUCK
Eric J. Smith
@ejsmith
Mar 31 2016 20:56
?
Blake Niemyjski
@niemyjski
Mar 31 2016 20:56
do you say copy to this field
but specify anaylzer option
I want to say don’t anaylze this and don’t index this field
Eric J. Smith
@ejsmith
Mar 31 2016 20:57
you need to define the field that you are copy_to ‘ing
Blake Niemyjski
@niemyjski
Mar 31 2016 20:57
you serious
Eric J. Smith
@ejsmith
Mar 31 2016 20:57
yep
Blake Niemyjski
@niemyjski
Mar 31 2016 20:57
this is going to make our defintions a nightmare
Eric J. Smith
@ejsmith
Mar 31 2016 20:57
even though it doesn’t exist in the doc.
you have to define it and then do copy_to on the actual property.
and say not indexed on the real one too
Blake Niemyjski
@niemyjski
Mar 31 2016 20:58
                .String(f => f.IndexName(Fields.Employee.CompanyId).NotAnalyzed())
                .String(f => f.Name(e => e.CompanyId).CopyTo(c => c.Fields(Fields.Employee.CompanyId)).Index(FieldIndexOption.No))
something like that
Eric J. Smith
@ejsmith
Mar 31 2016 20:58
"mappings": {
"test": {
"properties": {
"name": {
"type": "object",
"properties": {
"first": {
"index": "no",
"copy_to": "name.fullname"
},
"last": {
"index": "no",
"copy_to": "name.fullname"
},
"fullname": {
"type": "string"
}
}
}
}
}
}
}
Blake Niemyjski
@niemyjski
Mar 31 2016 20:58
with the root having everything
yeah good luck on that
marvel is broke as shit
can’t even view it
they screwed up big time on that
20 dam steps to install it and then it doesn’t work
errors out
Eric J. Smith
@ejsmith
Mar 31 2016 20:59
lol
Blake Niemyjski
@niemyjski
Mar 31 2016 21:00
Screen Shot 2016-03-31 at 4.00.07 PM.png

pile

install instructions went from 1 line in 1.x
to literally 15 steos
steps and then it says all green but doesn’t work
Eric J. Smith
@ejsmith
Mar 31 2016 21:01
I’ve set that up and it was pretty straight forward… its just a spa app now.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:04
so if the field name doesn’t change
i guess you don’t need to do copy to
but I kinda feel like we should just to be consistent
and not screw ourselves
Eric J. Smith
@ejsmith
Mar 31 2016 21:05
huh?
Blake Niemyjski
@niemyjski
Mar 31 2016 21:05
                .String(f => f.Name(e => e.Id).IndexName(Fields.Employee.Id).NotAnalyzed())
                .String(f => f.IndexName(Fields.Employee.Id).NotAnalyzed())
                .String(f => f.Name(e => e.Id).CopyTo(c => c.Fields(Fields.Employee.Id)).Index(FieldIndexOption.No))
Eric J. Smith
@ejsmith
Mar 31 2016 21:05
they are breaking shit left and right.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:06
yeah
Eric J. Smith
@ejsmith
Mar 31 2016 21:06
guess they are trying to simplify
Blake Niemyjski
@niemyjski
Mar 31 2016 21:06
yeah
Eric J. Smith
@ejsmith
Mar 31 2016 21:06
which is good.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:06
so the first one
works
Eric J. Smith
@ejsmith
Mar 31 2016 21:06
but it hurts.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:07
but almost feel like we should explicitly define it even if it has the same name
Eric J. Smith
@ejsmith
Mar 31 2016 21:07
on top of making all these changes they don’t give you very good options to automate the upgrade process.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:07
yeah
Eric J. Smith
@ejsmith
Mar 31 2016 21:07
should’ve done reindex fully baked before making all these breaking changes.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:08
yeah
this is going to be a super fun upgrade
Eric J. Smith
@ejsmith
Mar 31 2016 21:12
bastards better calm down after this.
Blake Niemyjski
@niemyjski
Mar 31 2016 21:18
agreed
ah
great hit an issue
I’ll keep working on it but getting lots closer
Eric J. Smith
@ejsmith
Mar 31 2016 21:46
What issue?
Blake Niemyjski
@niemyjski
Mar 31 2016 21:47
with indicies
need to work through it
need to work on getting elastic working really good
and sense so I can take a look
Eric J. Smith
@ejsmith
Mar 31 2016 21:52
Yeah