fix: Remove the strict check for mongo url (#33652)

## 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="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9191016385>
> Commit: c74e98018a6b4bd212e922eb1b3015195a5234a0
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9191016385&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->





## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
This commit is contained in:
Abhijeet 2024-05-22 18:10:22 +05:30 committed by GitHub
parent 7e339d419d
commit cfcc00ef67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,8 @@ public class CommonDBConfig {
@Primary
@Profile("!test")
public MongoProperties configureMongoDB() {
if (!appsmithDbUrl.startsWith("mongodb")) {
log.debug("Configuring MongoDB with url: {}", appsmithDbUrl);
if (!appsmithDbUrl.contains("mongodb")) {
return null;
}
log.info("Found MongoDB uri configuring now");

View File

@ -183,6 +183,7 @@ configure_database_connection_url() {
elif [[ "${APPSMITH_DB_URL}" == "mongodb"* ]]; then
isMongoUrl=1
fi
echo "Configured database connection URL is $APPSMITH_DB_URL"
}
check_db_uri() {