-
Notifications
You must be signed in to change notification settings - Fork 79
Fix type error when e.with() wraps unlessConflict() #1279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@scotttrinh any chance we can get this in? also the "Regression Tests" have been hanging this whole time with no way for me to inspect their status - do they need to complete? |
|
@clarkg Apologies for the delay here. I have to kick off the CI runs manually due to security settings on the org, which I've just done. I'll get this merged today. |
|
@scotttrinh no worries, that makes sense. selfishly I was being lazy and was YOLOing the test without actually setting up a test env. just attempted to fix the latest test failure, hope it works this time |
|
@scotttrinh omg i'm so sorry - i read fwiw i totally acknowledge my laziness here and apologize for the thrash asking you to re-run the tests, but it is surprising and adds too much friction to contribute. i contributed to Expo last week and they just automatically kickoff tests which let me pretty easily YOLO contribute |
It's all good: the rule is that if you've never had a PR merged, we have to manually trigger them just to add a bit of trust in the PR process. Actions have pretty powerful capabilities, so our security stance has been to be a bit more careful than the default in GitHub. Once we've merged this PR, your subsequent contributions (if you ever come back! 🙈 ) will not require this manual intervention. I also acknowledge that onboarding someone to being able to run the tests themselves locally is not great at the moment, and I'll work on that, too! |
|
@scotttrinh thanks. now finally getting to a more meaningful error, but probably still dumb Q: what's wrong with this though - |
with @scotttrinh 's suggestion Co-authored-by: Scott Trinh <[email protected]>
|
@scotttrinh ok this is it for sure, thanks again. last test just failed for formatting and I ran prettier |
|
@clarkg I'm going to push up a fix for a few issues, I just ran the tests locally and was able to iterate to the simplest form that works here after a few more rounds with the tests. Stand by! |
- `Person` is abstract, so use a concrete type - The `name` exclusive constraint is on the `Person` type, so cannot use an `else` - Selecting a constant value like `42` means that the cardinality will be `One` and the type will be that constant value: `42`
|
@scotttrinh thanks, sorry was losing my mind because i don't understand why that assertion wasn't
|
scotttrinh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we've been through a battle together @clarkg , thanks for sticking with us through that!

discussed in Slack with Scott - insertUnlessConflict should be
Withablealsothere actually weren't any previous tests explicitly testing
insertiswithable, but added one anyway forunlessConflict