Commit Graph

3 Commits

Author SHA1 Message Date
Abhijeet
6ca9ef549e
feat: Make images adaptable to support both Postgres and MongoDB uris (#36424)
## Description
PR to make the release tag adaptable to work with both MongoDB and
PostgreSQL uris.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new script to automate the preparation of server
artifacts, improving the build process.
- Added SQL files to the indentation configuration for consistent code
formatting.

- **Improvements**
- Enhanced error handling in the Docker build process to ensure
essential files are present before execution.
- Updated service configuration logic to prevent misconfiguration based
on the environment.
- Added a new job step in the build workflow to prepare server artifacts
after the build process.
- Implemented conditional logic in the run script to dynamically adapt
to different database configurations.

- **Bug Fixes**
- Adjusted the initialization process to focus on MongoDB, improving
reliability in various environments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

/test 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/10940528231>
> Commit: 32731e8a93a25e5c9456eb89daca2d8bf327c012
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10940528231&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Thu, 19 Sep 2024 12:21:54 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No
2024-09-19 21:45:46 +05:30
Shrikant Sharat Kandula
150408a958
chore: Python files use 4-space indentation 2023-09-15 14:55:43 +05:30
Shrikant Sharat Kandula
e19c3af971
chore: Add .editorconfig (#27343)
An indentation syntax error on a workflow file caused all CI pipelines
to break and fail. Adding a `.editorconfig` file with the correct
expected indentation settings can help solve these problems. A couple of
other things this will do for us:

1. Trailing whitespace is automatically removed. This causes a lot of
noise diffs in PRs.
2. Newline at end of files is a Linux file expectation and this can
ensure that. This also causes a lot of noise diffs in PRs.

The editors that majority of the team uses today, support EditorConfig
out of the box. See https://editorconfig.org/#pre-installed.

There's a _lot_ of violations in the repo today, so I'm not adding a CI
check right away. Let's check back in a month or two and assess if we
want to look into a CI check.
2023-09-15 14:34:39 +05:30