Commit graph

7193 commits

Author SHA1 Message Date
josephschorr
432b2d3fe8 Merge pull request #2392 from coreos-inc/search-optimization
Optimize repository search by changing our lookup strategy
2017-03-10 15:44:26 -05:00
Joseph Schorr
8737ac09a8 Fix CSS around display of page controls in repo view 2017-03-10 14:33:44 -05:00
Joseph Schorr
d42ec4e585 Abstract out constant scores into constants 2017-03-10 14:06:39 -05:00
Jimmy Zelinskie
c724af12cd Merge pull request #2422 from coreos-inc/remove-w3m
Remove the w3m package, which is vulnerable and isn't used
2017-03-10 14:04:24 -05:00
Joseph Schorr
34ae653792 Remove the w3m package, which is vulnerable and isn't used 2017-03-10 14:01:37 -05:00
josephschorr
8db5e920a9 Merge pull request #2421 from coreos-inc/delete-namespace-messaging
Clarify the namespace being deleted
2017-03-10 13:35:05 -05:00
Charlton Austin
c09d07e81c Merge pull request #2418 from charltonaustin/fix_error_with_dockerfile_content
fix(buildtrigger): fixed error from github api
2017-03-10 13:34:47 -05:00
Joseph Schorr
409ee6137f Clarify the namespace being deleted
Fixes https://www.pivotaltracker.com/story/show/141418611
2017-03-10 13:25:40 -05:00
Jimmy Zelinskie
47a99fccb6 Merge pull request #2420 from jzelinskie/faster-min
data.model.tag: find min *alive* tag
2017-03-10 13:21:41 -05:00
Jimmy Zelinskie
53eb579459 data.model.tag: find min *alive* tag 2017-03-10 13:15:35 -05:00
Charlton Austin
d6e45e3321 fix(buildtrigger): fixed error from github api
there was a 500 being thrown every time there was a slash at the end of a directory while adding in a new trigger this stops that 500 from coming
2017-03-10 13:04:41 -05:00
josephschorr
6d6be63ca6 Merge pull request #2393 from coreos-inc/oidc-ui
OIDC configuration support in superuser config panel
2017-03-10 12:13:48 -05:00
josephschorr
8075460e71 Merge pull request #2417 from coreos-inc/qss-notification-error
Small fixes and tests for QSS notifications
2017-03-10 12:13:18 -05:00
Joseph Schorr
9a2507724f Update vuln found event email to support multiple vulns notification 2017-03-10 11:29:37 -05:00
Joseph Schorr
3813d0d23d Add tests for all notification event calls 2017-03-10 11:26:12 -05:00
Joseph Schorr
48db77b521 Fix bug in QSS notifications 2017-03-10 11:25:55 -05:00
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
Jimmy Zelinskie
850c32ebfb Merge pull request #2298 from jzelinskie/maintainers
MAINTAINERS: init owners to subpkgs
2017-03-09 17:30:38 -05:00
Charlton Austin
9ed022fd18 Merge pull request #2410 from charltonaustin/fix_subdir_parsing
fix(buildcomponent): fix dockerfile cases
2017-03-09 08:56:13 -05:00
Charlton Austin
afbd6fb19b fix(buildcomponent): fix dockerfile cases
some errors were introduced with file paths of the form "/some_path/some_other_path" as "some_other_path" would be the dockerfile name
2017-03-09 08:45:34 -05:00
alecmerdler
4e913f106d refactored DockerfileServiceImpl to return promise instead of callbacks 2017-03-09 01:26:19 -08:00
Alec Merdler
b05f235114 Merge pull request #2414 from alecmerdler/fix-select-robot
Fix Robot Accounts Not Visible in Githost Trigger Setup
2017-03-08 16:01:01 -08:00
alecmerdler
52b2f5828c fix no robot accounts visible 2017-03-08 15:27:22 -08:00
Alec Merdler
a0e78b5f09 Merge pull request #2413 from alecmerdler/fix-yarn-deps
Fix Container Build - Upgraded all AngularJS Packages
2017-03-08 15:12:23 -08:00
alecmerdler
5be9e40ff3 upgraded all AngularJS packages to 1.6.2 2017-03-08 14:57:16 -08:00
Joseph Schorr
62312e6461 Add warning when CAS paths are skipped and ensure we are under a transaction 2017-03-08 17:01:07 -05:00
Alec Merdler
5f336cd670 Merge pull request #2412 from alecmerdler/fix-webpack
Fix ConcourseCI to Use Yarn Package Manager
2017-03-08 13:17:47 -08:00
alecmerdler
1035803d3a switching back to yarn 2017-03-08 12:32:44 -08:00
alecmerdler
d83da67e84 trying npm now 2017-03-08 12:20:35 -08:00
alecmerdler
bd3a6617c4 added jQuery type definitions for TypeScript 2017-03-08 12:01:20 -08:00
alecmerdler
85441c8459 refactoring to promises 2017-03-08 11:43:53 -08:00
alecmerdler
390e389027 all tests for DockerfileServiceImpl 2017-03-07 21:46:12 -08:00
josephschorr
88fcb199db Merge pull request #2409 from coreos-inc/dockerfile-hack
Add a temporary HACK to work around bad path logic in trigger
2017-03-07 23:40:36 -05:00
Joseph Schorr
59cd244837 Add a temporary HACK to work around bad path logic in trigger 2017-03-07 23:34:39 -05:00
josephschorr
873cda982e Merge pull request #2408 from coreos-inc/manual-trigger-bug-fix
Manual trigger bug fixes
2017-03-07 20:53:21 -05:00
Joseph Schorr
19bc023ce0 Make sure ref field in manual trigger dialog is cleared 2017-03-07 20:39:57 -05:00
Joseph Schorr
0ab6388e30 Add support for null ref, as that can be the value if a default branch is not chosen 2017-03-07 20:39:42 -05:00
alecmerdler
32827d7ba4 more tests for DockerfileService 2017-03-07 17:34:43 -08:00
Joseph Schorr
a15abd3b5c Fix API exception in trigger setup due to invalid Dockerfile path 2017-03-07 19:25:18 -05:00
Alec Merdler
04c9b6568c Merge pull request #2406 from alecmerdler/trigger-fix
Fix styling for deselected organizations in build trigger setup
2017-03-07 11:31:56 -08:00
alecmerdler
f7258c85e4 fix styling for deselected organizations in build trigger setup 2017-03-07 11:27:52 -08:00
alecmerdler
80b3666eb7 refactoring DockerfileService 2017-03-07 11:25:18 -08:00
josephschorr
c43af3afa5 Merge pull request #2405 from coreos-inc/trigger-fixes
Small build trigger setup fixes
2017-03-07 14:17:56 -05:00
Joseph Schorr
5a2a72bfac Fix padding in mobile view of triggers
Fixes https://www.pivotaltracker.com/story/show/141245867
2017-03-07 14:11:37 -05:00
Joseph Schorr
f2750ba645 Make sure to initialize trigger setup when *both* values change
Hopefully fixes https://www.pivotaltracker.com/story/show/141245817
2017-03-07 14:05:55 -05:00
Joseph Schorr
69e550d125 Fix GC handling around CAS paths
Adds code to ensure we never GC CAS paths that are shared amongst multiple ImageStorage rows, as well as an associated pair of tests to catch the positive and negative cases.
2017-03-07 13:48:07 -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