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.
See merge request theappsmith/internal-tools-server!205
Added valueOptions to store the permitted values for a key (which is being sent by rapidApi today)
See merge request theappsmith/internal-tools-server!202
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.
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
This ensures consistent responses from different parts of our application. The client can then rely on the server to provide a constistent response structure.
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
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.
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.
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
Adding default implementation in BaseRepositoryImpl for default JPA queries defined by Spring Data.
See merge request theappsmith/internal-tools-server!189
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.
/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
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
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
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