Commit Graph

18100 Commits

Author SHA1 Message Date
Satbir Singh
507b9bd386 Fixing spaces issue in dynamic binding for tabledata. 2020-01-01 07:53:03 +00:00
Arpit Mohan
99746c9ce5 Merge branch 'feature/logout-handler' into 'release'
Adding a logout handler to redirect the client back to the login page

Adding a logout handler to redirect the client back to the login page after the user logs out of the application.

Also refactoring all the custom authentication classes into a single package to make it code organization clearer.

See merge request theappsmith/internal-tools-server!133
2019-12-31 09:35:36 +00:00
Arpit Mohan
08b70d0e7d Adding a logout handler to redirect the client back to the login page after the user logs out of the application. 2019-12-31 15:01:28 +05:30
Arpit Mohan
e74fb58c7a Merge branch 'hotfix/action-cached-response' into 'release'
Fixing bug where we shouldn't query the DB to find action and store cached result if it's a dry run

See merge request theappsmith/internal-tools-server!132
2019-12-31 08:47:59 +00:00
Arpit Mohan
8e2fde20a5 Fixing bug where we shouldn't query the DB to find action and store cached result if it's a dry run 2019-12-31 14:14:32 +05:30
Arpit Mohan
29d2d1e887 Merge branch 'feature/organization-list-bug' into 'release'
Bugfix: Returning only orgs that belong to a user

When the user lists the organizations for themselves, we should only return those orgs that belong to the user instead of all the organizations in the db.

See merge request theappsmith/internal-tools-server!131
2019-12-31 07:59:51 +00:00
Arpit Mohan
e0f26cc5ab Updating mongo seed.js to reflect the new domain objects when a new instance of Mongo is setup via docker-compose. 2019-12-31 13:25:33 +05:30
Arpit Mohan
ff6794e931 Fixing bug where we were returning all the organizations in the db instead of just the ones that belong to the user. 2019-12-31 13:25:07 +05:30
Hetu Nandu
e65b157154 Merge branch 'fix/bugs' into 'release'
Api Pane select api fix

See merge request theappsmith/internal-tools-client!209
2019-12-30 13:05:37 +00:00
Hetu Nandu
107e1fd6d2 Api Pane select api fix 2019-12-30 13:05:37 +00:00
Arpit Mohan
a4ecfc96c3 Merge branch 'feature/oauth2-success-redirect' into 'release'
Adding the redirect back to the client's index page on successful oauth2 login by the user

We use the referer header to find the client's endpoint and redirect to that endpoint once the OAuth2 login is successful. This is implemented via CustomServerOAuth2AuthorizationRequestResolver and AuthenticationSuccessHandler

See merge request theappsmith/internal-tools-server!130
2019-12-30 12:40:58 +00:00
Arpit Mohan
a663d8d38a Adding the redirect back to the client's index page on successful oauth2 login by the user
We use the referer header to find the client's endpoint and redirect to that endpoint once the OAuth2 login is successful. This is implemented via CustomServerOAuth2AuthorizationRequestResolver and AuthenticationSuccessHandler
2019-12-30 18:07:30 +05:30
Abhinav Jha
3d8c16fe18 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/fix-71 2019-12-30 16:35:30 +05:30
Satbir Singh
a07e6da417 Merge branch 'feature/sf' into 'release'
Replacing react base table with syncfusion table.

See merge request theappsmith/internal-tools-client!205
2019-12-30 10:02:23 +00:00
Satbir Singh
9fd99d5f48 Replacing react base table with syncfusion table. 2019-12-30 10:02:23 +00:00
Hetu Nandu
a7529e78d3 Merge branch 'fix/recursive-dynamic-binding-resolution' into 'release'
Recursive dynamic binding resolution

Fixes: #299 

See merge request theappsmith/internal-tools-client!207
2019-12-30 07:39:53 +00:00
Hetu Nandu
f1be938bb3 Recursive dynamic binding resolution 2019-12-30 07:39:53 +00:00
Hetu Nandu
705b38d708 Merge branch 'feature/codemirror-integration' into 'release'
Replace monaco-editor with Codemirror

See merge request theappsmith/internal-tools-client!204
2019-12-30 07:35:16 +00:00
Hetu Nandu
146899934a Replace monaco-editor with Codemirror 2019-12-30 07:35:16 +00:00
Abhinav Jha
d9b8059799 Focus widget on hover. Show property pane on double click 2019-12-27 15:40:04 +05:30
Abhinav Jha
a7a83119ee Drag all widgets on touch and move 2019-12-25 14:47:37 +05:30
Arpit Mohan
8ff5c7d1fc Merge branch 'feature/401-redirect' into 'release'
Responding with 401 unauthorized http response header for all unauthenticated requests

This ensures that the client can redirect to the login page whenever it receives the http status 401 in the response header. Now, the server is no longer responsible for redirecting to the login page. All server redirects have been disabled.

See merge request theappsmith/internal-tools-server!128
2019-12-23 14:49:05 +00:00
Arpit Mohan
d32eaf11d8 Responding with 401 unauthorized http response header for all unauthenticated requests
This ensures that the client can redirect to the login page whenever it receives the http status 401 in the response header. Now, the server is no longer responsible for redirecting to the login page. All server redirects have been disabled.
2019-12-23 20:15:33 +05:30
Trisha Anand
12d6c50604 Merge branch 'feature/action-caching' into 'release'
Successful action execution results are saved in the action.

See merge request theappsmith/internal-tools-server!127
2019-12-23 14:34:19 +00:00
Trisha Anand
f13356a6e2 Successful action execution results are saved in the action. 2019-12-23 20:00:46 +05:30
Abhinav Jha
78b56dd38b Merge branch 'feature/invite-users' into 'release'
Invite Users

Organization Dropdown
=====================
- User must be able to see 
  - The organization dropdown in the headers
  - The name of the organization in the header
  - A list of navigation options on clicking the header; in a dropdown
  - Navigate to the organization settings page on clicking "Organization Settings"
  - View a list of organizations on clicking "Switch Organization"

Invite Users Form
=================
- User must be able to
  - View the Invite Users header
  - Go back to the previous page on clicking "Cancel"
  - Add a list of email addresses in the User emails field by "Enter", "Space" and ","
  - Delete individual email address - by clicking on the close icon, and "Backspace"
  - Select a role for the set of emails
  - See a validation message for each of the user email fields and role select fields
  - Delete an entry of the "role -> emails" set by clicking on the "delete" icon at the end of each sets of fields
  - Add another "role -> emails" set by clicking on "Add more"
  - Submit the list of sets of " role -> emails" by clicking on Invite Users button


Other changes
=============
- Each of the protected pages will check for login on load
- When logged in and trying to access "/" (base URL), user will be redirected to the applications page
- User can navigate to the invite users page from the "Organization settings" page.
- Add black favicon for scaffolding pages, and orange for editor


See merge request theappsmith/internal-tools-client!203
2019-12-23 12:16:33 +00:00
Abhinav Jha
3a5aae9b97 Add favicon. Connect Nav Dropdown. Fix TagInputComponent. Fetch org and user details. Navigate to applications from /, Check for login 2019-12-23 12:16:33 +00:00
Hetu Nandu
6f356f5f00 Merge branch 'feature/path-params-sync' into 'release'
Sync path and params in api pane

Implements: #188 

See merge request theappsmith/internal-tools-client!187
2019-12-23 12:12:58 +00:00
Hetu Nandu
e82f5f3988 Sync path and params in api pane 2019-12-23 12:12:58 +00:00
Trisha Anand
3cd5a28ed6 Merge branch 'feature/http-redirect' into 'release'
Handles http redirect upto 5 times. In case it exceeds the same, it would error out.

Closes #94

See merge request theappsmith/internal-tools-server!126
2019-12-23 09:12:15 +00:00
Trisha Anand
71a8936e10 Handles http redirect upto 5 times. In case it exceeds the same, it would error out. 2019-12-23 09:12:15 +00:00
Arpit Mohan
2b9dadb582 Merge branch 'feature/user-invite' into 'release'
Adding the invite user flow to invite a new user into the organization.

This includes multiple APIs:
1. Invite user which creates an invite token for the user and then sends it to the new user via email. This token is valid for 1 hour (for now).
2. An endpoint to verify the invite token so that the client can pre-emptively show any errors or expired token messages. This endpoint is publicly accessible and doesn't require a session.
3. An endpoint for the new user to sign up and set their password by providing their invite token. This endpoint is publicly accessible and doesn't require a session.

Also extending the redis session timeout to 1 day instead of 30 mins.

See merge request theappsmith/internal-tools-server!125
2019-12-23 03:30:08 +00:00
Arpit Mohan
5081292fd8 Adding the invite user flow to invite a new user into the organization.
Also extending the redis session timeout to 1 day instead of 30 mins.
2019-12-23 08:54:12 +05:30
Arpit Mohan
0ba403b8ee Merge branch 'feature/install-default-plugin-org' into 'release'
On user signup install the default plugins in the user's personal organization

When a user signs up, a personal organization is created for that user. There are a bunch of plugins marked in the DB as with field `defaultInstall` as true. These plugins must be installed for the new organization. This ensures that the user is able to run basic actions such as executing an API, DB query etc.

Also, adding a condition in the `getPlugins` API to return only the plugins installed by the user's organization.

See merge request theappsmith/internal-tools-server!124
2019-12-19 11:47:26 +00:00
Arpit Mohan
b30626b274 Returning only the plugins installed by the user's current organization
This ensures that we don't return all the plugins available in the marketplace if they haven't been installed by the user.
2019-12-19 11:47:26 +00:00
Arpit Mohan
878e477902 Merge branch 'release' 2019-12-19 15:39:02 +05:30
Hetu Nandu
fe6df3450e Merge branch 'fix/inp-obj' into 'release'
Text validation fails with a stringified value

Closes #386

See merge request theappsmith/internal-tools-client!196
2019-12-19 10:07:19 +00:00
Hetu Nandu
1b2473c6f9 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into release 2019-12-19 15:08:07 +05:30
Abhinav Jha
9d6e8362d2 Merge branch 'fix/bug-418' into 'release'
Fix #418: Delete and Edit widget controls are functioning properly

- Delete and Edit controls for the selected widget were getting overlapped by the widgetName element, which is now fixed.

See merge request theappsmith/internal-tools-client!201
2019-12-19 09:37:40 +00:00
Hetu Nandu
005c00a145 Revert "Selected Option is now available in dropdown widget."
This reverts commit c45198e9927dbb520ef1f3c26f9cfeddbd76995e.
2019-12-19 15:03:27 +05:30
Abhinav Jha
b612e60f49 Fix #418: Delete and Edit widget controls are functioning properly 2019-12-19 14:53:07 +05:30
Arpit Mohan
ea00d4b067 Merge branch 'release' 2019-12-19 14:30:44 +05:30
Arpit Mohan
5ba754b430 Merge branch 'hotfix/forgot-password-duplicate' into 'release'
Handling duplicate email in forgotPassword flow.

Now if the user requests for the reset password token multiple times, we will override the previous token and save the new token against that user.

See merge request theappsmith/internal-tools-server!122
2019-12-19 07:41:40 +00:00
Arpit Mohan
7a8eacb44f Merge branch 'feature/forgot-password-authorization' into 'release'
Correcting the HTTP methods in SecurityConfig and acl.rego to fix bug in forgotPassword and resetPassword authorization.

See merge request theappsmith/internal-tools-server!121
2019-12-19 07:38:12 +00:00
Arpit Mohan
e129fecca7 Handling duplicate email in forgotPassword flow.
Now if the user requests for the reset password token multiple times, we will override the previous token and save the new token against that user.
2019-12-19 13:07:01 +05:30
Arpit Mohan
9caa6d42b8 Merge branch 'feature/email-disable' into 'release'
Adding a flag to determine if we should send emails for that particular environment

This is to prevent us from sending erroneous emails from our dev/test environments

See merge request theappsmith/internal-tools-server!120
2019-12-19 07:36:10 +00:00
Arpit Mohan
20ea476dc7 Correcting the HTTP methods for the public urls of forgotPassword & resetPassword 2019-12-19 13:04:13 +05:30
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
a1271d5746 Merge branch 'hotfix/update-page-layout-bug' into 'release'
Removing the logic to bind actions to pages when a dynamic binding happens.

This is because when an action is created, it is already bound to that page. This assumption will not change. Also, adding the pageId when searching for an action because the action name and pageId is a unique index. There may be actions with similar names across multiple pages.

See merge request theappsmith/internal-tools-server!119
2019-12-19 07:11:07 +00:00
Arpit Mohan
738b693d9a Removing the logic to bind actions to pages when a dynamic binding happens.
This is because when an action is created, it is already bound to that page. This assumption will not change. Also, adding the pageId when searching for an action because the action name and pageId is a unique index. There may be actions with similar names across multiple pages.
2019-12-19 12:35:43 +05:30