Commit Graph

842 Commits

Author SHA1 Message Date
Piotr Sarnacki
2ccade46a4 Fix some of the issues with duration sometimes not showing up
* duration was not actually defined in Travis.Job, which may have caused
  bugs when combined with partial record loading (so for example it was
  ok on a refresh, but may have been broken on update)
* notStarted was not a dependency of duration
2014-08-14 22:39:49 +02:00
Christophe Coevoet
c482100769 Fixed the display of the build in the list of requests
Closes travis-ci/travis-ci#2667
2014-08-14 03:03:00 +02:00
Piotr Sarnacki
1f2b8a84ff Don't display link to caches if caches are disabled 2014-08-12 16:06:06 +02:00
Piotr Sarnacki
eb8b5092e6 Revert "Revert "Better wording for deleting all caches""
This reverts commit a9b1560999.
2014-08-12 16:05:30 +02:00
Piotr Sarnacki
94a752592d Revert "Revert "API uses match to filter by slug""
This reverts commit 0a9fdb718c.
2014-08-12 16:05:28 +02:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Sven Fuchs
0a9fdb718c Revert "API uses match to filter by slug"
This reverts commit e286428722.
2014-08-12 15:53:06 +02:00
Sven Fuchs
a9b1560999 Revert "Better wording for deleting all caches"
This reverts commit 07b06b2b8c.
2014-08-12 15:52:40 +02:00
Piotr Sarnacki
07b06b2b8c Better wording for deleting all caches 2014-08-05 18:15:13 +02:00
Piotr Sarnacki
e286428722 API uses match to filter by slug 2014-08-05 18:14:34 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
a5dae4acf3 Set job and build on repo controller to null when leaving
We set job and build directly on repo controller for routes like job,
build and repo.index. We also need to clean that up when we exit to not
show for example download log button when we switch to different route.
2014-07-30 13:36:27 +02:00
Piotr Sarnacki
cb4b385b2b Rename concurrent builds to concurrent jobs 2014-07-30 12:56:32 +02:00
Piotr Sarnacki
73e852b23a Remove unused helpers 2014-07-30 12:56:31 +02:00
Piotr Sarnacki
aa06f3947e Display current repo's URL for lint link 2014-07-22 18:47:45 +02:00
Justine Arreche
55d41d4d10 adding lint for requests tab 2014-07-22 18:47:44 +02:00
Justine Arreche
a6a884a5b4 link link now included in tabs 2014-07-22 18:47:44 +02:00
Justine Arreche
51913f1c7f Added impressum to help dropdown 2014-07-21 18:30:11 +02:00
Piotr Sarnacki
dabb7ea713 Send settings when maximum number of builds is == 0 2014-07-16 16:27:18 +02:00
Piotr Sarnacki
2677f3f613 Fix specs 2014-07-15 13:23:01 +02:00
Justine Arreche
68b7357375 Concurrent builds have got some STYLE 2014-07-14 16:56:00 +02:00
Justine Arreche
4d7190012f Merge branch 'switches-styling' into mm-concurrent-builds-setting 2014-07-11 17:29:27 +02:00
Piotr Sarnacki
7eb0b2b436 Show both labels on travis-switch 2014-07-04 11:22:05 +02:00
Piotr Sarnacki
23035306c7 Oh gaaawwd, really fix the dependencies 2014-06-26 18:09:28 +02:00
Piotr Sarnacki
412baaa79c Specify proper dependencies in job's and build's properties 2014-06-26 18:01:34 +02:00
Piotr Sarnacki
3d45696f9a Extract commit data on all build events if it's available 2014-06-26 13:54:08 +02:00
Piotr Sarnacki
1238caf318 Fix signing out on failed try to update user data
A while ago I introduced a change to auth code which signs out user on
failed try to get user data. The problem with it was it signed out on
all kind of errors, like network error. I changed the code to log out on
401 status, but I haven't tested it properly, we actually return 403 on
unauthenticated queries for user data.
2014-06-23 15:15:40 +02:00
Piotr Sarnacki
6cb866408d Don't return finishedAt, startedAt, duration for not started jobs/builds 2014-06-20 16:05:45 +02:00
Piotr Sarnacki
e045ab7481 Remove check of model state in DurationCalculation
We no longer need this check, because it was only relevant with Ember
Data. Additionally it was a cause of a travis-ci/travis-ci#1992, because
of wrong syntax:

    unless someFunction false or true

will only check for a result of someFunction with an argument being the
result of `or` expression.
2014-06-20 15:47:37 +02:00
Piotr Sarnacki
e0865756d1 Start running poll whenever isSyncing changes
This ensures that timing is not important, ie. if user data is refreshed
later, we can still start running poll() if user is syncing.
2014-06-19 14:40:28 +02:00
Piotr Sarnacki
a64c800423 Bring back refreshUserData when setting user data
User data needs to be refreshed on sign in, otherwise we don't have
fresh data regarding isSyncing property and other fields which can
change between refreshing page.
2014-06-19 14:32:48 +02:00
Piotr Sarnacki
2fd1af29ec Unfold lines before trying to scroll
(closes travis-ci/travis-ci#1501)
2014-06-18 15:36:23 +02:00
Mathias Meyer
d3b13d8238 Mark invalid concurrent setting input properly.
This adds a CSS class if the content is invalid.
2014-06-17 17:34:00 +02:00
Piotr Sarnacki
00ccb07a49 Fix sync button 2014-06-17 16:39:21 +02:00
Piotr Sarnacki
43e9af77d5 Don't close folds when following logs 2014-06-17 00:50:01 +02:00
Mathias Meyer
ce9322443c Merge branch 'master' into mm-concurrent-builds-setting 2014-06-16 15:46:27 +02:00
Mathias Meyer
b3fbb5f5cf Add setting for number of concurrent builds.
Includes a little rework of the settings page to fit in an input
field.
2014-06-16 15:45:03 +02:00
Piotr Sarnacki
1f3f06f60e Make Auth class global
It will allow to extend it in travis-pro-web
2014-06-10 09:13:20 +02:00
Piotr Sarnacki
52dea338ee Refactor handling accounts
This commit changes a way we load accounts for profile view:

* instead of using several views with profile controllers, always use
  one view to render hooks. This is achieved by redirecting to
  individual account page from main profile page (for example when going
  into /profile as a user drogus, the effective address will be
  /profile/drogus)
* instead of using observers to wait for accounts to load I just use
  promise in ProfileRoute#model which effectively ensures that accounts
  are loaded at the time we want to select an individual account
* profile controller is split into profile and account controller
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
459089f0cd Make profiles code a bit simpler
We don't need to nest "profile" tab in account view
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
a39d031925 Don't specify index routes
They're generated by default
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
cc8219ba7a No need to add renderFirstSync method 2014-05-28 10:23:39 +02:00
Piotr Sarnacki
42becfc019 Don't specify outlet name for 'pane' outlets
Specyfing "pane" as an outlet name here was a legacy thing. In current
form it doesn't give us anything and results in more code, as we need to
specify outlet everytime we want to render something there.
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
de14a03de1 Simplify logic for displaying 'no builds for repository' error
We use promise when fetching a repository which means that any nested
routes already have all the repository data loaded. Thanks to that there
is no need to setup observers, we can check what to render right away in
RepoIndexRoute
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
27ae7c4ec2 No need to name outlet 'main' 2014-05-28 10:23:38 +02:00
Piotr Sarnacki
51b9f02da9 Don't render "flash" as an outlet.
Just as with "top", we always render "flash" into flash outlet, so we
can render it straight away.
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
338be594bd No need to keep "top" as an outlet.
We render the same thing for "top" part of the site for every layout,
there is no need to keep it as an outlet, we can just render it
directly.
2014-05-28 10:23:37 +02:00
Piotr Sarnacki
3b1cd4f5c4 Bring back afterSignIn and afterSignIn as actions sent to controller
It seems that there is more use cases to cover with this behaviour, for
example when someone enters /auth directly and logs in from there.
2014-05-28 10:22:48 +02:00
Piotr Sarnacki
9dd198ed75 Remove auth logic from redirect in Travis.Route
Auth check in redirect duplicates beforeModel logic
2014-05-28 10:22:48 +02:00