d19890a4e1
JobsetEval/cancel: test & fix
2021-10-27 11:43:36 -04:00
ffedbe5996
restart/cancelBuilds: always pass resultsets explicitly
2021-10-25 22:21:48 -04:00
4c8279044b
Merge pull request #1026 from DeterminateSystems/constituents
...
add api endpoint: /build/<id>/constituents
2021-09-28 09:21:21 -04:00
2745226ada
Merge pull request #1003 from DeterminateSystems/perlcritic-level-4
...
perlcritic: level 4
2021-09-27 20:23:55 +02:00
66375fd2d9
Fix 'Error loading tab: 0 error' with uBlock Origin
...
/metrics-tab matches a rule in one of uBlock Origin's default
blocklists, so let's name it something else.
2021-09-27 17:42:56 +02:00
c60c8d10ea
add api endpoint: /build/<id>/constituents
...
Returns a list of constituent builds
2021-09-24 16:30:44 -04:00
85bb1c7ef9
(perlcritic) JSON::Any -> JSON::MaybeXS
2021-09-07 21:55:55 -04:00
c880888f1e
File::Slurp -> File::Slurper
2021-09-06 22:13:33 -04:00
b6714cdce3
JobsetEval: $a, $b to $left, $right (perlcritic)
2021-08-20 21:52:32 -04:00
d0fb3cbf8f
Job: $b -> $build (perlcritic)
2021-08-20 21:52:32 -04:00
4632132d02
fixup perlcritic: indirect new
...
> Subroutine new called using indirect syntax at line 14, column 14. See page 349 of PBP. (Severity: 5)
2021-08-20 11:39:19 -04:00
09ad52ab60
Document getEvals a bit
...
Also drop the $self parameter.
Co-authored-by: gustavderdrache
2021-06-16 13:15:01 -04:00
382ba590ad
Drop unused query from GET Build.
2021-06-01 11:47:05 -04:00
508d99d611
Join to builds via jobset_id when easy
2021-06-01 11:16:47 -04:00
6107040bf5
Project: clear decltype
and declvalue
when project is no longer declarative
2021-05-06 08:47:18 -07:00
bd9c52dbd0
Project: delete the .jobsets
jobset if project is no longer declarative
...
"No longer declarative" as defined by the "Edit project" page is an empty spec
file.
2021-05-05 14:03:51 -07:00
ad13d13436
Project: add declfile, decltype, declvalue to API
...
This makes it possible to create declarative projects via a PUT request, and
also exposes the currently-configured values to GET requests.
2021-05-02 17:45:14 -07:00
7c9ed6b919
Project: fix DELETE route
...
This appears to have been broken in ac3e8a4a59
,
which removed the `jobsetevals` column from the Projects schema, but didn't
update the Controller accordingly.
Fixes the test added in the previous commit.
2021-04-30 10:43:21 -07:00
03d5a858a7
Jobset: list known inputs in invalid input type response
2021-04-29 18:19:44 -07:00
f1dd5d202e
Jobsets: update schema to align with the API
...
To further align with the API, we return custom JSON in order to display a
`visible` field rather than `hidden` -- a `PUT` request expects `visible`, while
a `GET` request returns `hidden`.
This also allows us to rename the `jobsetinputs` field to `inputs` for the same
reason: `PUT` expects `inputs`, while `GET` returns `jobsetinputs`.
2021-04-29 07:50:23 -04:00
fdb6e7dd97
fixup: return the user entity on login
2021-04-28 18:30:35 -04:00
725c9c2f81
login: redirect to the current-user page
2021-04-28 08:32:10 -07:00
d589db2ed9
login: missing parameters are 400s
2021-04-28 08:31:59 -07:00
2600810551
hydra-api: flesh out Jobset schema
...
* made all columns available via the API (except for forceeval)
* renamed flakeref to flake to unify the API with the database schema
* renamed inputs to jobsetinputs to unify the API with the database schema
2021-04-27 16:16:42 -07:00
453b8479be
Merge pull request #927 from cole-h/nonexistent-user-400
...
Return HTTP 400 when creating Project with nonexistent user
2021-04-26 14:40:15 -04:00
47e19ba22c
Return HTTP 400 when creating Project with nonexistent user
2021-04-26 11:32:39 -07:00
21ed005c84
Make it possible to enable email notifications when creating a jobset
...
The checkbox is only enabled if `email_notification = 1` is set in
`hydra.conf`. However, when creating jobset (in contrast to the edit
form), the checkbox is always disabled because the `emailNotification`
parameter in Catalyst's stash was missing.
2021-04-24 19:48:43 +02:00
9225be0897
Drop remaining sha1_hex references
...
Co-authored-by: Graham Christensen <graham@grahamc.com >
2021-04-15 11:35:18 -04:00
beb5be4302
Users: password changes via the web UI now use Argon2
...
Co-authored-by: Graham Christensen <graham@grahamc.com >
2021-04-15 11:35:13 -04:00
afd064d19d
Merge pull request #867 from ck3d/fix-proxy-login
...
Fix login if Hydra runs behind HTTP proxy with sub-path location
2021-04-12 17:36:55 +00:00
a46f655c56
root project listing: show hidden projects at the end
...
Makes the zebra striping correct.
2021-03-31 14:33:20 +00:00
150213cbb3
Fix login if Hydra runs behind HTTP proxy with sub-path location
2021-02-07 19:18:29 +01:00
8d7bfe1706
JobsetEvals: fixup permission references
...
Going from an eval to a project now requires hopping through the jobset
2021-02-01 10:31:05 -05:00
91e63fb7da
search: limit queries to 20s
...
Even 20s is really long, but it cuts off queries which are today
running for 500+s.
2021-01-30 11:51:20 -05:00
4f308b1f2f
search: limit results to 50, default to 10
...
This search query is pretty heavy. Defaulting to 500 has caused
Hydra's web UI to appear to be down. Since 500 can take it down, users
probably shouldn't be allowed t ask for that many.
2021-01-30 08:37:57 -05:00
54b8cb188e
perl: jobsetevals -> jobset via by jobset_id
...
Frankly, this was suspiciously little work.
2021-01-26 13:51:39 -05:00
be0aa7eb85
Merge pull request #841 from pingiun/github-login
...
Implement GitHub logins
2021-01-05 14:51:51 +01:00
43d662f63a
Don't use enable_github_login option after all
...
Instead the github_client_id option is used to detect if github logins
should be enabled.
2021-01-04 18:09:49 +01:00
c49ca66689
Die when no email is found
2021-01-04 18:09:05 +01:00
20d8134936
Update src/lib/Hydra/Controller/User.pm
...
Co-authored-by: Eelco Dolstra <edolstra@gmail.com >
2021-01-04 17:48:43 +01:00
19f9d8249f
Update src/lib/Hydra/Controller/User.pm
...
Co-authored-by: Eelco Dolstra <edolstra@gmail.com >
2021-01-04 17:48:37 +01:00
20d09518f8
Merge pull request #839 from pingiun/shield-io
...
Add endpoint to generate a shields.io badge
2021-01-04 14:09:09 +01:00
5f4eddbe57
Use email scope
2020-12-31 13:40:33 +01:00
e88355b3d4
Use email api call
2020-12-31 13:40:32 +01:00
1b3000e132
Allow push-github endpoint to also trigger flakes
2020-12-28 15:27:09 +01:00
bbd4891133
Implement GitHub logins
...
Requires the following configuration options
enable_github_login = 1
github_client_id
github_client_secret
Or github_client_secret_file which points to a file with the secret
2020-12-28 14:37:03 +01:00
f64230b45e
Add endpoint to generate a shields.io badge
2020-12-25 15:05:34 +01:00
8bb23905c3
Build: Remove unused prevBuild
...
This speeds up loading the page a lot in the case where there is no
previous evaluation (for some reason).
2020-10-28 13:29:31 +01:00
6a07712e1d
LDAP: only try LDAP authentication when the realm is configured
2020-09-12 19:57:24 +02:00
28646e1c5f
Initial attempt at adding LDAP login support
2020-09-09 13:00:34 +02:00