Commit Graph

2639 Commits

Author SHA1 Message Date
Arpit Mohan
52d5c4bdcd Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-07-22 13:12:14 +05:30
Arpit Mohan
33e2f90de3
Updating the path to download the script during AMI creation (#137) 2020-07-22 09:06:59 +05:30
Hetu Nandu
fe43680abc
Action test fixes (#130)
* Fixes for tests
* remove marketplace tests
* fix some other tests
* Simplify update datasource
* Add cypress env variables
2020-07-21 19:31:51 +05:30
Nikhil Nandagopal
74231120fe
Fix/deploy script (#135)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-21 18:21:41 +05:30
Arpit Mohan
05d9dac07f Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-07-21 17:44:45 +05:30
akash-codemonk
36258786c9
Show all db datasources in query pane (#134) 2020-07-21 17:42:35 +05:30
NandanAnantharamu
84c901181d
Updated locators and corrected typo. Also updated some routes (#133)
Co-authored-by: Nandan Anantharamu <Nandan@thinkify.com>
2020-07-21 17:35:06 +05:30
Manish
391347224d
adding base-install.sh and boot.sh (#92)
Adding the following files in order to create the AWS AMI 
* boot.sh
* base-install.sh
* configure-ssl.sh file to run to modify app.conf file of nginx and to run init-letsencrypt.sh which generate SSL certificate.

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2020-07-21 16:54:08 +05:30
akash-codemonk
30b8d3581b
Query pane refactor and fixes (#87)
* Query pane refactor and fixes

* Check if body exists

* Get pluginId from the datasource

* Move plugin image logic to selector

* Show info in new line on the datasource form page

* Update link text to Docs

* Handle string as run api response body

* Remove harcoded height

* Remove all references to ImageAlt except in selector

* Updata info text
2020-07-21 16:06:53 +05:30
Arpit Mohan
926c6eb0fe Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-07-21 16:02:17 +05:30
nupur
d0e60a1890
Mysql plugin integration (#53)
This commit adds the Mysql plugin to the Appsmith server. We also add a migration to ensure that this plugin is installed by default for all existing organizations. The migration also adds the plugin details into the DB.

Also adding the test cases for mysql plugin.

Co-authored-by: Arpit Mohan <arpit@appsmith.com>
Co-authored-by: Hetu Nandu <hetu@appsmith.com>
Co-authored-by: Arpit Mohan <me@arpitmohan.com>
Co-authored-by: Nupur Singhal <nupursinghal@Nupurs-MacBook-Air.local>
2020-07-21 16:01:42 +05:30
Shrikant Sharat Kandula
1fc582af08
When cloning examples organization, clone only public applications (#125)
* When cloning examples organization, clone only public applications

* Create template organization within the test

* Cleaned up test for cloning of examples organization

* Fix Mono chaning

Co-authored-by: Trisha Anand <trisha@appsmith.com>

* Create test apps and config simultaneously

Co-authored-by: Trisha Anand <trisha@appsmith.com>
2020-07-21 13:39:07 +05:30
Hetu Nandu
af65e1ca9f
Add property checks in evaluated widget (#95) 2020-07-21 12:29:49 +05:30
Arpit Mohan
67d0b0393a
Updating the import statement in Cypress test (#129) 2020-07-21 12:29:24 +05:30
Trisha Anand
30bbbd6e4e Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-21 11:02:02 +05:30
Trisha Anand
d1dd74018f
Bug fix : Update of datasource object leads to authentication field getting encrypted again. (#124)
* Datasource authentication object fields should only be encrypted during create or if the update object contains authentication object. Added a test case to check that update to any other field doesnt update the encrypted fields.

* Incorporated review comment
2020-07-21 10:53:03 +05:30
Arpit Mohan
a4fd349c0b
Fixing the sed command for mac os x in Nginx configuration template. (#126) 2020-07-20 17:51:10 +05:30
NandanAnantharamu
1d726dac20
Create Org related usecases (#84)
* Create Org related usecases

* Review comments incorporated

* Updated with env variables for test users and routes

Co-authored-by: Nandan Anantharamu <Nandan@thinkify.com>
2020-07-20 15:08:35 +05:30
Shrikant Sharat Kandula
55a6cc6614
Clone examples organization for every new user (#78)
* Trying to clone the examples repo on new user signup

* Working implementation of cloning examples organization on user sign up

* Fix personal org not being created when template org is missing

* A working version of cloning of examples organization on first-login

* Add docs for methods in ExamplesOrganizationCloner

* Refactor computing user's first name into a method

* Add some menial tests for examples organization cloning

* Use explicit permissions when fetching applications and datasources

* Fix template organization config name hard-coding
2020-07-20 13:07:31 +05:30
Shrikant Sharat Kandula
f9e1d4f1ad
Chore/remove implicit permissions (#90)
* Refactor implicit permissions in service methods as function arguments

* Revert an unintended change that got committed

* Fix permission variable name

Co-authored-by: Trisha Anand <trisha@appsmith.com>

Co-authored-by: Trisha Anand <trisha@appsmith.com>
2020-07-20 13:06:47 +05:30
vicky-primathon
4f47a8ad3f
Feature/table ui download data (#52)
* Created header for common functionalities in Table Widget

* Client side searching added in Table Widget. Action created for server side searching also.

* Columns visibility feature initial commit

* Column visibility list added in Table Widget

* Changed pagination designs in accordance with new layout. This enable user to jump page as well.

* Using colors values from constants

* Table widget pagination, numeric input page number clamped between 1 and total pages

* Adding tool tip to truncated values in table widget. Added AutoToolTipComponent that adds tooltip when text is truncated.

* Table data download changes. Added downlaod icon and button to table widget.

* Table data download changes

* Download table data as CSV implemented

* table data download, unused code removed

* Code review changes

* code review changes

Co-authored-by: Arpit Mohan <me@arpitmohan.com>
2020-07-20 11:34:05 +05:30
Arpit Mohan
eabe496fbd
Adding the /login endpoint to nginx configuration template during deploy process (#122) 2020-07-17 18:31:14 +05:30
Nikhil Nandagopal
05cf489398
Update README.md (#121) 2020-07-17 18:26:11 +05:30
Hetu Nandu
b6c710cfa2
Add support for run time params in action execution (#98)
Adds a third parameter to the Action.run function that can be referenced inside an action config
Usage
`{{ Api1.run(...,...,{key: value}) }}` inside property pane
`{{this.params.key}}` inside action pane

* You can reference data tree properties in the params values:
`{{ Api1.run(..., ..., { key: "Input1.text.toUpperCase()" })`
* Bindings can have both params and data tree values referenced. 
* Param values can be javascript functions
`body: {{ this.params.list.map(i => Input1.text + i ) }}`
2020-07-17 18:25:34 +05:30
Nikhil Nandagopal
70c4dd5964
Fix/deploy script (#111)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-17 15:29:28 +05:30
Arpit Mohan
dad70efcbd
Fixing the nginx configuration used as template during deployment (#115) 2020-07-17 01:05:42 +05:30
Arpit Mohan
8061de6418
Correcting the package step for client package step (#114) 2020-07-16 18:24:49 +05:30
vicky-primathon
290bb8d57c
Table UI breakages on scroll and empty cells fixed (#60)
* Added Button component in Table widget for actions

* Action button state loading added for Table widget

* Action button font-weight made as normal

* Table button loading state fixed. Table code refactored, rendering from props instead of state in ReactTableComponent

* Table widget action button alignment fixed

* Handled actions column changes

* added proper keys to useMemo for react table widget

* Code refactors and added dependency map with meta props and table data for computing columns

* Table UI breakages on scroll and empty cells fixed

* Handled empty rows in table widget

* Fixed last row cut issue

* Code review changes

* Added table widget component heights as enum

Co-authored-by: Arpit Mohan <me@arpitmohan.com>
2020-07-16 16:09:07 +05:30
Trisha Anand
d111df5e9e
Updated encryption setup in build and deploy script (#112)
* Incorporated review comments on encryption setup in build and deploy script.
2020-07-16 15:51:52 +05:30
Shrikant Sharat Kandula
140bfed24f
Disable the direct create methods for pages and applications (#109)
* Disable the direct `create` methods for pages and applications
* Create differently named versions of create methods to avoid ambiguity
* Removed unused pageService in DatasourceServiceTest
* Rename createPlain method to createDefault to better convey intent
2020-07-16 15:13:03 +05:30
Arpit Mohan
13d3fe3076
Changing the CSS locator for the Share button (#110) 2020-07-16 12:25:54 +05:30
Arpit Mohan
1060423b99
Modifying deploy script to replace nginx configuration at runtime (#106)
* Getting the script to work on Mac OS X Bash Version 3

* Correcting the nginx template configuration and Dockerfile for the appsmith-editor. Now any replaced environment variables will be replaced when the Nginx Docker container restarts.
2020-07-16 11:47:45 +05:30
Arpit Mohan
a9ed054cbb
Adding Github Action workflow to the client code base (#66)
This PR adds the build, test & package workflow to the client code base as well.

In order for us to run the Cypress tests, we also spin up a local server in a Docker container and run all our tests against that server. This ensures that our tests are faster to run as well.

We also introduce the concept of stubbing network requests by stubbing the API that fetches the property pane configuration from the server.

Results for the Cypress tests can be viewed at: https://dashboard.cypress.io/projects/eyxvp8/runs/
2020-07-16 11:20:46 +05:30
NandanAnantharamu
daeb39a8ce
Apipane fix (#108)
Co-authored-by: Nandan Anantharamu <Nandan@thinkify.com>
2020-07-16 10:30:51 +05:30
Trisha Anand
7389dc07bf Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-15 21:37:09 +05:30
Trisha Anand
04db3d4242
Bug Fix : Execute Action is not open for execution in public application. (#105)
* Opening the execute path & fetching db without permissions during execute path.
2020-07-15 21:36:35 +05:30
Trisha Anand
8368c223c8 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-15 20:15:42 +05:30
Trisha Anand
936c013b3b
Bug fixes : 401 for public applications + Empty set of actions for get in case cookies is anonymous (#104)
* Bug fixes :
1. Get actions in view mode should be open for unauthorized requests. Fixed that.
2. set transient fields in action is called post fetching all the actions (after taking care of all the permissions). At this point, we shouldnt be using permissions to fetch datasource.
2020-07-15 20:15:10 +05:30
Trisha Anand
146a383121 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-15 18:45:35 +05:30
Trisha Anand
20ae5fa546
Adding timeout in ActionViewDTO for the client to use to programmatically timeout on the execution request (#103)
* Adding timeout in ActionViewDTO for the client to use to programmatically timeout on the execution request.
2020-07-15 18:44:55 +05:30
Hetu Nandu
70955de703
Create fetch actions workflow for view mode (#102)
* Create fetch actions workflow for view mode

* Remove config from autocomplete results
2020-07-15 18:31:35 +05:30
Trisha Anand
fffe8e6230 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-15 17:54:04 +05:30
Trisha Anand
6bfed87e40
Added pageId to action view dto (#101)
* Added pageId in the ActionViewDTO and NPE check for setting the json path keys.

* Checking for both json path keys being null and not empty before copying the json path keys into action view dto.
2020-07-15 17:53:38 +05:30
Arpit Mohan
3affa82bdb Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-07-15 16:43:17 +05:30
Trisha Anand
212e98c4ba
Fixing test cases failing due to non unique names. (#100) 2020-07-15 16:42:53 +05:30
Trisha Anand
4b3ace9d9e Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-07-15 16:29:50 +05:30
Arpit Mohan
6c16cba4b9
Adding null checks before encrypting or decrypting the password in AuthenticationDTO object (#99)
This ensures that we don't run in NPE
2020-07-15 16:29:05 +05:30
Arpit Mohan
b23c8feb9c Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-07-15 15:49:37 +05:30
Trisha Anand
499d189d6b
Adding EE related environment variables into the docker.env.sh file (#8)
* Adding back marketplace and other EE related environment variable in EE repo
2020-07-15 15:48:37 +05:30
Arpit Mohan
c15f83dbc3
Adding configuration variables for MAIL_FROM and REPLY_TO in EmailConfig (#97)
The MAIL_FROM & REPLY_TO addresses default to appsmith@localhost. This should be changed in the generated docker.env file during deployment to actual values.

Most email providers will not send emails unless they originate from a valid sender ID.
2020-07-15 15:47:33 +05:30