Commit Graph

418 Commits

Author SHA1 Message Date
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
48f50ba42f Merge branch 'feature/3p-extended' into 'release'
Extended the ActionConfiguration & Property

See merge request theappsmith/internal-tools-server!196
2020-02-14 08:22:12 +00:00
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
a68aaf352b Merge branch 'feature/temp-3p-integrated' into 'release'
CRUD for Providers and Templates

See merge request theappsmith/internal-tools-server!195
2020-02-14 06:32:35 +00:00
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
474b729c56 Merge branch 'feature/mock-3p' into 'release'
Mock apis for 3P frontend work

See merge request theappsmith/internal-tools-server!193
2020-02-07 09:05:14 +00:00
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
470974ee50 Merge branch 'hotfix/user-create-org' into 'release'
Refactoring the code to fix bug where a user creating an organization wasn't...

See merge request theappsmith/internal-tools-server!191
2020-02-05 07:54:30 +00:00
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
ec07fb5162 Merge branch 'feature/archive-page' into 'release'
Adding functionality to archive page in an application

The code for archiving an application has been moved to ApplicationPageService so that both the PageService and ApplicationService can access it. This ensures that we follow the same code path when archiving an application and when archiving pages.

See merge request theappsmith/internal-tools-server!190
2020-02-05 03:12:55 +00:00
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
231a6e1c6a Merge branch 'feature/mongo-soft-delete' into 'release'
Adding default implementation in BaseRepositoryImpl for default JPA queries defined by Spring Data.

See merge request theappsmith/internal-tools-server!189
2020-02-04 12:02:51 +00:00
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
e3c83d700b Merge branch 'bug/moveActionDraftSave' into 'release'
Action+Draft should be saved in move action instead of simply pulling moving the saved action to another page (discarding any edits)

See merge request theappsmith/internal-tools-server!188
2020-01-31 12:45:04 +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
4c35c6bce5 Merge branch 'bug/updateLayoutFailing' into 'release'
UpdateLayout timing out : If the json path key contains the action itself, then it should be removed from the dependents of the action

See merge request theappsmith/internal-tools-server!187
2020-01-31 12:01:07 +00:00
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
06f72df03a Merge branch 'feature/mongo-soft-delete' into 'release'
Adding soft delete for application domain object and custom repository functions

This change adds custom implementations of the following for Mongo DB 
1. Factory Bean - The bean which instantiates the factory
2. Factory - The factory class that instantiates the custom query lookup strategy class
3. QueryLookupStrategy - The class that adds default filtering for delete=true records from the DB. 

At this moment, this change will only work for custom repository functions. Default repository functions exposed by JPA still don't acknowledge the custom query lookup strategy. Refer to: https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#repositories.custom-implementations for details on how to do this.

See merge request theappsmith/internal-tools-server!186
2020-01-31 09:34:36 +00:00
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
9f13e199b9 Merge branch 'feature/onLoadActionDependencies' into 'release'
Page load actions also now contain all the dependent GET actions

See merge request theappsmith/internal-tools-server!182
2020-01-30 09:48:48 +00:00
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
2695caafd7 Merge branch 'bug/add-user-to-new-organization' into 'release'
When user creates an organization, the user automatically gets added to the said org.

See merge request theappsmith/internal-tools-server!184
2020-01-30 09:24:31 +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
Trisha Anand
f1b783f6c1 Merge branch 'feature/mongo-audit' into 'release'
Adding Mongo Audit

See merge request theappsmith/internal-tools-server!183
2020-01-30 06:15:21 +00:00
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
a83bf9844c Merge branch 'hotfix/undo-logs-debug' into 'release'
Undo the logs added for pagination

See merge request theappsmith/internal-tools-server!181
2020-01-29 10:51:20 +00:00
Trisha Anand
655e26a986 Removing logs added to debug release for pagination. 2020-01-29 16:17:42 +05:30
Trisha Anand
3ed45f8308 Merge branch 'bug/duplicate-key-error-status-code' into 'release'
logs to help debug pagination issue

See merge request theappsmith/internal-tools-server!179
2020-01-29 10:22:22 +00:00
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
f10405cca9 Merge branch 'hotfix/delete-app-acl' into 'release'
Adding permission to delete the application by a user

See merge request theappsmith/internal-tools-server!178
2020-01-29 09:26:15 +00:00
Arpit Mohan
8e8152ea63 Adding permission to delete the application by a user 2020-01-29 14:52:45 +05:30
Trisha Anand
86df807ed5 Merge branch 'bug/duplicate-key-error-status-code' into 'release'
In case of duplicate key, send the application error code instead of http error code

See merge request theappsmith/internal-tools-server!177
2020-01-29 08:50:51 +00:00
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
094de512f8 Merge branch 'hotfix/isPaginatedNullPointer' into 'release'
Null pointer exception being observed for actions which are not being paginated when executed.

See merge request theappsmith/internal-tools-server!176
2020-01-29 05:38:45 +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
254f009242 Merge branch 'feature/action-pagination' into 'release'
Handle server side pagination in action

See merge request theappsmith/internal-tools-server!174
2020-01-28 14:41:00 +00:00
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
Arpit Mohan
071171c26d Merge branch 'bug/move-action-invalid-missing' into 'release'
Bug : After moving action, the action's isValid field becomes null leading to null pointer error.

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.

See merge request theappsmith/internal-tools-server!175
2020-01-27 09:17:46 +00:00