Commit Graph

510 Commits

Author SHA1 Message Date
Trisha Anand
f882ffcdf3 Fetching the providers from the Marketplace using webclient. Introduced a temporary end point to support the new source for Providers 2020-04-01 18:53:39 +00:00
Trisha Anand
f51751aba8 Merge branch 'bug/rest-api-post-body' into 'release'
Fixing the double escaping to a single escape.

See merge request theappsmith/internal-tools-server!249
2020-04-01 11:54:16 +00:00
Trisha Anand
8ef59460af Fixing the double escaping to a single escape. 2020-04-01 17:20:07 +05:30
Arpit Mohan
6bb9e3481a Merge branch 'feature/datasource-create-api' into 'release'
Datasource CRUD APIs

APIs for creating, updating, deleting and reading Datasource objects. This MR creates full data structure for Datasource as needed for DB sources.

Includes tests for creating and updating.

See merge request theappsmith/internal-tools-server!248
2020-04-01 08:50:36 +00:00
Shrikant Kandula
1f524827b9 Datasource CRUD APIs 2020-04-01 08:50:36 +00:00
Trisha Anand
b92557c480 Merge branch 'bug/handle-newline-mustache-replacement' into 'release'
Json serialisation fix : Double escape java to conserve \n

See merge request theappsmith/internal-tools-server!246
2020-03-30 09:45:39 +00:00
Trisha Anand
e4ab1635cc Double escaping java to support "\n" to be conserved through the proxy. 2020-03-30 15:11:25 +05:30
Arpit Mohan
189ef1d16c Merge branch 'hotfix/json-serialization' into 'release'
JSON serialization fix for dynamic binding

In the action execution, we now escape all the parameter values received in the dynamic binding. This is because Java unescapes values when it receives the HTTP request. Hence, ActionServiceImpl.execute() will escape the bindings again to ensure that the request to the backend API system still works.

See merge request theappsmith/internal-tools-server!245
2020-03-28 13:48:41 +00:00
Arpit Mohan
9ce82bdcb6 Fixing json serialization issue for new line and JSON bodies.
Now we escape all the bindings once on the server to ensure that the unescaping that Spring did is reversed.
2020-03-28 13:48:41 +00:00
Arpit Mohan
f1eb890c62 Merge branch 'bug/mongobee-indexes' into 'release'
Fix fields orders in compound indexes and duplicate slugs.

In the migration for creating slugs for existing organizations, we need to set unique slugs using the same logic as would be used when the organizations are created in the first place. For this, this MR updates the `addOrgSlugs` migration accordingly.

In the migration for **ensuring** (not necessarily **creating**) initial indexes, this MR changes the order of the fields in a couple of compound indexes. Unfortunately, if an compound index named `abc` exists with the field order `"f1", "f2"` and we try to **ensure** an index named `abc` with the field order `"f2", "f1"`, the ensuring fails with obscure errors. Although some resources online suggest that the field order in index does not matter, here, it does.

See merge request theappsmith/internal-tools-server!244
2020-03-28 11:15:50 +00:00
Shrikant Kandula
35a2722305 Fix add-slug migration messing up existing slugs, if any.
Migrations should be more resilient in regards to existing data.
2020-03-28 11:15:50 +00:00
Arpit Mohan
e6830ed6a4 Merge branch 'bug/mongobee-indexes' into 'release'
Use mongock for migrations.

Mongock is a fork of Mongobee with a better integration with
Spring. It also does not suffer from trying to access the
`system.indexes` collection.
See https://github.com/mongobee/mongobee/pull/87.

See merge request theappsmith/internal-tools-server!243
2020-03-28 05:19:56 +00:00
Shrikant Kandula
31fa5a66f1 Use mongock for migrations.
Mongock is a fork of Mongobee with a better integration with
Spring. It also does not suffer from trying to access the
`system.indexes` collection.
See https://github.com/mongobee/mongobee/pull/87.
2020-03-28 10:08:11 +05:30
Shrikant Kandula
bfa0453a27 Merge branch 'feature/mongodb-migrations' into 'release'
MongoDB Migrations and Organization Slug

See merge request theappsmith/internal-tools-server!241
2020-03-27 14:52:25 +00:00
Shrikant Kandula
0947ddcd0f Remove findByName method for Organization domain.
Organization names are no longer unique, so this method
doesn't make as much sense. The `findBySlug` should serve
in it's place.
2020-03-27 14:52:25 +00:00
Arpit Mohan
a46efda121 Merge branch 'bug/refactor-widget-name' into 'release'
Refactor of names shouldn't be allowed if there is no DSL present in the layout

See merge request theappsmith/internal-tools-server!242
2020-03-25 12:54:23 +00:00
Trisha Anand
89215fab43 In case of the erroneous state of no DSL, don't allow refactor names. 2020-03-25 18:19:27 +05:30
Trisha Anand
acb7437c6b Merge branch 'bug/add-to-page-transient-fields' into 'release'
Transient fields being set before returning the created action in case of rapid api template

After adding a rapid api template, the action created was being returned. This has been extended so that the transient fields required for UI are also set before returning the created action.

See merge request theappsmith/internal-tools-server!240
2020-03-24 19:15:02 +00:00
Trisha Anand
a7cceaf0f1 After adding a rapid api template, the action created was being returned. This has been extended so that the transient fields required for UI are also set before returning the created action. 2020-03-24 19:15:02 +00:00
Trisha Anand
3b6c043637 Merge branch 'feature/add-pluginid-action' into 'release'
Added transient field plugin id to set in action everytime its read.

See merge request theappsmith/internal-tools-server!239
2020-03-24 11:47:17 +00:00
Trisha Anand
c12cb88265 Added transient field plugin id to set in action everytime its read. 2020-03-24 17:13:30 +05:30
Arpit Mohan
f91e393172 Merge branch 'bug/email-from-name' into 'release'
Show Appsmith as the From name in sent emails.

See merge request theappsmith/internal-tools-server!236
2020-03-20 08:24:28 +00:00
Shrikant Kandula
60e9a1f18e Show Appsmith as the From name in sent emails. 2020-03-19 18:29:13 +05:30
Trisha Anand
d009e91e9d Merge branch 'feature/property-pane-jsonobject' into 'release'
Moving the propertyPane config to generic JSONObject

See merge request theappsmith/internal-tools-server!234
2020-03-19 07:08:09 +00:00
Arpit Mohan
135280abaa Moving the propertyPane config to generic JSONObject
This ensures that the client can change the config at will without depending on the platform team to add the field to the POJO.

Also deleting redundant classes and controllers for propertyPane and Widget. These are no longer required and can be removed from the codebase.
2020-03-19 12:34:24 +05:30
Trisha Anand
aaf2f12b29 Merge branch 'feature/url-encode-restapi' into 'release'
Rest API and Rapid api plugin url encode the query parameters.

See merge request theappsmith/internal-tools-server!232
2020-03-18 15:09:35 +00:00
Trisha Anand
44d5dccbbb Rest API and Rapid api plugin url encode the query parameters. The Providers returned are sorted by sortOrder in ascending order 2020-03-18 20:35:50 +05:30
Trisha Anand
4961f6ef23 Merge branch 'feature/remove-cred-steps-from-GET-providers' into 'release'
Credential steps should only be written but not read for Providers to reduce the size of response

See merge request theappsmith/internal-tools-server!230
2020-03-18 09:13:54 +00:00
Trisha Anand
0b7b4716db Credential steps should only be written but not read. 2020-03-18 14:40:02 +05:30
Trisha Anand
e73b64dd3f Merge branch 'feature/provider-update-data-cleanup' into 'release'
Updated Provider to include fields to help with display and sort order

See merge request theappsmith/internal-tools-server!229
2020-03-18 09:03:21 +00:00
Trisha Anand
fad606a156 Updated Provider to include fields to help with display and sort order 2020-03-18 14:21:38 +05:30
Trisha Anand
89fb927a77 Merge branch 'feature/rapid-api-plugin' into 'release'
Rapid API Plugin

See merge request theappsmith/internal-tools-server!228
2020-03-17 18:19:22 +00:00
Trisha Anand
015713f409 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-17 18:19:22 +00:00
Shrikant Sharat Kandula
8e92189eb5 Merge branch 'feature/better-error-messages' into 'release'
Use updated short error messages.

Updated error messages to use the short messages from Notion page titled "Product (error) messages".

See merge request theappsmith/internal-tools-server!227
2020-03-17 12:02:43 +00:00
Shrikant Sharat Kandula
3679613561 Use updated short error messages. 2020-03-17 12:02:43 +00:00
Trisha Anand
edd640a722 isJsConvertible is a boolean, not a string 2020-03-13 15:26:15 +05:30
Trisha Anand
89a9baebac Added label isJsConvertible to the config 2020-03-13 15:25:20 +05:30
Trisha Anand
96ca03f852 Merge branch 'hotfix/categories-arraylist' into 'release'
Get all categories now return Mono of List instead of Flux.

See merge request theappsmith/internal-tools-server!226
2020-03-12 14:35:42 +00:00
Trisha Anand
1d404cb9bf Get all categories now return Mono of List instead of Flux. 2020-03-12 20:01:43 +05:30
Trisha Anand
7c1434e274 Merge branch 'feature/action-provider-fields' into 'release'
Transient Provider fields added in Action which are filled before an Action is read.

See merge request theappsmith/internal-tools-server!225
2020-03-12 13:21:03 +00:00
Trisha Anand
2543be8668 Provider fields added with the transient property which is set for Actions when they are read. 2020-03-12 18:46:30 +05:30
Arpit Mohan
cc676e3393 Merge branch 'feature/mono-cache' into 'release'
Correcting the writeKey for Segment in Staging

Also adding Mono.cache in the user invite flow to ensure that the same Mono is not executed multiple times.

See merge request theappsmith/internal-tools-server!224
2020-03-12 11:18:22 +00:00
Arpit Mohan
0c5fc27450 Correcting the writeKey for Segment in Staging
Also adding Mono.cache in the user invite flow to ensure that the same Mono is not executed multiple times.
2020-03-12 16:44:31 +05:30
Trisha Anand
2a8da8293c Merge branch 'feature/rapid-api-plugin' into 'release'
Fixing null pointer exception during add to page

See merge request theappsmith/internal-tools-server!222
2020-03-11 19:31:22 +00:00
Trisha Anand
6050b370d4 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-11 19:31:21 +00:00
Trisha Anand
5927271c71 Merge branch 'feature/rapid-api-plugin' into 'release'
Partial Rapid API Plugin + Minor bug fix.

See merge request theappsmith/internal-tools-server!218
2020-03-11 17:16:15 +00:00
Trisha Anand
b17fae8e44 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-11 17:16:15 +00:00
Trisha Anand
f5eab5b5cf Merge branch 'feature/get-categories-marketplace' into 'release'
Get all categories for provider added & get providers without category returns Business Software only

See merge request theappsmith/internal-tools-server!221
2020-03-11 13:03:50 +00:00
Trisha Anand
668b91665d 1. Added an endpoint to get all categories.
2. When provider is being fetched without a category, only Business Software category providers are returned.
2020-03-11 13:03:48 +00:00
Arpit Mohan
ec7e2c67b5 Merge branch 'feature/remove-document-version' into 'release'
Removing document version from all the Mongo documents.

The version field is causing too many OptimisticLockFailureExceptions when we save or update documents in the DB.

Also adding Origin header to the user invite flow so that we can send the correct links to the user

See merge request theappsmith/internal-tools-server!220
2020-03-11 12:55:50 +00:00