Commit graph

139 commits

Author SHA1 Message Date
Brad Rydzewski
fabd2670f5 force SIGINT when terminating the agent 2019-03-19 14:44:02 -07:00
Brad Rydzewski
38b1847914 adjust repo feed query for postgres 2019-03-19 10:23:15 -07:00
Brad Rydzewski
cd439d261c comment out suboptimal pg query 2019-03-18 23:59:11 -07:00
Brad Rydzewski
a9d63cea69 fix incomplete build query 2019-03-18 23:39:33 -07:00
Brad Rydzewski
4e4932512c fix issue #2553 2019-03-14 10:16:19 -07:00
Brad Rydzewski
fe2ab2c3a4 Merge remote-tracking branch 'origin/master' 2019-03-13 14:48:02 -07:00
Brad Rydzewski
ff8f29df53 audit headers 2019-03-13 14:47:47 -07:00
KhanhIceTea
38cba9aa29 change build_author_name charset to utf8mb4 2019-03-08 14:44:19 +07:00
Brad Rydzewski
dd2cc872c2 remove deprecated scheduler 2019-03-05 23:47:55 -08:00
Brad Rydzewski
e52329b111 adde encrypt endpoint 2019-02-28 12:49:04 -08:00
Brad Rydzewski
d240eadb65 merge remote-tracking branch 'origin/master' 2019-02-27 23:07:30 -08:00
Brad Rydzewski
d04647e75f add build tags 2019-02-27 23:07:13 -08:00
Thomas Boerger
876645a1b0
Provide pathstyle for S3 log storage 2019-02-26 22:09:56 +01:00
Brad Rydzewski
02df116424
Merge pull request #2600 from JordanSussman/master
feat(s3): allow user to specify s3 endpoint for non aws usage
2019-02-21 12:24:46 -08:00
Brad Rydzewski
616433b709 optionally disable pr and fork at database level 2019-02-21 11:06:33 -08:00
JordanSussman
2b539ed123 feat(s3): allow user to specify s3 endpoint for non aws usage 2019-02-20 22:17:50 -06:00
Brad Rydzewski
db7f0cdffb enable deploy events 2019-02-20 15:15:29 -08:00
Brad Rydzewski
5b6a3d8ff4 squash and merge local branch 2019-02-19 15:56:41 -08:00
Niall Sheridan
4949047575 Don't return extra columns in result set
Since commit 360708e93d the feed-latest-build query has returned extra columns in the results, causing log messages like the following:

```
meddler.Targets: column [build_repo_id] not found in struct
meddler.Targets: column [build_id] not found in struct
meddler.WriteTargets: column [build_repo_id] not found in struct
meddler.WriteTargets: column [build_id] not found in struct
```

This is a result of the optimised Postgres query including the `build_repo_id` and `build_id` terms, where previously they were not inclued.
This PR rewrites the query slightly to produce the expected result set (i.e. without the `build_repo_id` and `build_id` columns). As a side-effect it also looks similar to the original query.

Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:22:28 +00:00
Brad Rydzewski
360708e93d optimize postgres query 2018-11-08 22:42:32 -08:00
Brad Rydzewski
4063d29b44 fix failing build count test 2018-05-02 09:59:05 -07:00
Brad Rydzewski
9ffd5ad9e8 alternate build count strategy for postgres 2018-05-02 09:45:05 -07:00
Brad Rydzewski
8a65cf91a9
Merge pull request #2313 from Valeran86/bugix/postgres-semicolon-in-scripts [ci skip]
fix missing semicolon in Postgres script's files
2018-04-01 11:38:00 -07:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Jordan Brockopp
af76d46b53 add page param for getting build list with offset 2018-02-02 13:03:40 -06:00
Александр Ангин
b892f566e5 fix missing semicolon in Postgres script's files 2018-01-22 10:40:11 +03:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07:00
Brad Rydzewski
60cd607450 capture file metadata 2017-08-02 16:04:00 -04:00
Brad Rydzewski
bcdd5c9d06 implement file endpoints 2017-07-27 13:06:24 -04:00
Brad Rydzewski
c22dc6e5fa use boolean to filter active flag, postres change 2017-07-25 15:42:11 -04:00
Brad Rydzewski
005a28a638 fix postgres repo count 2017-07-25 15:37:58 -04:00
Brad Rydzewski
02a8a2a31f bump version; fix repo count metrics 2017-07-25 15:32:22 -04:00
Brad Rydzewski
15d92c5fa3 read user and log sql queries from file 2017-07-20 16:34:52 -04:00
Brad Rydzewski
d5200ad8b3 improve flush capability during sync 2017-07-16 13:37:16 -04:00
Brad Rydzewski
587b07c69b sync working with postgres and mysql 2017-07-15 12:51:02 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
37eb406092 update default visibility migration 2017-07-12 15:25:42 -04:00
Brad Rydzewski
6806883a0d fix mysql migration value 2017-07-12 15:22:49 -04:00
Brad Rydzewski
911e5f41a3 doh. fix migration for sqlite 2017-06-01 14:47:06 +02:00
Brad Rydzewski
860c611a37 update migration 2017-06-01 14:30:49 +02:00
Brad Rydzewski
ee54698c62 add migration function to remove null repo counters 2017-05-25 12:25:16 +02:00
Brad Rydzewski
08b320e365 update unit tests 2017-05-23 17:53:40 +02:00
Brad Rydzewski
3f45889ead fix merge conflicts 2017-05-23 14:43:50 +02:00
Brad Rydzewski
110c036e4e re-format counter update for postgres 2017-05-23 14:34:24 +02:00
Brad Rydzewski
f16dfaa9f0 increment build from counter 2017-05-23 12:43:58 +02:00
Brad Rydzewski
9ed9f8f1c9 change repo_visibility to text 2017-05-22 23:16:42 +02:00
Brad Rydzewski
c64a244c27 add visibility database field 2017-05-22 23:11:29 +02:00
Joachim Hill-Grannec
52ee6fa5be update varchar to 255 for the unique value to work for the migrations table. 2017-05-20 15:46:49 -04:00
Brad Rydzewski
298d78e370 bump column size for registry secret [ci skip] 2017-05-19 18:15:57 +02:00