Commit Graph

214 Commits

Author SHA1 Message Date
Piotr Sarnacki
a891892bd8 Add missing requires in routes 2015-01-14 18:23:51 +01:00
Piotr Sarnacki
09075e880d Don't display remove log button if it's already removed 2015-01-09 15:02:34 +01:00
Piotr Sarnacki
fbcfa04859 Don't destroy parts on cleanup
Destroying parts on cleanup can have weird effects, because we observe parts in
log view.
2014-12-30 11:58:56 +01:00
Piotr Sarnacki
eb9eac2b09 Merge branch 'refactoring' into ps-travis-pro-merge 2014-12-30 11:30:08 +01:00
Piotr Sarnacki
73f06eba0f [pro-merge] Add token when fetching logs 2014-12-29 18:17:57 +01:00
Piotr Sarnacki
b4573ff293 [pro-merge] Add model extensions from travis-pro 2014-12-29 18:17:57 +01:00
Piotr Sarnacki
fa6b0fe161 No need to destroy parts in runloop 2014-12-29 18:16:16 +01:00
Piotr Sarnacki
0a69a5424d Fix log errors on 1.8.1
This part needs further refactoring, but for now I just fixed log view to
teardown and setup things properly in all cases something changes (when element
is inserted or removed, but also when log object is changed).
2014-12-29 18:16:15 +01:00
Mathias Meyer
096e9872a6 Fix eventType for the build.
This (somehow) ensures that the job page is properly populated.
2014-12-12 12:22:20 +01:00
Mathias Meyer
aef53f4554 Fix event type display on the jobs page. 2014-12-12 11:41:54 +01:00
Justine Arreche
806fd899bc attempting to add job event types to jobs tab 2014-12-12 11:36:43 +01:00
Josh Kalderimis
a2d4446382 Revert "comment out push code"
This reverts commit 2d5643f392.

Conflicts:
	assets/scripts/app/models/build.coffee
2014-12-11 20:22:33 +01:00
Justine Arreche
860977347f add push 2014-12-11 19:34:56 +01:00
Justine Arreche
2d5643f392 comment out push code 2014-12-11 19:31:05 +01:00
Sven Fuchs
776e3e9c3b set the build request type class from build.eventType 2014-12-10 21:30:46 +01:00
Piotr Sarnacki
c3a843a886 Add button for removing logs 2014-12-10 21:30:43 +01:00
Piotr Sarnacki
95538498f0 Make pusher log fallback configurable and disable it by default 2014-11-12 12:26:49 +01:00
Sven Fuchs
7315efed5f remove extra comma 2014-10-14 15:29:12 +02:00
Sven Fuchs
b348ee0e40 Revert "Make sorting more in line with what we will do on a server"
This makes the timeline ordering odd when restarting: The repo will be
sorted to be bottom of the timeline while in :created state, and then
pops back up to the top when :started.

One weird thing is that it only seems to behave this way on com
(staging) and enterprise, but not on org (staging).

This reverts commit ce8237b4e7.
2014-10-14 15:20:14 +02:00
Sven Fuchs
fa8a00194a remove stale prefix 2014-10-13 15:00:04 +02:00
Sven Fuchs
5130726389 restore CHANNEL_PREFIX, but check if it is already present 2014-10-13 14:59:31 +02:00
Sven Fuchs
1951784c28 add private attribute to repo, prefix job channels based on the private status, otherwise use what api hands over 2014-10-13 14:59:25 +02:00
Piotr Sarnacki
ce8237b4e7 Make sorting more in line with what we will do on a server 2014-10-13 14:55:54 +02:00
Sven Fuchs
2aba520512 more hardcoded github.com urls 2014-10-13 14:46:36 +02:00
Piotr Sarnacki
e84b7b81c5 Remove incomplete records loading implementation 2014-09-19 15:43:17 +02:00
Piotr Sarnacki
1297c99396 Don't fetch missing log parts if test haven't started yet 2014-09-12 15:43:43 +02:00
Piotr Sarnacki
13408d875a Implement fallback for pusher log messages
If we don't get any pusher messages with log updates after 5 seconds, we
will try to download them from the API.
2014-09-11 18:22:31 +02:00
Piotr Sarnacki
9741ede075 Merge branch 'ps-env-vars'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/helpers/handlebars.coffee
	assets/scripts/app/templates/repo/settings.hbs
	assets/scripts/app/views/repo/show.coffee
	assets/styles/tabs.sass
	config.ru
2014-08-21 16:02:07 +02:00
Piotr Sarnacki
61f820cada Specify _finishedAt and _startedAt as dependencies for duration
Because of our partial loading implementation we need to specify
finishedAt and startedAt differently than we would normally do. For some
reason duration was not recalculated while loading record and specifying
raw attributes helps here.
2014-08-15 06:25:19 +02:00
Piotr Sarnacki
4fc599f767 Revert dd46161 and 2ccade4
Duration on job was not specified, beacuse we actually don't return
duration from the API, it's always calculated based on startedAt and
finishedAt, that's why it's obsolete. It doesn't hurt to have it defined
on the Job model, but there's no need to do it.
2014-08-15 06:05:04 +02:00
Piotr Sarnacki
dd46161487 Duration is not returned before build is finished 2014-08-14 22:47:56 +02:00
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
Piotr Sarnacki
17ed1d94cc First stab at ssh key form 2014-07-31 12:26:19 +02:00
Piotr Sarnacki
745a39eae5 First stab at env vars 2014-07-28 14:19:44 +02:00
Piotr Sarnacki
2677f3f613 Fix specs 2014-07-15 13:23:01 +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
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
1a0d004aeb Link commit on requests list to github 2014-05-12 11:03:10 +02:00
Piotr Sarnacki
57edf811b7 Add requests page 2014-05-12 11:03:10 +02:00
Josef Šimánek
141619c3f5 Show committer in build header only when he's not author. 2014-05-09 04:28:58 +02:00
Mathias Meyer
35fc98edaf Only show message body when it exists.
Otherwise the script will return the message subject again rather
than show nothing at all.
2014-05-05 10:02:30 +02:00
Mathias Meyer
22130f8328 Wrap commit body into a pre tag.
This follows the idea that the message can contain useful things
like ASCII diagrams or wonderful art.

Related to travis-ci/travis-ci#2003.
2014-05-03 19:59:20 +02:00
Henrik Hodne
2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00
Henrik Hodne
db2d38a7af
Revert setting panel deploy
This seems to have caused issues with enabling the hooks for
repositories.
2014-02-12 09:14:47 -06:00
Piotr Sarnacki
8d19410264 Merge remote-tracking branch 'origin/settings-pane'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/routes.coffee
	assets/scripts/app/views/repo/show.coffee
2014-02-12 11:52:01 +01:00
Piotr Sarnacki
e5749b0629 Fix handling not existing repos
Also ensure that we don't break it again with an integration test.
2014-02-12 08:02:47 +01:00
Henrik Hodne
1b7aba494a
fix(models): update the endpoint used to restart jobs and builds
/requests is deprecated
2014-01-30 17:19:15 -06:00