-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: add new condition for form conditionals #38556
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ff07d7a
Sync changes from EE excluding enterprise directory
ayushpahwa 8aceaf9
Merge branch 'release' into chore/form-conditionals-editor-type
ayushpahwa dca4a76
Sync changes from EE excluding enterprise directory
ayushpahwa a186c9d
Merge branch 'release' into chore/form-conditionals-editor-type
ayushpahwa 919dff5
update: fix merge conflict with release
ayushpahwa cbc5441
update: use default value for context type
ayushpahwa 22f45b4
Merge branch 'release' into chore/form-conditionals-editor-type
ayushpahwa 89619fe
Merge branch 'release' into chore/form-conditionals-editor-type
ayushpahwa a783956
update: fix issue with cyclic deps
ayushpahwa 6ab7333
update: fixed lint warnings
ayushpahwa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { ReduxActionTypes } from "ee/constants/ReduxActionConstants"; | ||
| import type { QueryActionConfig } from "entities/Action"; | ||
| import type { DatasourceConfiguration } from "entities/Datasource"; | ||
| import type { ActionParentEntityTypeInterface } from "ee/entities/Engine/actionHelpers"; | ||
|
|
||
| // Called when a form is being setup, for setting up the base condition evaluations for the form | ||
| export const initFormEvaluations = ( | ||
| // TODO: Fix this the next time the file is edited | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| editorConfig: any, | ||
| // TODO: Fix this the next time the file is edited | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| settingConfig: any, | ||
| formId: string, | ||
| ) => { | ||
| return { | ||
| type: ReduxActionTypes.INIT_FORM_EVALUATION, | ||
| payload: { editorConfig, settingConfig, formId }, | ||
| }; | ||
| }; | ||
|
|
||
| // Called when there is change in the data of the form, re evaluates the whole form | ||
| export const startFormEvaluations = ( | ||
| formId: string, | ||
| formData: QueryActionConfig, | ||
| datasourceId: string, | ||
| pluginId: string, | ||
| editorContextType?: ActionParentEntityTypeInterface, | ||
| actionDiffPath?: string, | ||
| hasRouteChanged?: boolean, | ||
| datasourceConfiguration?: DatasourceConfiguration, | ||
| ) => { | ||
| return { | ||
| type: ReduxActionTypes.RUN_FORM_EVALUATION, | ||
| payload: { | ||
| formId, | ||
| actionConfiguration: formData, | ||
| datasourceId, | ||
| pluginId, | ||
| editorContextType, | ||
| actionDiffPath, | ||
| hasRouteChanged, | ||
| datasourceConfiguration, | ||
| }, | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.