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
Trisha Anand
c437d7fc3c
Fixed the run time issues seen with page load action dependency changes
2020-01-30 16:00:50 +05:30
Trisha Anand
77cfc0d9bd
All the page load actions and their dependent page load actions now are stored as part of on page load actions
2020-01-30 09:48:48 +00:00
Trisha Anand
4ba6344cfd
When user creates an organization, the user automatically gets added to the said org.
2020-01-30 09:24:31 +00:00
Arpit Mohan
15cbd266b3
Ignoring the createdAt, updatedAt and version fields in BaseDomain object.
...
This is because the client sends us the complete document as is. This causes conflicts in MongoDB for versioning and java Instant deserialization.
2020-01-30 12:55:33 +05:30
Arpit Mohan
d313f37f5c
Adding mongo auditing to add createdAt and updatedAt timestamps to the documents in the DB.
...
At the moment, reactive Spring does not support AuditorAware implementation which also inserts the username of the user making the changes. Reference: https://jira.spring.io/browse/DATACMNS-1231 .
2020-01-30 06:15:20 +00:00
Trisha Anand
655e26a986
Removing logs added to debug release for pagination.
2020-01-29 16:17:42 +05:30
Trisha Anand
d3769bad62
In case of duplicate key, send the application error code instead of http error code so that frontend can handle the duplicate key error gracefully
2020-01-29 10:22:21 +00:00
Arpit Mohan
8e8152ea63
Adding permission to delete the application by a user
2020-01-29 14:52:45 +05:30
Trisha Anand
c6da910c2b
In case of duplicate key, send the application error code instead of http error code so that frontend can handle the duplicate key error gracefully
2020-01-29 08:50:50 +00:00
Trisha Anand
a9dd24152c
Fixed the null pointer exception which is happening because of isPaginated field not being available for non paginated APIs
2020-01-29 11:04:48 +05:30
Trisha Anand
17f4a6f2e8
Handle server side pagination in action
2020-01-28 14:40:59 +00:00
Arpit Mohan
7764038ce9
Moving the form login & logout endpoints to /api/v1/login and /api/v1/logout
...
This is to ensure that when we deploy in production, we can add redirect rules on Nginx. Now /api and /oauth2 urls will proxy to the API server while all other URLs will proxy to the frontend server.
2020-01-28 17:12:46 +05:30
Trisha Anand
687b664011
Because the action was being saved directly, the isValid and invalid fields which are computed every time an action is updated, was not getting computed. isValid and invalids being null led to null pointer error after the action was moved. Fixed that by calling update instead of saving the action directly.
2020-01-27 09:17:45 +00:00
Trisha Anand
d1705a1931
Corrected receiving the response from String to byte[] array. This ensures that binary responses can also be handled. Added handling of content type Image.
2020-01-24 07:49:52 +00:00
Trisha Anand
ff56dc9661
Added controller end point to make a page default. When creating a new application, the default page created is set to default=true. Also, when returning pages by application id and by application name, the page's default status is returned as well as part of PageNameIDDTO
2020-01-23 14:45:05 +00:00
Trisha Anand
c9cf2f4b94
Removing enum for WidgetSectionName and converting to a String
...
This is to ensure that the frontend can create sections as per their requirement and not be mandated by an enum in the server codebase.
2020-01-23 09:36:44 +00:00
Trisha Anand
de722fff4e
UpdateLayout Null Pointer Exception : In case the layouts are null or the DSL is null, it should be handled gracefully.
2020-01-21 05:57:35 +00:00