Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 31 07:40
    julienperignon edited #1869
  • Jul 31 07:40
    julienperignon edited #1869
  • Jul 31 07:39
    julienperignon edited #1869
  • Jul 31 07:39
    julienperignon edited #1869
  • Jul 31 07:37
    julienperignon edited #1869
  • Jul 31 07:37
    julienperignon edited #1869
  • Jul 31 07:32
    julienperignon edited #1869
  • Jul 31 07:32
    julienperignon edited #1869
  • Jul 31 07:26
    julienperignon opened #1869
  • Jul 31 07:26
    julienperignon opened #1869
  • Jul 29 06:56

    oskardudycz on master

    Use InvariantCulture.NumberForm… (compare)

  • Jul 29 06:56

    oskardudycz on master

    Use InvariantCulture.NumberForm… (compare)

  • Jul 29 06:56
    oskardudycz closed #1868
  • Jul 29 06:56
    oskardudycz closed #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
  • Jul 29 06:56
    oskardudycz labeled #1868
Oskar Dudycz
@oskardudycz
You can write custom extension to serialisers if you really need to support that case
Json.NET is really pluggable
Alex Frie
@agf2413_gitlab
Yeah you are right.
The use case is that I have a List<object> that can contain both primitives and objects.
I will try and look at a custom serialiser, or changing the structure to not have primitive types in the list. Thanks :)
Jeremy D. Miller
@jeremydmiller
Or just configure Newtonsoft to always embed type information. That might knock out some of the Linq querying though
JT
@Hawxy
Hello, mind if I get a review of #1769? If you're all fine with that direction, I'd like to get that first pass merged in and create an issue + continue with additional annotations whilst I'm on easter break.
Oskar Dudycz
@oskardudycz
Hi, I’ll try to review this today when I’ll be in front of computer 👍
1 reply
Jeremy D. Miller
@jeremydmiller
Hey world, here’s my latest “state of the V4 release”: https://github.com/JasperFx/marten/discussions/1734#discussioncomment-575826
^^^ @oskardudycz @mysticmind @Hawxy @JohnCampionJr
Tl;dr: Maybe we could shoot for the end of April? With a few more stories that aren’t breaking changes falling off to a 4.1?
Jeremy D. Miller
@jeremydmiller
@oskardudycz I think I’m going to need your help with #1611, #1612, & #1613 from a conceptual “what should this do” angle. I think #1612 is the only one that has to go into v4.
Nikodem Rafalski
@nikodemrafalski
Hi guys, have anyone expierience such issue before? Marten at start tries to create indexes that already exist
I use 3.13.4
i was doing some clueanup in my db roles
there is a new role that is an owner of everything object in schema, but still Marten is somehow assuming that indexes do not exist and need to be created
i use autoCreate.CreateOrUpdate
Jeremy D. Miller
@jeremydmiller
It’s quite possible that whatever the user name Marten is connecting to in Postgresql doesn’t have rights to read the metadata describing the tables. When that happens, the queries don’t fail, but return no data, so Marten always thinks everything is missing.
Jeremy D. Miller
@jeremydmiller
“there is a new role that is an owner of everything object in schema” — and that’s very likely at the core of your problems here.
Nikodem Rafalski
@nikodemrafalski
any hint where could i place a breakpoint, where does Marten introspect the db schema and issues queries to generate patch?
Look, Marten’s change management is somewhat brittle in the face of customized Postgresql setup. If you’re playing around with postgres roles, users, permissions, whatnot, you might just have to do more manual database migrations to compensate.
Nikodem Rafalski
@nikodemrafalski
sure, I know I have to - I just messed with my roles too much (seemed like a causal password rotation but apparently it was not ;) Thanks for pointing me to the SQL :)
Jeremy D. Miller
@jeremydmiller
If this is really the issue, it’s come up once or twice before. The first time led to me losing my temper a little bit in a meeting with my boss at the time and the DBA manager who was making my life miserable.
Nikodem Rafalski
@nikodemrafalski
ok, it was it
but it was not missing permisssion
in the query you linked there's a third query in the batch - the longest one looking for indexes
and its last join is with pg_users - here my problem occuers
my table is owned by a user, who can't login (a role)
it would be enough to change the join to pg_roles
i'll submit a pr later, and as a quick fix just alter my role with login;
Jeremy D. Miller
@jeremydmiller
:thumbsup:
johncj-improving
@johncj-improving

I have a few questions about Marten 4.0. Let's start with these:
Are there any scenarios in which an event that is handled by a Create method would NOT be the first event in a stream?

Why does Append (and friends) return a StreamAction? Does anyone do anything with it?

JT
@Hawxy
I noticed netstandard2.0 support was dropped in Baseline this week, making it incompatible with Marten, was that intentional?
Oskar Dudycz
@oskardudycz
I’m not sure. But I’m fine with keeping just 2.1
Btw. I think that some of you may find my latest post helpful: https://event-driven.io/en/how_to_create_projections_of_events_for_nested_object_structures/
Jeremy D. Miller
@jeremydmiller
@Hawxy Yes. I’ve bumped Marten to netstandard2.1 in my local branch as well. Just to eliminate the angry EOL messages. I moved some very basic utility code from Marten to Baseline this week, and that’s what you’re seeing.
JT
@Hawxy
Ah, interesting. netstandard2.0 isn't EOL itself, is the goal to permanently put .NET Core 2.x and NETFX in the bin for v4?
JT
@Hawxy
Well, NETFX is already unsupported, I suppose it's more of a final nail in the coffin for .NET Core 2.1.
Jeremy D. Miller
@jeremydmiller
I might have misunderstood then. I’ll put Baseline back to netstandard2.0 + .Net 5.0.
JT
@Hawxy
:thumbsup: We had a discussion about it a while ago and you wanted to keep Core 2.1 support until it's EoL later in the year, so I thought dropping it all of a sudden was a tad unusual :)
Jeremy D. Miller
@jeremydmiller
Here’s what it is in my local branch: <TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
we can back it up to netstandard2.0;net5.0
but you do get compiler warnings when you do that
JT
@Hawxy
You're getting EoL warnings for the netstandard target?
Jeremy D. Miller
@jeremydmiller
Yes
JT
@Hawxy
That doesn't make much sense.....netstandard is just an API baseline for multiple targets and has no prescribed end of life.
Jeremy D. Miller
@jeremydmiller
I’ve said that I may have been mistaken. Can we just agree top roll Baseline back to netstandard2.0 and .net 5.0, then the same on Marten and carry on?
JT
@Hawxy
For sure :)
JT
@Hawxy
Do you mind if I do nullability annotations for baseline? Some of the extensions perform empty/null checks of which the analyzer is completely oblivious to.
Jeremy D. Miller
@jeremydmiller
If you’re up for that, go for it
JT
@Hawxy
:thumbsup: