Commit Graph

770 Commits

Author SHA1 Message Date
Shrikant Kandula
ff6b0ce6bc Increase restapi client buffer size from 256KB to 10MB. 2020-04-07 11:20:46 +00:00
Trisha Anand
1d8a0b1d95 Merge branch 'bug/pf4j-dependency-misplaced' into 'release'
The pf4j-spring dependency should be declared before appsmith-interfaces.

See merge request theappsmith/internal-tools-server!260
2020-04-06 08:23:00 +00:00
Shrikant Kandula
b8adb96608 The pf4j-spring dependency should be declared before appsmith-interfaces. 2020-04-06 13:44:22 +05:30
Shrikant Kandula
c12cbe0693 Merge branch 'fix-enum-put-not-working' into 'release'
Don't nest into Enum properties when copying bean properties.

See merge request theappsmith/internal-tools-server!258
2020-04-06 07:27:24 +00:00
Shrikant Kandula
6d24b996e1 Don't nest into Enum properties when copying bean properties. 2020-04-06 07:27:24 +00:00
Trisha Anand
69d32de888 Merge branch 'bug/delete-duplicate-dependency' into 'release'
Remove the pf4j dependency's duplicate from pom.xml

See merge request theappsmith/internal-tools-server!253
2020-04-06 07:22:12 +00:00
Trisha Anand
1896e9ec0c Merge branch 'feature/provider-pagination-total-count' into 'release'
This change handles the new DTO received from Marketplace Service over the...

See merge request theappsmith/internal-tools-server!255
2020-04-03 18:01:52 +00:00
Trisha Anand
2fd7b3378b This change handles the new DTO received from Marketplace Service over the network. The new DTO contains list of providers and total count of providers in the given category. If no category is mentioned, Business Software is assumed to be the category being fetched. 2020-04-03 22:59:38 +05:30
Shrikant Kandula
45cc747ac5 Merge branch 'feature/json-serialization-rest-api' into 'release'
To ensure that special characters like "\n", "\t", etc are preserved in the...

See merge request theappsmith/internal-tools-server!254
2020-04-03 14:27:10 +00:00
Trisha Anand
5911234276 To ensure that special characters like "\n", "\t", etc are preserved in the request json body, convert the json string into object. 2020-04-03 14:27:10 +00:00
Shrikant Kandula
00da41c7c7 Remove duplicate presence of pf4j-spring dependency. 2020-04-03 13:10:10 +05:30
Shrikant Kandula
742f5a194f Merge branch 'bug/remove-stacktraces-in-migrations' into 'release'
Don't include stack traces in plugins migrations.

See merge request theappsmith/internal-tools-server!247
2020-04-03 06:29:46 +00:00
Shrikant Kandula
e287583cfe Don't include stack traces in plugins migrations. 2020-04-03 06:29:46 +00:00
Trisha Anand
063df9d5ed Merge branch 'bug/marketplace-client' into 'release'
Marketplace Client bug fixes

See merge request theappsmith/internal-tools-server!252
2020-04-02 16:14:38 +00:00
Shrikant Kandula
45defbc6ce Merge branch 'bug/jsonpathkey-triple-braces' into 'release'
New parser for extracting interpolations from Mustache templates

See merge request theappsmith/internal-tools-server!250
2020-04-02 13:24:55 +00:00
Shrikant Kandula
e5fd048205 New parser for extracting interpolations from Mustache templates 2020-04-02 13:24:55 +00:00
Trisha Anand
4760bab964 Fixed the subscribe provider API that is being hit. 2020-04-02 18:24:03 +05:30
Trisha Anand
2e09f7923c Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release 2020-04-02 17:17:52 +05:30
Trisha Anand
dcb74a7be7 Updated the marketplace URL after deploying of marketplace service 2020-04-02 17:17:19 +05:30
Arpit Mohan
b7b7328c3f Merge branch 'release' into feature/acl-spring-object 2020-04-02 13:53:31 +05:30
Arpit Mohan
f165f0b772 Setting the active profile as environment in Rollbar configuration
This will help us segment errors from different environments more easily in the Rollbar UI
2020-04-02 13:49:53 +05:30
Arpit Mohan
01c4a2cc8b Updating the redis credentials for staging because Heroku keeps changing it 2020-04-02 13:22:11 +05:30
Arpit Mohan
1b18c4d6b3 Writing the initial test and implementation for the application user invite flow.
The permissions are being translated to the application domain. Need to also be translated to the page & action domain.
2020-04-02 13:21:01 +05:30
Trisha Anand
ab7327e603 Merge branch 'feature/marketplace-webclient' into 'release'
marketplace webclient : First draft of the marketplace client which interacts with the marketplace on a different URL. 1. Get the Providers and Templates given certain parameters. 2. Update the statistics when adding a template to page. 3. Subscribe to th

See merge request theappsmith/internal-tools-server!235
2020-04-01 18:53:40 +00:00
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
Arpit Mohan
4927e7b8d8 Adding a custom SecurityContextFactory to instantiate Mock anonymous user in the test cases.
Now we have a lot of flexibility around the SecurityContext during testing. We can instantiate any type of mock users bearing different roles & permissions.
2020-04-01 10:20:04 +05:30
Arpit Mohan
995bfd0bbd * Adding CustomRepository interfaces and implementations to all the domain objects in the classpath
* Adding generic get(Multivalue<String, String> params) implementation to the BaseService. Now all the domain obejcts can simply leverage this base implementation for get queries out of the box for all the fields.

* IMP: For some reason, the query by example has stopped working across the board. Even the super implementation in SimpleReactiveMongoRepository doesn't work. No idea why this is happening. For the time being, have moved to Criteria queries for the get request.
2020-04-01 10:00:18 +05:30
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
9f9098268b Fixing the user service test cases 2020-03-29 17:06:20 +05:30
Arpit Mohan
036bd3a392 Fixing the test cases and SeedMongoData
Only userServiceTest is failing now.
2020-03-28 23:07:31 +05:30
Arpit Mohan
381f2f6b4f Resolving merge conflicts from release branch 2020-03-28 21:52:35 +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