Joseph Schorr
b5bb76cdea
Optimize repository search by changing our lookup strategy
...
Previous to this change, repositories were looked up unfiltered in six different queries, and then filtered using the permissions model, which issued a query per repository found, making search incredibly slow. Instead, we now lookup a chunk of repositories unfiltered and then filter them via a single query to the database. By layering the filtering on top of the lookup, each as queries, we can minimize the number of queries necessary, without (at the same time) using a super expensive join.
Other changes:
- Remove the 5 page pre-lookup on V1 search and simply return that there is one more page available, until there isn't. While technically not correct, it is much more efficient, and no one should be using pagination with V1 search anyway.
- Remove the lookup for repos without entries in the RAC table. Instead, we now add a new RAC entry when the repository is created for *the day before*, with count 0, so that it is immediately searchable
- Remove lookup of results with a matching namespace; these aren't very relevant anyway, and it overly complicates sorting
2017-03-09 19:47:55 -05:00
Charlton Austin
b45dc07dce
Merge pull request #2398 from charltonaustin/add_different_filenames_for_dockerfile
...
feat(buildtrigger): allow user to specify dockerfile
2017-03-07 10:54:53 -05:00
Charlton Austin
e30cd931d1
feat(buildtrigger): allow use to specify dockerfile
...
users can only specify the folder and the
dockerfile must be names "Dockerfile" this allows
users to specify the file and it can be called
"Dockerfile" or <some name>.Dockerfile
2017-03-06 21:20:17 -05:00
Jimmy Zelinskie
e1066ef80c
Merge pull request #2403 from jzelinskie/clair-qss-latest
...
workers.securityworker: find eligible tag images
2017-03-06 17:21:18 -05:00
Jimmy Zelinskie
40636d4103
find work based on tag IDs rather than image IDs
2017-03-06 17:09:57 -05:00
Jimmy Zelinskie
2cead05f53
data.model.tag: filter hidden for scan eligibility
2017-03-06 15:44:01 -05:00
Jimmy Zelinskie
904b902295
workers.securityworker: find eligible tag images
2017-03-06 14:37:34 -05:00
Jimmy Zelinskie
16ccc946f3
Merge pull request #2402 from jzelinskie/clair-qss-latest
...
workers.securityworker: simplify min id
2017-03-04 18:04:33 -05:00
Jimmy Zelinskie
b9ac2b7b3b
workers.securityworker: simplify min id
2017-03-03 14:51:18 -05:00
Jimmy Zelinskie
591e700892
Merge pull request #2401 from jzelinskie/clair-qss-latest
...
securityscanner: add a min image id option
2017-03-03 14:09:14 -05:00
Jimmy Zelinskie
4ed0cdda14
securityscanner: add a min image id option
...
This will enable us to force some instances of the securityworker to
scan only new images.
2017-03-03 13:55:25 -05:00
josephschorr
aa2f88d321
Merge pull request #2337 from coreos-inc/new-trigger-ux
...
Implement new create and manager trigger UI
2017-03-02 18:15:32 -05:00
Joseph Schorr
81e96d6c1d
Fix merge breakage
2017-03-02 16:33:47 -05:00
josephschorr
1c52427cd2
Merge pull request #2394 from coreos-inc/new-trigger-ux-validation
...
Testing for build triggers
2017-03-01 19:42:37 -05:00
josephschorr
4a90ebb901
Merge pull request #2397 from coreos-inc/qss-initial-notify
...
Batch QSS notifications after initial scan
2017-03-01 16:32:45 -05:00
Joseph Schorr
9e6c368f7a
Make QSS multiple notification messaging nicer
2017-03-01 16:11:11 -05:00
Joseph Schorr
eff1827d9d
Batch QSS notifications after initial scan
2017-03-01 15:42:49 -05:00
Jimmy Zelinskie
c54a99b2c2
Merge pull request #2396 from jzelinskie/fix-status-code
...
Fix Security Scanner Status Code Exception
2017-03-01 13:42:38 -05:00
Jimmy Zelinskie
cbb2fff0e2
util.secscan.api: raise exception for !200 status
2017-03-01 00:40:47 -05:00
Jimmy Zelinskie
cba7816caf
util.failover: re-raise exceptions on failure
2017-03-01 00:40:47 -05:00
Joseph Schorr
c3edc3855a
Fix build trigger tests
2017-02-28 17:19:17 -05:00
Joseph Schorr
b403906bc8
Fix flakiness in new tests due to change in hash seed
2017-02-28 17:19:17 -05:00
Joseph Schorr
c9bddd9c9a
Remove unnecessary check
2017-02-28 17:19:17 -05:00
Joseph Schorr
e025d8c2b2
Add schema validation of namespaces and sources methods
2017-02-28 17:19:17 -05:00
Joseph Schorr
57528aa2bc
Add unit testing of gitlab trigger handler
2017-02-28 17:19:17 -05:00
Joseph Schorr
84b298f36b
Add missing bitbucket test
2017-02-28 17:19:17 -05:00
Joseph Schorr
497c90e7ea
Add unit testing of bitbucket trigger handler
2017-02-28 17:19:17 -05:00
Joseph Schorr
ba301b401b
Break common git hosts tests into their own suite
2017-02-28 17:19:17 -05:00
Joseph Schorr
c4f873ae96
Add unit testing of github trigger handler
2017-02-28 17:19:16 -05:00
Joseph Schorr
cfe231f618
Add unit testing of custom trigger handler
2017-02-28 17:19:16 -05:00
alecmerdler
a5fc7cba5f
use minified AngularJS
2017-02-28 16:52:16 -05:00
alecmerdler
942d71f95d
upgraded TypeScript version
2017-02-28 16:52:16 -05:00
alecmerdler
8fcd76c0be
removed old templates
2017-02-28 16:51:44 -05:00
alecmerdler
ea9d47ba75
ignore invalid linear workflow sections that are after the current section
2017-02-28 16:51:44 -05:00
alecmerdler
ff07533d80
added tests for linear workflow components
2017-02-28 16:51:44 -05:00
alecmerdler
b0cc8d0f19
fixed CSS references to element instead of class
2017-02-28 16:51:44 -05:00
alecmerdler
e59d394491
refactoring linear workflow directives
2017-02-28 16:51:43 -05:00
alecmerdler
a83a7fe47a
moved run block to seperate module
2017-02-28 16:51:43 -05:00
alecmerdler
c86b09e26e
moved config to seperate module
2017-02-28 16:51:43 -05:00
alecmerdler
b1516193a5
converted ManageTriggerGithostComponent to TypeScript
2017-02-28 16:51:43 -05:00
alecmerdler
14222be9fe
working on ManageTriggerGithostComponent
2017-02-28 16:51:43 -05:00
alecmerdler
39c18eb216
moved component templates to separate files in order to support HTML syntax highlighting in certain editors
2017-02-28 16:51:43 -05:00
alecmerdler
00b1f0e3cc
starting ManageTriggerCustomGitComponent
2017-02-28 16:51:43 -05:00
alecmerdler
5ef4357dec
unit tests for DockerfilePathSelectComponent
2017-02-28 16:51:42 -05:00
alecmerdler
38e40665a7
refactored DockerfilePathSelectComponent
2017-02-28 16:51:42 -05:00
alecmerdler
389a4cb1c4
fixed tests
2017-02-28 16:51:42 -05:00
alecmerdler
c60ce4a696
using decorators to write AngularJS in nearly identical syntax to Angular 2
2017-02-28 16:51:42 -05:00
Joseph Schorr
8e863b8cf5
Implement new create and manager trigger UI
...
Implements the new trigger setup user interface, which is now a linear workflow found on its own page, rather than a tiny modal dialog
Fixes #1187
2017-02-28 16:51:42 -05:00
Alec Merdler
21b09a7451
Merge pull request #2391 from alecmerdler/yarn-over-npm
...
Replace 'npm' with 'yarn'
2017-02-28 13:00:41 -08:00
alecmerdler
46057ba34e
alphabetized Dockerfile
2017-02-27 22:02:40 -08:00