Noticed a breaking change when enabling/disabling actions for certain resources #6197
Replies: 7 comments
-
Yes, see #5157 |
Beta Was this translation helpful? Give feedback.
-
|
We could look into just returning an empty array instead of resolving |
Beta Was this translation helpful? Give feedback.
-
That would be a good solution I think. |
Beta Was this translation helpful? Give feedback.
-
|
@crynobone we have As a compromise, what do you think about such behavior?
|
Beta Was this translation helpful? Give feedback.
-
|
Or could we have it as a global setting? Just something like this |
Beta Was this translation helpful? Give feedback.
-
|
Can you update your actions to use |
Beta Was this translation helpful? Give feedback.
-
|
It would be a fine workaround if the resource was passed to the
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
At 4.32.8 you guys fixed this issue (see changelog):
Previously, when we had
canRun()returnfalse, the action would not show up in the dropdown:Now, after that fix, it shows that action in the dropdown (but it's disabled now):

Is it really intended now that these actions will always show up now when they can't be run? Even though they're disabled now.
This change introduced a bug in our system as we had some custom logic inside the
{AnyNovaAction}@fieldsmethod. The thing is before that update, Nova would not call that method if the action cannot be run. Now, it will always run that method even though that action is disabled now.Steps to reproduce
fields()method (put some logging just for example)canRun()to always returnfalsefields()method won't run.fields().Beta Was this translation helpful? Give feedback.
All reactions