Commit graph

277 commits

Author SHA1 Message Date
Khushboo Verma
2ad0428727 Merge 1.6.x into feat-sites 2024-11-13 13:18:21 +05:30
Bradley Schofield
40b8af0671 Further cleanup code now findOne returns empty doc 2024-10-31 17:13:23 +09:00
Khushboo Verma
dc8b9478ee Fix builds 2024-10-28 15:20:36 +01:00
Matej Bačo
c20e580a9e Fix missing params in VCS comment flow 2024-10-28 14:45:18 +01:00
Matej Bačo
31b9f2b4f9 Fix comments 2024-10-28 14:19:44 +01:00
Khushboo Verma
6ff15f9b53 WIP: GitHub Comments for Sites 2024-10-28 14:00:23 +01:00
Khushboo Verma
6b2160f388 Fix vcs deployments 2024-10-27 11:33:56 +01:00
Khushboo Verma
9d1d101586 Update VCS endpoin to work for both functions and sites 2024-10-25 14:41:14 +02:00
Jake Barnby
a7f1cc128a
Validate cursor queries to avoid getDocument type error 2024-10-17 18:41:24 +13:00
Jake Barnby
8bc37026cd
Revert "Feat adding coroutines" 2024-10-08 20:54:40 +13:00
Binyamin Yawitz
c34f8afa81
fix: wrong document check 2024-10-07 20:34:27 -04:00
Binyamin Yawitz
5e8ef5523d
Reapply "Fix auth injection"
This reverts commit 904e4c8650.
2024-10-01 11:08:47 -04:00
Binyamin Yawitz
d14edf4207
reverting: to set coroutines as head 2024-10-01 10:30:47 -04:00
Steven Nguyen
52e5947822
Merge branch 'main' into docs-fix-endpoints 2024-09-25 14:05:59 -07:00
Jake Barnby
c58fa78962
Remove tenant in filter 2024-09-05 14:25:11 +12:00
Richard Choi
08b539ba05 change API reference endpoints to sentence case 2024-09-03 16:32:11 +00:00
Binyamin Yawitz
22deb883c1
refactor: console links 2024-08-12 15:59:42 -04:00
Matej Bačo
186cef458b Implemented vcs.getRepositoryContents() 2024-06-26 10:03:27 +00:00
Matej Bačo
d091b37a15 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-02 18:42:17 +02:00
Eldad Fux
beda5293b4 Fix format 2024-04-01 13:08:46 +02:00
Eldad Fux
8ed1da4ea8 Updated getEnv to use system lib 2024-04-01 13:02:47 +02:00
Steven Nguyen
b19efb619b
feat(events): update build event reset to reset everything
Instead of using setType('') to prevent events from triggering, it
makes more sense to use reset(). However, reset() didn't properly
reset type, resource, deployment, or template. This change makes
sure to reset all those private variables.
2024-03-11 11:17:40 +01:00
Steven Nguyen
8e348dbd92
refactor(vcs): reduce nested code 2024-03-10 23:12:19 +01:00
Steven Nguyen
9d6595f85d
fix(vcs): prevent an error with one function deployment stopping others 2024-03-10 23:12:19 +01:00
Steven Nguyen
47fddbe8e5
fix(vcs): fix deployments stuck at processing
Ensure project is passed in the event because the init hook
isn't able to detect the project.

Make sure the build is triggered for each function.

Reset the build event so the shutdown hook doesn't trigger
again.
2024-03-10 23:10:47 +01:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Khushboo Verma
4e2120952f Fix vcs silent mode 2024-02-28 13:27:36 +05:30
Jake Barnby
2f711c84ed
Remove callback resources from workers 2024-02-21 00:40:55 +13:00
Jake Barnby
06b15c79ff
Merge pull request #7572 from appwrite/attributes-query-fix
fix Indexes
2024-02-13 12:37:59 +13:00
fogelito
ace75b0786 parseQueries 2024-02-12 18:02:04 +02:00
fogelito
e5bada0493 typo 2024-02-12 12:03:31 +02:00
fogelito
adbe11fd50 fix Indexes 2024-02-12 11:55:45 +02:00
fogelito
2fe50717d1 TYPE_CURSOR_AFTER TYPE_CURSOR_BEFORE 2023-12-06 15:10:40 +01:00
Khushboo Verma
2e70ed59af Fix git installation deletion 2023-11-15 11:41:42 +05:30
Matej Bačo
7e1b618769 Fix permission issues with repositories collection 2023-11-14 16:50:59 +01:00
Khushboo Verma
cba20d8b96 Addressed PR comments 2023-10-27 19:38:33 +05:30
Khushboo Verma
2cf8639b68 Resolve merge conflicts 2023-10-23 15:06:01 +05:30
Khushboo Verma
66ec7f2e1d VCS tests 2023-10-13 18:50:58 +05:30
Khushboo Verma
bb75036efe WIP: Mocked GitHub installation 2023-10-13 01:45:27 +05:30
shimon
e2989afda8 queueForBuilds fix via functions controller 2023-10-09 13:28:06 +03:00
shimon
2bb4d8fb89 sync with 1.4 2023-10-02 17:02:48 +03:00
Steven Nguyen
9ca82b7662
Fix missing resourceInternalId on deployments 2023-09-20 19:26:23 -07:00
Matej Bačo
0690b00c30 Add Bun auto detection 2023-09-13 21:08:49 +02:00
Christy Jacob
12b03f3fb0
Merge pull request #6162 from appwrite/fix-webhook-secret-validation
Fix webhook secret validation and executor path validation
2023-09-06 13:59:13 -04:00
Vincent (Wen Yu) Ge
3bc085ea3f
Update app/controllers/api/vcs.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2023-09-06 13:57:46 -04:00
Khushboo Verma
39a4447103 Update webhook secret check 2023-09-06 22:34:03 +05:30
Khushboo Verma
af4be4051f Skip validation if webhook secret is empty 2023-09-06 13:12:27 +05:30
Matej Bačo
79726dbfb6 Fix formatting 2023-09-05 13:16:20 +02:00
Matej Bačo
5538c47b3f Improve installation exception when missconfigured 2023-09-05 12:14:43 +02:00
Jake Barnby
fc3ff188b1
Fix VCS + migrations scopes 2023-08-30 14:44:33 -04:00
Torsten Dittmann
0427c2e4eb chore: generate 1.4.x specs 2023-08-30 11:19:55 +02:00
Jake Barnby
07f8e9411a
Apply suggestions from code review 2023-08-29 13:41:40 -04:00
Khushboo Verma
1293e7bc5f Optimised list repositories endpoint 2023-08-29 23:07:34 +05:30
Matej Bačo
293e44e91e Introduce SMTP ping timeout 2023-08-24 13:04:49 +02:00
Vincent (Wen Yu) Ge
07a7a710ee Improve error and copy in params/models 2023-08-22 20:11:33 +00:00
Matej Bačo
7c184498bb Fix GitHub app auth and migrations 2023-08-21 15:16:02 +02:00
Khushboo Verma
78a224be14 Fix deployment creation on branch creation 2023-08-19 18:24:43 +05:30
Khushboo Verma
1284449765 Fixed GitHub comments 2023-08-19 18:21:27 +05:30
Khushboo Verma
4285d99f08 Added exception for repo creation + small fixes 2023-08-17 19:24:57 +05:30
Matej Bačo
c24e2786fb Even more PR review changes 2023-08-11 18:52:13 +02:00
Matej Bačo
f0125ac3bb PR review changes 2023-08-11 18:44:05 +02:00
Matej Bačo
897d299ae6 PR review changes, fixes from QA 2023-08-11 15:34:57 +02:00
Matej Bačo
3ed4a65828 Fix VCS after lib upgrade 2023-08-09 23:00:04 +02:00
Khushboo Verma
ced6eed6fa Add urls in deployment details 2023-08-09 23:05:23 +05:30
Khushboo Verma
a63a668601 Add additional deployment info 2023-08-09 21:23:58 +05:30
Khushboo Verma
e267349a88 Merge branch 'feat-git-integration' of github.com:appwrite/appwrite into feat-git-integration 2023-08-09 16:33:49 +05:30
Khushboo Verma
056b7120a6 Add additional information to deployments 2023-08-09 16:24:46 +05:30
Matej Bačo
a60b54f434 Use identities table 2023-08-09 11:52:34 +02:00
Khushboo Verma
c6cdc0c37c Fix broken functions flow 2023-08-09 13:16:17 +05:30
Matej Bačo
26aa37ccf0 Linter fix 2023-08-08 11:46:43 +02:00
Khushboo Verma
d19769415f Throw exception from createRepo 2023-08-07 21:09:51 +05:30
Matej Bačo
11068696c9 QA changes 2023-08-07 17:37:36 +02:00
Matej Bačo
345df3f2ca More QA fixes 2023-08-06 12:30:38 +02:00
Matej Bačo
e60456cfda QA after merge with 1.4 2023-08-06 10:51:53 +02:00
Matej Bačo
eb63ec9b10 Support failure url on vcs 2023-08-05 20:53:42 +02:00
Matej Bačo
8bc933ab91 Fix template issues 2023-08-04 10:56:46 +02:00
Khushboo Verma
5b9f71afe5 Add try-catch to listRepositories 2023-08-01 14:10:16 +05:30
Matej Bačo
ac2ca267d7 Address more PR reviews 2023-07-31 08:47:47 +02:00
Matej Bačo
c7605b85e0 Remove vcs prefix 2023-07-30 21:10:25 +02:00
Matej Bačo
6cea5a12bb Improve performance of listRepositores 2023-07-30 15:24:10 +02:00
Matej Bačo
280b2fc994 Rename repositories and installation IDs 2023-07-30 11:51:13 +02:00
Matej Bačo
96338954d2 Better runtime detection 2023-07-30 10:30:47 +02:00
Matej Bačo
a718f09f74 Update execution model, add detection to repository 2023-07-30 09:17:23 +02:00
Matej Bačo
22f638e6aa rename vcsRepos to vcsRepositories 2023-07-29 18:04:43 +02:00
Matej Bačo
e6d1a3424f Fix github state 2023-07-29 18:03:18 +02:00
Matej Bačo
f13d70d5be Rename env vars 2023-07-28 10:53:07 +02:00
Matej Bačo
37c0cc122a More PR review changes 2023-07-28 10:27:16 +02:00
Khushboo Verma
460e07dab0 Moved detection endpoint near listRepos 2023-07-28 13:21:53 +05:30
Khushboo Verma
2c291d53b9 Renamed variables, addressed PR comments 2023-07-28 13:10:19 +05:30
Khushboo Verma
c449aa0a68 Remove functions from installation response model 2023-07-26 15:15:45 +05:30
Khushboo Verma
8655d71a67 Minor fixes 2023-07-24 15:41:30 +05:30
Matej Bačo
e5adc5772c Add support for all runtime start commands 2023-07-24 08:23:23 +02:00
Khushboo Verma
9484994c4c
Update app/controllers/api/vcs.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
2023-07-24 02:09:16 +05:30
Matej Bačo
7e386b885c Upgrade console, reword commands into 1 param 2023-07-21 13:52:14 +02:00
Khushboo Verma
e86382ce55 Add vcsState to user collection 2023-07-20 23:38:33 +05:30
Matej Bačo
f4da8079e2 Improve VCS indexes 2023-07-01 08:46:21 +02:00
Matej Bačo
3a8f4e5039 Fix failing builds 2023-06-28 13:31:35 +02:00
Matej Bačo
c6e491f2ed Support for external contributors 2023-06-28 10:48:10 +02:00
Matej Bačo
ed5e31a4b3 Disable unauthorized deployments from VCS 2023-06-26 18:47:59 +02:00
Matej Bačo
e6e69b64d3 Rework comment / check creation 2023-06-26 12:26:58 +02:00
Matej Bačo
310d56490e Update console 2023-06-23 09:01:51 +02:00
Matej Bačo
cc06a4bdaa log streaming, locking GH comments, execution headers, locale header, redeploy logic 2023-06-22 12:59:41 +02:00
Matej Bačo
1b4036078b Improve response models for console 2023-06-18 16:08:53 +02:00
Matej Bačo
a174562c4e vcs.createRepository() 2023-06-18 13:38:37 +02:00
Matej Bačo
5237e24739 VCS integration edge cases fix 2023-06-17 12:07:30 +02:00
Khushboo Verma
41346b017a Modularised duplicate code 2023-06-16 20:13:37 +05:30
Matej Bačo
53deb68985 Improve performance of listRepositories 2023-06-16 11:07:47 +02:00
Matej Bačo
0128e73079 Formatting 2023-06-15 12:38:03 +02:00
Matej Bačo
7d79e4146f Add vcs webhook verification 2023-06-15 12:37:28 +02:00
Khushboo Verma
6604a33e46 Add createRepositoryDetection endpoint 2023-06-14 00:34:22 +05:30
Matej Bačo
2c97d73f4b WIP Stream logs 2023-06-13 13:13:02 +02:00
Matej Bačo
0ed2723f00 Fix failing pushes 2023-06-09 13:34:46 +02:00
Matej Bačo
6522d86fa9 Update installation, certificate & repository response models 2023-06-08 17:24:27 +02:00
Matej Bačo
5e221e285f Update naming convention, add new VCS endpoints, support silent mode and rootDirectory 2023-06-07 17:50:32 +02:00
Matej Bačo
966210d58c Update installation model 2023-06-06 09:50:52 +02:00
Matej Bačo
5d2d14df6e Fix bugs with comment, improve git checks logic 2023-05-29 13:51:03 +02:00
Matej Bačo
fb02e12db2 Add state to comment, webhook bug fixing 2023-05-28 13:39:48 +02:00
Matej Bačo
507b2d978a Fix response model 2023-05-27 13:55:34 +02:00
Matej Bačo
f504e7dbb5 Add cache support to VCS 2023-05-26 10:44:08 +02:00
Matej Bačo
f53d75205b Implement branches endpoint, rename some attributes, update response models 2023-05-26 00:29:08 +02:00
Matej Bačo
4665c2a2a4 Re-add PR creation deployment 2023-05-25 07:30:52 +02:00
Khushboo Verma
df17c8a3dc Add production branch as param in updateFunction 2023-05-23 16:04:38 +05:30
Matej Bačo
f86284fe21 Bug fixing 2023-05-23 06:37:25 +02:00
Matej Bačo
c09c8b4d25 Fix wildcard issue with OPTIONS & CORS 2023-05-22 21:27:14 +02:00
Matej Bačo
18105d4999 Remove repository owner 2023-05-22 15:02:55 +02:00
Matej Bačo
612af6edf0 Update dependencies, fix bugs 2023-05-22 13:29:35 +02:00
Matej Bačo
6e515e3cc4 Copy Khushboo's integration from feat-peach-q1-kh 2023-05-22 12:58:13 +02:00