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
d384dac7ec
Minor code clean up
2020-03-19 00:54:04 +05:30
Arpit Mohan
c5ac557961
Fixing the test cases for pageService and LayoutService
...
Also adding a helper query function in BaseAppsmithRepository that will make the code much cleaner for custom repository functions.
2020-03-19 00:24:30 +05:30
Arpit Mohan
9bf7bab85b
Moving organization repository functions to the custom class.
...
Also fixing the SeedMongoData file with the seed data to correspond to the changes made in the OrganizationRepository. We will default to using the mongoTemplate in the SeedMongoData file in the future so that we don't have to deal with ACL when we are simply populating the DB.
2020-03-18 22:56:32 +05:30
Arpit Mohan
fc6f225935
Adding user policy to manage organization and fixing the organization create flow to ensure the right permissions are set
...
Also adding test case for get applications. Now we will fetch all applications that the user has read permissions to by default. It's not dependent on the organization that they are a part of.
2020-03-18 16:09:47 +05:30
Arpit Mohan
c06e16db83
Making changes to get the page tests to pass. Also minor improvements to LayoutServiceTest
2020-03-18 14:47:00 +05:30
Arpit Mohan
19b0d53c22
Fixing the tests for page creation. Also adding policies when a new page is created.
2020-03-17 18:47:45 +05:30
Arpit Mohan
1f35bd6a07
Adding the policy hierarchy graph and the lateral policy graph
...
These graphs help us map policies that are inherited from the parent and also lateral policies that are assigned to the users given that the user has a particular permission. Currently, the hierarchy has been defined for org & application. Need to cascade it to more documents such as pages & actions.
2020-03-16 10:46:28 +05:30
Arpit Mohan
40964c3dfe
WIP commit of trying to create an inheritance structure with permissions.
...
Also, moving all permissions to READ & MANAGE. Not maintaining separate permissions to create, update & delete.
2020-03-06 09:29:45 +05:30
Arpit Mohan
1475d9124a
Fixing all the test cases for OrganizationService
...
We still need to add a lot more test cases to ensure that no functionality has broken. But this is a start in the right direction.
2020-03-05 19:35:24 +05:30
Arpit Mohan
c9a885d605
Modifying the create application flow in ApplicationPageService. All the tests in ApplicationService are passing
...
In order to create an application with valid permissions, we copy the relevant permissions from the organization of the user. This involves changes to the organizationService and OrganizationRepository as well.
2020-03-05 18:53:40 +05:30
Arpit Mohan
c813678f49
Adding the AclPermission enum to track all possible permissions globally
...
Also moving the argument AclPermission to the custom Repository interface level. This is to ensure that all the service functions can invoke the same repository function with different permissions based on their requirements.
2020-03-05 15:33:41 +05:30
Arpit Mohan
125982dabf
Adding the ARN object and parsing it for user login and while checking permissions in PreAuthorize & custom repo implementations
2020-03-04 18:57:46 +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
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
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
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
2e11a5c2d5
Added datasource configuration to the provider to support the provider level configurations in rapid api
2020-02-14 06:32:34 +00:00
Trisha Anand
670ca4cb7e
Added log for execute action
2020-01-15 09:13:27 +00:00
Trisha Anand
28e20ed3bd
Move action also works successfully in removing the action from the previous page's onLoadActions while moving to another page.
2020-01-13 12:07:10 +00:00
Trisha Anand
30b094c7a5
Curl Parsing for http. Extracts : Method, Headers, Query Params, URL (without query params). Yet to finish Body
2020-01-02 13:38:55 +00:00
Trisha Anand
cef09282eb
1. For creating the dependency graph, only APIs with HTTP method GET is used. The other actions used in the DSL are ignored.
...
2. Only dependencies of actions over other actions are counted. If the action is dependent on widgets, thats is not counted as a dependency and is left for the frontend to handle.
2020-01-02 13:38:40 +00:00
Arpit Mohan
f75331b116
Adding a flag to determine if we should send emails for that particular environment
2019-12-19 13:02:48 +05:30
Arpit Mohan
fdba2f62ef
Adding email sending capability when the user resets their password
2019-12-08 15:46:17 +00:00
Trisha Anand
046751b1ba
Working version where the top feeding nodes have been discovered in the tree. These would be page load actions.
2019-12-08 13:41:15 +00:00
Trisha Anand
23dbd4c78a
Create/Update user used password encoder to encode the user password before storing it in the database
2019-12-06 12:15:28 +00:00
Arpit Mohan
2b959f3af4
Renaming executorClass to packageName and adding uiComponent field to plugin object
...
This will allow the frontend to be able to dynamically load the component based on the configuration provided in the plugin object.
2019-11-29 13:43:13 +05:30
Arpit Mohan
fdb2f7a25d
Adding query parameters to filter get API calls. Specifically adding filter by plugin type in the get plugins API.
2019-11-27 10:51:43 +00:00
Trisha Anand
606c09067e
Fixes the test cases : create for PageService and ApplicationService is no longer used. Instead ApplicationPageService provides createPage and createApplication for the same. Updated the test cases to use the correct service to do this.
2019-11-27 08:17:46 +00:00
Trisha Anand
9a4fea1c56
Updates for getting the test cases for Organization service to run. Since unique name is a new constraint added, the old test cases didnt account for the same.
2019-11-19 09:02:14 +00:00
Trisha Anand
44e17eef7b
Added fields : flag isValid & string array of invalids to track if an action/datasource is invalid and what are the invalidities. This allows for the creation of actions and datasources even if they are invalid. Each update to the object leads to new computation of the validity.
...
When executing the isValid flag is tested and if false, the execution is stopped.
2019-11-18 12:20:10 +00:00
Trisha Anand
31cf94f08e
1. Added datasource validator function in the plugin interface which simply returns true for all the current plugins.
...
2. Added static method getPluginExecutor as a util function which removes duplicate code from across different files.
2019-11-14 08:50:02 +00:00
Trisha Anand
f81e22b1a5
Adding the capability to associate a user with multiple organizations
2019-11-13 10:23:23 +00:00
Trisha Anand
55a29c448c
Datasource without any configuration is not valid. Deter the user from creating one in such a scenario
2019-11-13 06:08:36 +00:00
Arpit Mohan
bcda3f0feb
Renaming all the references of resource to datasource
...
This renaming is reflective of the entity and it's potential values in the future.
2019-11-06 16:25:08 +05:30
Arpit Mohan
135b61a4bc
Adding mongo seed data that will be recreated whenever docker-compose causes the containers to restart
...
Note that we have to delete the Mongo volume for the inidtb script to take effect. Else, it will not execute. To be used only for testing right now. Will figure out a more robust solution later.
Also using Google's JIB Maven plugin to reduce our Docker image footprint. Will make container upload and download much faster
2019-10-16 11:27:02 +00:00
Trisha Anand
8658df95a9
All action executions now return object of type ActionExecutionResult. RestApiPlugin returns the same object which contains statusCode, headers and body.
2019-09-30 18:17:35 +00:00
Trisha Anand
566a245451
Segment & Rollbar Integration
2019-09-25 16:20:51 +00:00
Trisha Anand
bec8b2e0a1
Adding the docker-compose up command to the build
...
This should ideally run the mongo-seed container to restore the DB before each run
2019-09-24 12:14:41 +00:00
Trisha Anand
de55ec8f8e
Property Pane for Widget
2019-09-24 11:40:53 +00:00
Arpit Mohan
bb84e74c23
Re-arranging the files to fix bad merge that threw compile errors
2019-09-16 17:04:07 +05:30
Arpit Mohan
b3c987a9f9
Convert the project into a multi-module structure
...
We are moving to a multi-module structure so that different parts of the codebase can be exposed to the public while others can remain private. Using pf4j for plugin framework.
Also adding a build script `build.sh` which compiles the code and creates the `dist` folder for distribution purposes. Now we can build the code via
```
$ ./build.sh -DskipTests
```
2019-09-16 11:21:57 +00:00