-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Shifted position of expires_in fixes #31059 #35196
Conversation
WalkthroughThe recent changes to the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx (4 hunks)
Additional context used
Learnings (1)
app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx (1)
Learnt from: sneha122 PR: appsmithorg/appsmith#30012 File: app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx:679-682 Timestamp: 2024-01-04T05:15:31.532Z Learning: The user `sneha122` has confirmed the resolution of the feedback regarding the redundancy of `|| false` in the `_.get` expression within the `RestAPIDatasourceForm.tsx` file.
Additional comments not posted (3)
app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx (3)
Line range hint
183-187
:
Good job on improving readability!The conditional checks for
refreshTokenClientCredentialsLocation
have been adjusted for better clarity. This makes the code more maintainable.
250-252
: URL validation logic looks solid!The regex-based URL validation ensures that only valid URLs are accepted. This is crucial for preventing incorrect data entry.
663-672
: Well done on adding theexpires_in
field!The
expires_in
field for OAuth2 authentication is correctly implemented and positioned. This enhances the user experience by grouping related fields together.
@@ -180,7 +180,7 @@ class DatasourceRestAPIEditor extends React.Component<Props> { | |||
if (_.get(authentication, "grantType") === GrantType.AuthorizationCode) { | |||
if ( | |||
_.get(authentication, "refreshTokenClientCredentialsLocation") === | |||
undefined || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@toffee-k21 can you please format these files. The indentation diff here is not required.
isValid: false, | ||
message: createMessage(INVALID_URL), | ||
}; | ||
isValid: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here also, can you please check the indentation.
@@ -660,6 +660,16 @@ class DatasourceRestAPIEditor extends React.Component<Props> { | |||
isRequired: false, | |||
})} | |||
</FormInputContainer> | |||
<FormInputContainer data-location-id={btoa("authentication.expiresIn")}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@toffee-k21 any updates here? |
Changes were suggested on Aug 2, 2024 but we haven't heard back from the user since then. |
Closing this PR due to no response. |
/ok-to-test |
Whoops! Looks like you're using an outdated method of running the Cypress suite. |
Description
Moves expires_in field after scope while configuring oauth2 datasource
Fixes #31059
Summary by CodeRabbit