- Return data type list along with action execution result so that the data can be displayed in the correct format.
- Handles these three data types for now : table, json, raw.
- If a plugin has already assigned the data type, then common handler is not used.
- Mongo plugin assigns the data types in the plugin specific flow i.e. does not use the common data type parse / assign method.
- To address review comments:
- added a new enum ActionResultDataType for data types. It is consumed by ParsedDataType. A list of ParsedDataType is returned by ActionExecutionResult
- parsed data in parallel using streams.parallel().
* WIP : untested
* Minor refactoring
* Added test case to assert escaping and unescaping of the table widget primary column keys
(cherry picked from commit 174ef284f0)
* Bug Fix : Escaping _id and _class from primary column keys before storing the DSL
* Fixed the test case failures.
* Updated the replacement strings for _id and _class to include appsmith keyword
(cherry picked from commit 4bf74f6434)
* add row colums styling to organisation settings fields
* add tests to make sure the grid layout is rendered
* added margin to make spacing look similar to before
* remove negative margin and reduce width
* added jest tests to make sure component mounts and that it has correct styles
* revert unnecessary changes related to cypress tests
* added strict checking for null to avoid ts errors
* use early returns on file empty
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
* use early returns on file empty
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
* fixed typo
* added findbytext for sync call
* removed unused imports
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
- add title to action execution errors to improve user experience
- all errors in AppsmithPluginErrors
- action execution related errors in AppsmithError : NO_CONFIGURATION_FOUND_IN_DATASOURCE, INVALID_ACTION, INVALID_DATASOURCE, INVALID_DATASOURCE_CONFIGURATION - as these are the likely errors in an action execution flow (excluding plugin specific flow) that might result from faulty action / datasource configuration by a user.
- title is returned as part of ActionExecutionResult.
- title is set in ActionExecutionResult on failure during action execution.
- In response to review comment - added a new BaseException class, so that both AppsmithException and AppsmithPluginException extend this base class. Also, refactored code to introduce setErrorInfo() function in ActionExecutionResult class to set its attributes.
- Some unrelated cleanup:
- catch PoolInitializationException for Postgres plugin and return AppsmithPuginException
- catch MongoTimeoutException and return AppsmithPluginException
* Annotation set up
* Removed annotation uses
* Redundant condition
* Commented out logging, retained for implementation
* Handling for Collection and Map parameterized types
* Removed comments
* Bug Fix : Escaping _id and _class from primary column keys before storing the DSL
* Fixed the test case failures.
* Updated the replacement strings for _id and _class to include appsmith keyword
* Feature : JSON Smart Substitution in Mongo Plugin
* Added BSON data type for Mongo substitution. Added test case
* Minor comment added
* Minor variable re-naming and correcting failing test cases.
* REST API : Escaping special characters in string before smart substitution
* Incorporated review comment
* added 2 states for path field
* added logic for compact only
* added small condition for no compact
* PR comments fixed
* removed redundant code
* added unit test for code editor functions
* Update app/client/src/components/editorComponents/CodeEditor/index.tsx
* setting cursor
setValue is resetting cursor position to the front. so will update at the end
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
* showing datasource
Exposing 'save as datasource' with empty path but in disable state till value is entered
* sending flag instead of value
* removed classname
Co-authored-by: Arpit Mohan <arpit@appsmith.com>