-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix: add missing check for organization data in form login command #41091
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
Conversation
Added a check to ensure that the organization data retrieved during the form login enablement process is valid. This prevents potential errors when the organization with the specified slug is not found in the database.
WalkthroughThis change introduces minor formatting adjustments to two TypeScript files. Unused imports are removed, blank lines are added for readability, and the control flow in one utility function is simplified by returning early instead of using intermediate variables. No logic, error handling, or public API signatures are altered. Changes
Sequence Diagram(s)sequenceDiagram
participant Env as Environment
participant Utils as utils.ts
participant Caller as Caller
Caller->>Utils: getRedisurl("")
alt APPSMITH_REDIS_URL set and valid
Utils->>Env: Read APPSMITH_REDIS_URL
Utils-->>Caller: Return parsed Redis hostname
else APPSMITH_REDIS_URL not set or invalid
Utils->>Env: Read .env file line by line
alt Found valid Redis URL in .env
Utils-->>Caller: Return parsed Redis hostname
else Not found
Utils-->>Caller: Return null
end
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings
app/client/packages/rts/src/ctl/enable_form_login.ts (12)
app/client/packages/rts/src/ctl/utils.ts (11)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
Added a check to ensure that the organization data retrieved during the form login enablement process is valid. This prevents potential errors when the organization with the specified slug is not found in the database.
Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Number
or
Fixes
Issue URL
Warning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags=""
🔍 Cypress test results
Caution
If you modify the content in this section, you are likely to disrupt the CI result for your PR.
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit