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(getModelMapForPopulate): mention model name in error #13408

Merged
merged 3 commits into from May 18, 2023

Conversation

hasezoey
Copy link
Collaborator

Summary

This PR adds the model name to a error, it is probably not the best method for debugging which model the problem is, but better than not mentioning it.
also adds a test-file for the the helper because i was unsure where to add the test

fixes #13406

Copy link
Collaborator

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

One minor nitpick, but otherwise LGTM. Thanks! 👍

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Minor comment, but decent idea overall

test/helpers/getModelsMapForPopulate.test.js Outdated Show resolved Hide resolved
@vkarpov15 vkarpov15 merged commit 02fd721 into Automattic:master May 18, 2023
18 checks passed
@vkarpov15 vkarpov15 added this to the 7.1.2 milestone May 18, 2023
@hasezoey hasezoey deleted the addModelNameToError branch May 19, 2023 08:05
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.

Mention model name in missing virtual option in getModelsMapForPopulate
4 participants