Commit Graph

964 Commits

Author SHA1 Message Date
Andras Bacsai 65a7610e48 Merge pull request #5029 from IARayan/IARayan-bitbucket-preview-deployment-fix-pullrequest-update
fix: Handle pullrequest:updated for reliable preview deployments
2025-02-04 13:55:16 +01:00
Andras Bacsai 186a3fc75b Merge pull request #5038 from Vann-Dev/main
feat(api): add applications logs api
2025-02-04 13:33:30 +01:00
Vann 2e652490c1 chore: add openapi response 2025-02-04 02:56:15 +00:00
Vann 11a5ec7c38 feat: add lines query parameter 2025-02-02 13:43:31 +00:00
Vann 7b60d76b77 feat: remove ansi color from log 2025-02-02 10:01:01 +00:00
sistracia 43e8d17197 fix(api): domain check when updating domain 2025-02-02 14:52:05 +07:00
Vann e7988fc295 feat: container logs 2025-02-01 17:21:38 +00:00
Van-Dev b1d6167e89 feat: add application api route 2025-02-01 22:09:59 +07:00
Islam Adel 672a5d0bc5 fix: Handle pullrequest:updated for reliable preview deployments
The repo:push payload lacks the destination branch name, using push.changes.0.new.name instead. While sufficient for updates, this causes failures in preview deployments when a PR receives new commits—Coolify looks for git_branch in the applications table but finds the source branch instead.

By also processing pullrequest:updated, we ensure preview deployments remain in sync. However, this event triggers on various actions (e.g., PR title changes, reviewer updates), causing extra redeploys. Since Coolify doesn’t store commit hashes for preview deployments, handling these extra redeploys is our best workaround for Bitbucket.
2025-02-01 12:24:23 +02:00
Andras Bacsai 3bc85b1a8c fix: validate private key through API
feat: able to add base64 encoded private key, not just oneline
2025-01-20 13:59:02 +01:00
Andras Bacsai f35f45324b fix: server proxy set correctly through the API
fix: cannto delete localhost through the API.
2025-01-20 13:59:02 +01:00
peaklabs-dev 3d4e8b9867 chore: switch up readonly lables to make more sense 2025-01-08 17:05:11 +01:00
Andras Bacsai 1fe4dd722b Revert "rector: arrrrr"
This reverts commit 16c0cd10d8.
2025-01-07 15:31:43 +01:00
Andras Bacsai 16c0cd10d8 rector: arrrrr 2025-01-07 14:52:08 +01:00
Andras Bacsai b43ea5fb5d fix: we need XSRF-TOKEN for terminal 2025-01-07 09:48:29 +01:00
Andras Bacsai 6e66cc8737 remove XSRF-TOKEN, we are not using it 2024-12-18 13:39:24 +01:00
Andras Bacsai c7a01eb270 Merge pull request #4596 from arceushui/main
fix: fix domain being override when update application
2024-12-18 11:09:31 +01:00
Andras Bacsai 41688f24e3 Merge branch 'next' into fix/api--projects-apps-fixes 2024-12-18 10:49:45 +01:00
Andras Bacsai 9e3467578f feat: add environment_uuid support and update API documentation
- Introduced `environment_uuid` as a required field in various API endpoints and schemas.
- Updated descriptions to clarify that either `environment_name` or `environment_uuid` must be provided.
- Modified routes and controller methods to accommodate the new UUID parameter.
- Adjusted frontend components to utilize `environment_uuid` for better consistency and clarity.
- Removed deprecated fields related to environment handling.

This change enhances the API's flexibility in identifying environments, improving overall usability.
2024-12-17 13:42:16 +01:00
Andras Bacsai 2a9d499251 feat: migrate env variables to polymorphic relationship
fix: proxy status query ui
2024-12-17 10:38:42 +01:00
Pang Jin Hui b01056411d fix: fix domain being override when update application 2024-12-16 16:56:33 +08:00
SierraJC 00c93aa8b0 fix: applications API writing to unavailable models
when $useBuildServer is set, $application->settings model does not yet exist. This change ensures the models exist before accessing them.
2024-12-14 12:58:11 +11:00
SierraJC e7ffeda8e0 fix: applications API response code + schema 2024-12-14 12:54:36 +11:00
SierraJC 9e8d9e6a9e fix: invalid API response on missing project
API was returning 500 instead of 404 due to attempting to load environments for a non-existent project
2024-12-14 12:52:47 +11:00
Andras Bacsai 4901b12279 fix: service status indicator + oauth saving 2024-12-13 12:03:10 +01:00
Andras Bacsai 458cd96ac8 fix: services env values should be sensitive 2024-12-12 13:20:13 +01:00
🏔️ Peak fdf757c7ae Merge branch 'next' into separate-success-and-failure-notifications 2024-12-09 18:15:41 +01:00
🏔️ Peak c4a72fbd75 Merge branch 'main' into separate-success-and-failure-notifications 2024-12-09 18:11:29 +01:00
peaklabs-dev b13d77377c feat: new shared function name is_transactional_emails_enabled() 2024-12-09 15:34:24 +01:00
peaklabs-dev c995819ed3 chore: remove unused code 2024-12-09 12:34:45 +01:00
peaklabs-dev 5515f07f14 chore: remove commented out notification 2024-12-09 12:05:18 +01:00
peaklabs-dev d9248508b4 chore: remove unused waitlist stuff 2024-12-09 12:00:54 +01:00
Andras Bacsai 3fa7d03db7 fix: root + read:sensive could read senstive data with a middlewarew 2024-12-09 11:10:35 +01:00
Andras Bacsai ff74fb7385 feat: introduce root permission 2024-12-09 10:52:38 +01:00
Andras Bacsai 5bbcd7bf76 fix: add middleware to new abilities, better ux for selecting permissions, etc. 2024-12-09 10:28:34 +01:00
Andras Bacsai 78f0ac80c1 Merge branch 'next' into feat/deployment-token 2024-12-09 09:16:59 +01:00
🏔️ Peak 6aa87116e9 Merge branch 'main' into next 2024-12-08 16:17:23 +01:00
Andras Bacsai 320dd41303 fix: api endpoint 2024-12-07 14:26:44 +01:00
Andras Bacsai c9d47e0a67 Merge pull request #4449 from SierraJC/fix/mysql-mongo-db-api
Fix: API - MySQL & MongoDB invalid fields
2024-12-05 12:57:11 +01:00
peaklabs-dev 5f985426ab feat: update private key nam with new slug as well 2024-12-03 15:27:20 +01:00
Andras Bacsai 319c3023dc fix 2024-12-02 22:50:03 +01:00
Andras Bacsai 58988d3686 fix: a few inputs 2024-12-02 22:50:03 +01:00
SierraJC f279729f08 fix: incorrect MongoDB init API property 2024-12-01 10:19:15 +11:00
SierraJC b3f968db76 fix: missing mysql_password API property 2024-12-01 10:18:36 +11:00
Andras Bacsai 40af73cb7d fix: only return server uuid on server update 2024-11-25 13:41:59 +01:00
Andras Bacsai dce783813a Merge pull request #4379 from SierraJC/fix/misc-server-api-fixes
Fix: `/servers` API invalid responses / OpenAPI schema
2024-11-25 13:41:28 +01:00
Andras Bacsai 37d4d5f98c fix: version should come from constants + fix stripe webhook error reporting 2024-11-25 11:28:08 +01:00
SierraJC fead884809 fix: missing uuid parameter on server API patch 2024-11-23 13:23:13 +11:00
SierraJC 379045c835 fix: incorrect server API patch response 2024-11-23 13:23:13 +11:00
SierraJC 4a45de5646 fix: empty server API response 2024-11-23 13:23:13 +11:00