Skip to content
Snippets Groups Projects
Unverified Commit b46d159a authored by Kamil Mielnik's avatar Kamil Mielnik Committed by GitHub
Browse files

[MLv2] [FE] Migrate supportsImplicitActions (#37570)


* Move hasAnyClauses from steps.ts to query-utils
- introduce query-utils file to avoid circular dependencies

* Update comment

* Update hasAnyClauses usage in Question

* Rename hasAnyClauses to hasAnyClausesAtStage, introduce new hasAnyClauses

* Rename query-utils.ts to stages.ts

* Move stage-related utils from query.ts to stage.ts

* Drop hasAnyClauses, rename hasAnyClausesAtStage to hasAnyClauses

* Rename stages.ts to stage.ts to make it consistent with stage.cljc

* Update function name

* Format code

* Update comment

* Add is-stage-empty to MLv2

* Add Lib.isStageEmpty and replace hasAnyClauses with it

* Fix typo in comment

* Update comment

* Update is-empty-clause to list all checked clauses

* Improve readability

* Export is-stage-empty via lib.core

* Revert "Fix typo in comment"

This reverts commit 286d412a5abe18589abc6f29b4774f39ff3d562a.

* Update comment

* Use implicit way of checking clauses presence in query

* Inverse and rename is-stage-empty to has-clauses

* Update comment

* Fix drop-stage-if-empty

* Use seq

* Cast to boolean

* Update src/metabase/lib/stage.cljc

Co-authored-by: default avatarmetamben <103100869+metamben@users.noreply.github.com>

* Add question mark to has-clauses

---------

Co-authored-by: default avatarmetamben <103100869+metamben@users.noreply.github.com>
parent 62728b8f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment