Arpit Mohan
5b09427b6c
Removing the aspect and trying to implement the application repository directly
2020-03-04 18:57:46 +05:30
Arpit Mohan
29ae5fd360
Adding default implementation for applicationrepository to test
2020-03-04 18:57:46 +05:30
Arpit Mohan
63f4056a8a
Another WIP commit.
...
At the moment, we cannot fetch the user from securityContext in the SoftDeleteMongo Query Lookup
2020-03-04 18:57:46 +05:30
Arpit Mohan
d5ed147111
Getting the AclAspect to work for both Mono & Flux methods.
...
This is done by checking the return type of the function via the joinPoint method signature
2020-03-04 18:57:46 +05:30
Arpit Mohan
bd1c390402
Allowing user to define multiple AclPermissions for a given permission
...
Also adding proper Acl permissions on ApplicationService and PageService functions
2020-03-04 18:57:46 +05:30
Arpit Mohan
9f3197792a
WIP Commit to save the dev state
2020-03-04 18:57:46 +05:30
Arpit Mohan
f53a444635
Adding sessionId to the MDC logging to make debugging simpler
2020-03-04 18:16:12 +05:30
Trisha Anand
0cba85c95b
Filter providers by category added.
2020-03-04 15:24:14 +05:30
Trisha Anand
f97053a314
Marketplace GET Controller & Add an action/template to current page
2020-03-04 07:50:54 +00:00
Trisha Anand
65ceb24fcf
Merge branch 'hotfix/curl-parser-test' into 'release'
...
Fixing the curl parser test. Required setting a MockBean for pluginExecutor...
See merge request theappsmith/internal-tools-server!208
2020-03-02 09:07:33 +00:00
Trisha Anand
6b5faa6218
Added more detail to the invalid action error to pin point which action is invalid at least in the logs.
2020-03-02 14:34:48 +05:30
Arpit Mohan
d239f25697
Fixing the curl parser test. Required setting a MockBean for pluginExecutor bean and adding RestTemplateExecutor to the SeedMongoData file.
...
Also moving the plugin search in CurlImporterService to packageName instead of just name.
2020-02-29 10:05:10 +05:30
Arpit Mohan
2ad6d3f11b
Adding test cases in ActionService for some create Action workflows
2020-02-26 12:46:10 +05:30
Arpit Mohan
971c1c3c24
Fixing the spring data auditable issue by creating a dummy embedded Datasource object in Action
...
This is to ensure that setting the createdAt nad updatedAt properties by spring-data will still succeed even if the client doesn't provide us with the datasource details.
2020-02-26 12:45:07 +05:30
Arpit Mohan
249bbbde39
Adding the field shouldCacheResponse to the ActionExecutionResult to make the response caching generic across various plugins
2020-02-25 11:36:02 +00:00
Arpit Mohan
a835c84582
Merge branch 'feature/embedded-datasource' into 'release'
...
Creating an embedded datasource for the action
Now the user can create an embedded datasource as well as a saved datasource for the action.
This MR also fixes the import for a curl command by setting defaults when an action is created via the curl command. For now, the curl command only accepts short flags and not the long form flags.
See merge request theappsmith/internal-tools-server!204
2020-02-25 08:54:16 +00:00
Trisha Anand
609045747b
Creating an embedded datasource for an action.
...
Also setting defaults for an action when created via a curl command.
2020-02-25 08:54:16 +00:00
Arpit Mohan
3020af632b
When deleting a page, also remove it from the application page cache.
...
This fixes the bug where the application could not be published because it assumed a page existed when that page had been deleted.
2020-02-25 11:26:41 +05:30
Arpit Mohan
6a93b948b7
Increasing the request buffer size to 5 MB in the default application.properties file
...
This is required for file uploading widgets to be able to successfully upload files.
2020-02-24 14:30:11 +05:30
Arpit Mohan
786aca059e
Revert "Merge branch 'feature/embedded-datasource' into 'release'"
...
This reverts commit 35b49833615d88bc484207670b8ddf645f70d1ad, reversing
changes made to 29bee80c426b4c469bf8e774b7febf4f63b196b4.
2020-02-24 11:31:58 +05:30
Arpit Mohan
df2d7d2b3d
Increasing the maximum buffer size for requests to 5 MB
2020-02-24 10:53:45 +05:30
Trisha Anand
a3cd991fd3
Merge branch 'feature/embedded-datasource' into 'release'
...
Embedding datasource inside Action to get CURL Importer to work
See merge request theappsmith/internal-tools-server!200
2020-02-21 07:19:47 +00:00
Trisha Anand
a7881935da
This fixes the bug during refactor of name of a widget/action. This bug is recreatable if in the page there is an action with no jsonPathKeys. Handled the null pointer exception by first checking for the null pointer.
2020-02-21 07:19:46 +00:00
Trisha Anand
6109bd4b6c
Added valueOptions to store the permitted values for a key (which is being sent by rapidApi today)
2020-02-21 11:16:07 +05:30
Trisha Anand
977bac62dc
Added hashValue and scraperid to Template
2020-02-20 19:18:48 +05:30
Trisha Anand
1795be3c76
Added route parameters to action configuration to handle the scenario of rapid api putting variables in the path
2020-02-19 17:47:26 +05:30
Trisha Anand
8ea5d6663c
Making the Templates searchable by name, provider id, versionId, and Id
2020-02-19 14:07:49 +05:30
Trisha Anand
634a625906
1. Adding provider plan subscribed to and list of all the plans to Provider
...
2. Curl Importer should call create action instead of saving it directly so that all the defaults can be set up properly.
2020-02-17 10:08:35 +00:00
Trisha Anand
78bae54f55
Instead of using the latest docker image, using a particular docker image to overcome the latest docker bbuild being brocken issue.
2020-02-17 10:44:18 +05:30
Trisha Anand
62fba19011
Checking if the docker packaging step in CI/CD pipeline has fixed itself over the weekend.
2020-02-17 10:36:14 +05:30
Trisha Anand
88e1ce26e2
Removing docker packaging from release branch because it's getting stuck in Gitlab CI
...
Don't know why this is happening
2020-02-14 18:23:46 +05:30
Arpit Mohan
f76d40482d
Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release
2020-02-14 14:23:13 +05:30
Arpit Mohan
a05adf4293
Adding checks to ensure that we can remove the oauth2 allowed domains from the properties file
...
We now create another list from the value provided in the properties file. All checks in the codebase are performed against this list. This ensures that there are no NPE and exceptions when the property oauth2.allowed-domains is removed from the properties file.
2020-02-14 14:22:59 +05:30
Trisha Anand
96cd15e9ce
Extended the ActionConfiguration to accept rest api body in the form of key-value for form-data input. Also extended Property to include fields which would help the user in configuring the API (like description, mandatory, etc.)
2020-02-14 13:18:26 +05:30
Trisha Anand
2e11a5c2d5
Added datasource configuration to the provider to support the provider level configurations in rapid api
2020-02-14 06:32:34 +00:00
Arpit Mohan
23641a7e9a
Removing Google Auth domain restrictions for all environments
...
In the SaaS version, we want folks from all domains to be able to sign up to the platform
2020-02-13 10:03:25 +05:30
Arpit Mohan
b28073cd4b
Merge branch 'feature/acl-unauthorized-response' into 'release'
...
Correcting the error response returned by the AclFilter to match the ErrorDTO...
Correcting the error response returned by the AclFilter to match the ErrorDTO returned from controller functions
This ensures consistent responses from different parts of our application. The client can then rely on the server to provide a constistent response structure.
See merge request theappsmith/internal-tools-server!194
2020-02-07 10:15:48 +00:00
Arpit Mohan
bd65ba41e0
Correcting the error response returned by the AclFilter to match the ErrorDTO returned from controller functions
...
This ensures consistent responses from different parts of our application. The client can then rely on the server to provide a constistent response structure.
2020-02-07 15:41:45 +05:30
Trisha Anand
8661f71a80
Mock apis for 3P frontend work
2020-02-07 09:05:14 +00:00
Arpit Mohan
5031f40897
Merge branch 'feature/pagination-type' into 'release'
...
Renaming isPaginated to PaginationType to support different types of pagination on the frontend
If the API is paginated via the table's page number, then the next and prev URLs in the action don't play any role. Those fields are only required when the paginationType is of type URL. In all other scenarios, the action is executed normally.
See merge request theappsmith/internal-tools-server!192
2020-02-05 09:24:06 +00:00
Arpit Mohan
ffc7328e13
Renaming isPaginated to PaginationType to support different types of pagination on the frontend
...
If the API is paginated via the table's page number, then the next and prev URLs in the action don't play any role. Those fields are only required when the paginationType is of type URL. In all other scenarios, the action is executed normally.
2020-02-05 14:41:53 +05:30
Arpit Mohan
3fc9c36919
Refactoring the code to fix bug where a user creating an organization wasn't getting assigned the default groups
...
Now, regardless of the route with which an organization is created (invitation, signup or self-create by user), the correct groups and permissions are assigned to the user.
2020-02-05 13:20:09 +05:30
Arpit Mohan
440de34857
Refactoring the code to add page archival for a given application
...
The code for archiving an application has been moved to ApplicationPageService so that both the PageService and ApplicationService can access it.
2020-02-05 08:37:48 +05:30
Arpit Mohan
3838338099
Adding the permission to delete pages to acl.rego file
2020-02-05 08:34:32 +05:30
Arpit Mohan
fbada3051d
Adding default implementation in BaseRepositoryImpl for default JPA queries defined by Spring Data.
...
We override the SimpleReactiveMongoRepository with our custom implementation to add criteria for filtering soft deleted records.
Also, adding a new function to archive record instead of a hard delete.
2020-02-04 12:02:51 +00:00
Arpit Mohan
05cfa3f72f
Merge branch 'bug/actions-by-orgId' into 'release'
...
/actions should return all the actions of the current organization only.
Added organizationId to Action. This gets set only during create operation. Whenever get is performed on actions, it is filtered using organizationId.
See merge request theappsmith/internal-tools-server!164
2020-02-01 05:09:28 +00:00
Trisha Anand
c6a18aed87
/actions should return all the actions of the current organization only.
2020-02-01 05:09:28 +00:00
Trisha Anand
5e640a3608
This ensures that the action (with any changes) is saved along with the new page id.
2020-01-31 18:10:46 +05:30
Trisha Anand
7f52c34d55
If the json path key contains the action itself, then it should be removed from the dependents. This is because otherwise we would end up in an infinite loop trying to calculate the action dependents in a recursive fashion.
2020-01-31 17:26:52 +05:30
Arpit Mohan
0e7bbe1479
WIP commit on soft deletes
...
ANother WIP
2020-01-31 09:34:36 +00:00