-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Created by field can't have null value #6597
Comments
I think it does have data but the issue is the edit mode of the createdBy field which makes the value disappear (we made createdBy nullable because we couldn't backfill some of the old data, but all new records should have a non-null createdBy) |
@FelixMalfait I checked it using REST API and records in:
While I'm trying to find such person, REST API returns empty record meaning this person does not exist. |
I'm not yet convinced there's really an issue here? As long as createBy is nullable (because of historical data), it can make sense to keep a null createdBy in the seeds imo |
Okay, then what about the case where someone creates new Opportunity object but later they changed their job and their account was deleted? What's the business logic flow for it? I imagine that's the result of it (missing data in createdBy) and it should be fixed. |
I found something weird, in Twenty workspace Opportunities with Jony Ive don't have data in Created by column but in Apple workspace, Opportunities have normal visible data Edit: that's because user Jony Ive exists in Apple workspace but not in Twenty workspace, so Twenty workspace, while it has correct data, can't return it due to missing record in database. |
Ah yes good catch, that should be an easy fix in the seeds! You can replace in |
Sure, I'll create a PR. |
@FelixMalfait I have scenario to reproduce this bug, while my changes fixed the problem with "wrong" data, it still exists (the business logic flow I wrote earlier) Scenario:
Actual: Created by field has missing data |
Scenario:
Actual: Created by field has no data at all in some cases
Expected: Created by field must have data, if anything occurs leading to showing or adding new record, then error should be thrown.
The text was updated successfully, but these errors were encountered: