Skip to content
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

Fix broken canCreateEntity logic #8278

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

paw-hub
Copy link
Contributor

@paw-hub paw-hub commented Jan 15, 2025

If loading status is Done, then it is always OK to insert an entity.

Also rename to canInsertEntity as it is not creating an entity but inserting one into the list.

Fixes #8277

@paw-hub paw-hub changed the base branch from master to dev-mail January 15, 2025 15:22
@paw-hub
Copy link
Contributor Author

paw-hub commented Jan 15, 2025

I'm wondering if this really should have a test. It wasn't tested before, and no tests were deleted (that I know of) when the refactor was done, especially regarding entity updates.

If loading status is `Done`, then it is always OK to insert an entity.

Also rename to canInsertEntity as it is not creating an entity but
inserting one into the list.

Lastly add tests for CREATE as they were missing.

Fixes #8277

Co-authored-by: hrb-hub <[email protected]>
Co-authored-by: charlag <[email protected]>
@paw-hub paw-hub force-pushed the 8277-new-emails-not-appearing branch from d52d657 to 6d5bcac Compare January 16, 2025 10:05
Copy link
Contributor

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad on missing it during initial review!

@paw-hub paw-hub merged commit 6d5bcac into dev-mail Jan 16, 2025
5 checks passed
@paw-hub paw-hub deleted the 8277-new-emails-not-appearing branch January 16, 2025 10:18
@paw-hub
Copy link
Contributor Author

paw-hub commented Jan 16, 2025

My bad for misinterpreting the original code. The new tests will help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New emails don't appear in the inbox if the inbox is in view
3 participants