These are chat archives for exceptionless/Discuss

14th
Apr 2016
Sander Rijken
@srijken
Apr 14 2016 09:47
could there be a problem with extended data indexing?
oh.. lowercase
Blake Niemyjski
@niemyjski
Apr 14 2016 11:17
@srijken what did you find?
good morning :)
@frankebersoll looking
Sander Rijken
@srijken
Apr 14 2016 11:45
I have an added property FooBar
I have to search for data.foobar
data.FooBar doesn’t give results
Blake Niemyjski
@niemyjski
Apr 14 2016 11:57
hmm.
we call too lower on it
maybe to normalize it
maybe we shouldn’t be
@ejsmith thoughts?
Sander Rijken
@srijken
Apr 14 2016 12:16
in that case, call tolower on that part of the query as well?
Blake Niemyjski
@niemyjski
Apr 14 2016 12:29
yeah
I guess we should eh
I’ll fix it
Blake Niemyjski
@niemyjski
Apr 14 2016 12:35
pushing it to a branch with some other changes
will merge it in today
so question for you guys
For log stacks we set the title to the source which is the full type name in most cases… but you can also specify a custom stacking title too (not typical)...
so we have these ugly stack titles we could collapse but we aren’t 100% sure if they are a full type name..
so should I add a special check to see if it the title contains at least 1 period and there are no spaces
in any of the parts
like blah.xyz.blah would match
but blah. xyz.blah wouldn't
what are your thoughts
Eric J. Smith
@ejsmith
Apr 14 2016 13:33
calling you Blake
Blake Niemyjski
@niemyjski
Apr 14 2016 15:13
        // allow any single hour to have 10 times the monthly limit converted to hours
        //return (int)Math.Ceiling(organization.GetMaxEventsPerMonthWithBonus() / 30d * 0d);
        int eventsLeftInMonth = organization.GetMaxEventsPerMonthWithBonus() - organization.GetCurrentMonthlyTotal();
        if (eventsLeftInMonth < 0)
            return 0;

        var hoursLeftInMonth = (DateTime.UtcNow.EndOfMonth() - DateTime.UtcNow).TotalHours;
        if (hoursLeftInMonth < 1)
            return eventsLeftInMonth;

        return (int)Math.Ceiling(eventsLeftInMonth / hoursLeftInMonth * 10d);
new :)
Eric J. Smith
@ejsmith
Apr 14 2016 15:16
nice
Blake Niemyjski
@niemyjski
Apr 14 2016 15:18
not sure how our unit tests are going to work now
lol
since it’s a revolving period of time based on when the tests are running
lol
Eric J. Smith
@ejsmith
Apr 14 2016 16:02
yeah, will have to figure something out for that.
or get rid of the tests.
Blake Niemyjski
@niemyjski
Apr 14 2016 16:02
I got them working
:)
Blake Niemyjski
@niemyjski
Apr 14 2016 19:34
        var data = new Dictionary<string, object>();
        string source = stack.SignatureInfo?.GetString("Source");
        if (String.IsNullOrWhiteSpace(source) || !String.Equals(source, stack.Title)) {
            data.Add("Title", stack.Title);
        } else {
            data.Add("Source", source);
            var parts = source.Split(new[] { '.' }, StringSplitOptions.RemoveEmptyEntries);
            if (!String.Equals(source, parts.Last()) && parts.All(p => p.IsValidIdentifier()))
                data.Add("SourceShortName", parts.Last());
        }
sucks I gotta have a lot more overhead for summaries
but you could stick anything in a log source
at least this verifies that it’s a log source
makes me wonder if I should just call this title and tileshortname
make the code simplier
Jamie Clarke
@jamie94bc
Apr 14 2016 20:49
wonder what theme gitter uses
i quite like it
for code syntax
:smile:
Blake Niemyjski
@niemyjski
Apr 14 2016 21:06
:)
could ask em