-
Notifications
You must be signed in to change notification settings - Fork 305
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
feat(api): add handling empty metadata suggestions #3608
feat(api): add handling empty metadata suggestions #3608
Conversation
e45293b
to
25149cc
Compare
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 almost missed the fixed time i reviewed it, looks like ERROR_CODE_EMPTY_METADATA_SUGGESTION
should be plural in the .js and the test file because the constants is ERROR_CODE_EMPTY_METADATA_SUGGESTIONS
.fn() | ||
.mockResolvedValueOnce('global') | ||
.mockResolvedValueOnce('enterprise'); | ||
metadata.getTemplates = jest.fn().mockResolvedValueOnce('global').mockResolvedValueOnce('enterprise'); |
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.
Are those formatting changes necessary?
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.
Prettier changed them by default, not sure if I have it set up wrong or were the latest guidelines not applied to this file
38e20b7
to
f039507
Compare
Throw an
ERROR_CODE_EMPTY_METADATA_SUGGESTIONS
error on receiving no AI suggestions for metadata.