Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:53
    wmowm commented #459
  • Oct 12 15:59
    niemyjski commented #459
  • Oct 12 15:57
    niemyjski edited #459
  • Oct 12 12:54
    niemyjski synchronize #452
  • Oct 12 12:54

    niemyjski on elastic7

    Fixed serializer null reference… Fixed all Swagger issues. (compare)

  • Oct 12 12:26
    niemyjski synchronize #452
  • Oct 12 12:26

    niemyjski on elastic7

    Updated to latest foundatio rep… (compare)

  • Oct 12 12:24
    niemyjski synchronize #452
  • Oct 12 12:24

    niemyjski on elastic7

    Fixed elasticsearch serializer … (compare)

  • Oct 12 11:01
    wmowm opened #459
  • Oct 11 11:21
    niemyjski commented #458
  • Oct 10 21:18
    kiquenet opened #458
  • Oct 10 13:30
    niemyjski updated the wiki
  • Oct 10 09:20
  • Oct 10 03:36
  • Oct 09 15:54
    john-roland closed #456
  • Oct 09 15:54
    john-roland commented #456
  • Oct 09 14:12
    niemyjski labeled #457
  • Oct 09 14:12
    niemyjski labeled #457
  • Oct 09 14:12
    niemyjski commented #457
Blake Niemyjski
@niemyjski
    public async Task<NumbersTimelineStatsResult> GetNumbersTimelineStatsAsync(object query, IEnumerable<FieldAggregation> fields, TimeSpan? displayTimeOffset = null, int desiredDataPoints = 100) {
        if (!displayTimeOffset.HasValue)
            displayTimeOffset = TimeSpan.Zero;

        // if no start date then figure out first event date
        if (!filter.DateRanges.First().UseStartDate)
            await UpdateFilterStartDateRangesAsync(filter, utcEnd).AnyContext();

        utcStart = filter.DateRanges.First().GetStartDate();
        utcEnd = filter.DateRanges.First().GetEndDate();
        var interval = GetInterval(utcStart, utcEnd, desiredDataPoints);

        var response = await Context.ElasticClient.SearchAsync<T>(CreateSearchDescriptor(query)
           .SearchType(SearchType.Count)
           .Aggregations(agg => BuildAggregations(agg
                .DateHistogram("timelime", t => t
                    .Field(ev => ev.Date)
                    .MinimumDocumentCount(0)
                    .Interval(interval.Item1)
                    .TimeZone(HoursAndMinutes(displayTimeOffset.Value))
                    .Aggregations(agg2 => BuildAggregations(agg2, fields))
                ), fields))
           .IgnoreUnavailable()
        ).AnyContext();
yeah that’s going to be fun...
to figure out what field to do the timeline on
guess I need to add a timeline aggregation with a few func’s eh?
side tracked on moving this over cause I need it for what I’m doing with counts per project on the repo
This message was deleted
Blake Niemyjski
@niemyjski
@srijken
Sander Rijken
@srijken
hm?
Blake Niemyjski
@niemyjski
said they rolled out new vs2015 image
told me to use previous image
:(
unreal
Sander Rijken
@srijken
I run VS2015 update 2
and it works
so..?
Blake Niemyjski
@niemyjski
yeah
and we weren’t specifying a build image before
Sander Rijken
@srijken
well I agree with running latest by default
otherwise a load of people never upgrade
Blake Niemyjski
@niemyjski
yeah
I agree
there are some issues there that microsoft introduced
and until we drop .net 4.0 or move to standard lib I think they will be there
Sander Rijken
@srijken
I’m off to bed
Blake Niemyjski
@niemyjski
kk ty
Sander Rijken
@srijken
the build thing, I’d switch back for now, wait what they come up with
and maybe have a branch that doesn’t have that image setting?
Blake Niemyjski
@niemyjski
psuehd
pushed*
Sander Rijken
@srijken
didn’t merge the PR yet, I’ll see tomorrow what happened ;)
Blake Niemyjski
@niemyjski
ok
have a good night
Blake Niemyjski
@niemyjski
        var range = (query as IDateRangeQuery)?.DateRanges?.FirstOrDefault();
        var interval = GetInterval(range?.GetStartDate() ?? DateTime.MinValue, range?.GetEndDate() ?? DateTime.UtcNow.AddHours(1), desiredDataPoints);
makes me wonder if that should just be a parameter
if you want fine grained intervals you call it
or specify a date range
might be really hard for us to figure out the right interval generically
        var range = (query as IDateRangeQuery)?.DateRanges?.FirstOrDefault();
        if (range == null || !range.UseDateRange)
            throw new ArgumentOutOfRangeException(nameof(query), "Query must contain a valid date range.");

        var interval = GetInterval(range.GetStartDate(), range.GetEndDate(), desiredDataPoints);
DateRange has a field property that we can use
but UseDateRange will return false if the start date is not greater than DateTime.MinValue so what if you want a range of all time?
wonder if well have issues with unlimited plans..
let me know if you want to look at this with me later
Blake Niemyjski
@niemyjski

@srijken:

// Please reply above this line

From: Feodor Fitsner (Support staff)

Found a bug. Will deploy an update with the fix later today.

Blake Niemyjski
@niemyjski
I committed a change for regular queues. seems we still get a random failure with hashcodes

Assert.Equal() Failure
Expected: 1
Actual: 2

at Exceptionless.Tests.Plugins.PluginTests.VerifyDeduplicationMultithreaded() in C:\Code\Exceptionless.Net\Source\Tests\Plugins\PluginTests.cs:line 593

Enqueueing event with hash:60276899 to cache.
Adding event with hash:60276899 to cache.
Ignoring duplicate event with hash:60276899
Enqueueing event with hash:519669061 to cache.
Ignoring duplicate event with hash:60276899
Ignoring duplicate event with hash:60276899

I might just merge in your change and take a look
Blake Niemyjski
@niemyjski
I’m going to bed. I thought it could be the NativeOffset that was causing the difference but it’s not.
would be super nice if we had an AO
AOP way of injecting trace messages around GetHashCode so we could see differences.