Skip to content

Conversation

@lpizzinidev
Copy link
Contributor

Fix #12604

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.

A minor comment. Also we'll have to merge this into 6.8, this is a new option

if (applyPlugins) {
const applyPluginsToDiscriminators = get(model.base,
'options.applyPluginsToDiscriminators', false) || !mergeHooks;
'options.applyPluginsToDiscriminators', false) || !mergeHooks || !mergePlugins;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not a fan of how mergePlugins applies here. Seems a little strange that mergePlugins also effectively disables applyPlugins.

Maybe instead we reuse applyPlugins instead of adding a new option?

used applyPlugins option in discriminator helper instead of creating new option mergePlugins
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.

Thanks 👍

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.

Option to disable applyPlugins for discriminator function

2 participants