Commit Graph

181 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
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
Hiro Asari
e00b938f4d Merge pull request #190 from travis-ci/hh-annotations
Annotation support (#1220)
2014-01-27 08:41:52 -08:00
Piotr Sarnacki
360b32a4f2 Merge branch 'updated-styles'
Conflicts:
	assets/scripts/app/templates/layouts/top.hbs
	assets/scripts/app/templates/repos/list.hbs
2014-01-27 13:02:05 +01:00
Hiro Asari
715b1a2d36 Drop image and add status for Annotation 2014-01-24 10:32:11 -05:00
Hiro Asari
9e2a8cb218 Merge branch 'master' into hh-annotations
Conflicts:
	assets/scripts/app/controllers/job.coffee
	assets/scripts/app/models/job.coffee
2014-01-24 10:18:58 -05:00
Hiro Asari
8b6be08ef4 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/routes.coffee
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-17 07:09:04 -05:00
Piotr Sarnacki
eb54463d35 Remove reference to I18n 2014-01-16 21:08:47 +01:00
Justine Arreche
f6491297c1 removed instances of locales in current_user and user 2014-01-14 14:01:40 -05:00
Hiro Asari
4e24d9835a HTTPS everywhere for github.com 2014-01-11 15:11:03 -05:00
Justine Arreche
d324319a96 changes made to profile page including increased type size for readability, color styling and gravatar border radius increase 2014-01-03 19:10:58 -05:00
Piotr Sarnacki
536866d7d6 Get config headers only from jobs when preparing jobs table
After changes in travis-core, irrelevant headers are removed when matrix
is expanded. For example python version is removed from a ruby build.
Build's config is not altered, so in order to get only effective keys,
we need to iterate over jobs.
2013-12-19 14:05:23 +01:00
Piotr Sarnacki
3a15b037da Link to repo settings from a hooks page 2013-12-18 11:02:24 +01:00
Piotr Sarnacki
c18222ea51 Settings pane
This commit contains a settings pane implementation. There are a couple
of things here, which are not used yet, like advanced form helpers. I'm
leaving them here, because the plan is to add support for more settings
soon (like: include/exclude branch patterns), which will need these
helpers.

There is also tabs support, although in the current version there is
only one tab (initially it was created for supporting general tab and
notifications tab).
2013-12-18 11:02:23 +01:00
Hiro Asari
ade98c7e44 Polish build matrix table header
Instead of uniformly camelizing the headers, use a map of headers
each build matrix key should display in the table
2013-12-15 00:50:48 -05:00
Piotr Sarnacki
a2bc840292 Use more fetch instead of find
fetch method returns a promise instead of an actual object. We used find
before, because this was the way we did things before upgrade to Ember
Model. Returning a promise from a model hook pauses router rendering for
the time a resource is loading, which makes it much easier to deal with
asynchronous requests. Thanks to that we can remove parts of the code,
which dealt with it manually.
2013-12-11 12:43:09 +01:00
Sven Fuchs
eaf260a516 Revert "Display repos with no builds, but which are active in 'My repositories'"
This reverts commit fbed80f166.

Conflicts:
	assets/scripts/app/templates/repos/list.hbs
2013-11-12 16:06:26 +01:00
Hiro Asari
758ad40349 Fix typo 2013-11-07 11:50:12 -05:00
Hiro Asari
b72cc319cc Reduce number of AJAX requests 2013-11-06 15:57:16 -05:00
Hiro Asari
3f30eecc7d Add granular permission levels to User
Display buttons for job control only if the user has permission to do
so.
2013-11-06 15:00:46 -05:00
Piotr Sarnacki
fbed80f166 Display repos with no builds, but which are active in 'My repositories'
When user activates a repository in the profile page, we now will
display this repository on the 'My Repositories' list. When user chooses
this repository, she will see an explenation why there is no builds and
what could be done to fix this.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/models/repo.coffee
	assets/scripts/app/templates/repos/list.hbs
2013-10-29 18:05:23 +01:00
Piotr Sarnacki
9c7606ff96 Don't try to format date if it does not exist 2013-10-01 14:29:55 +02:00
Piotr Sarnacki
4bb331686c Fix finishedAt tooltips and show dates in local time zone 2013-10-01 11:25:40 +02:00
Piotr Sarnacki
194080cc43 Treat build number as number
I changed it to be a Number along with Job's number, but it's wrong -
Build's number should be treated as an integer (to not screw up
ordering) and Job's number can be treated as a string (because it has a
format "\d.\d")
2013-09-19 00:04:09 +02:00
Piotr Sarnacki
fc77800f8e Build.number and Job.number should be treated as strings 2013-09-16 18:53:14 +02:00
Piotr Sarnacki
3d6fd53883 Ember Model sets primaryKey on class 2013-09-16 18:53:13 +02:00
Aaron Hill
c1dcaa2715 Fix duration being incremented after a build/job is finished 2013-09-07 20:49:53 -04:00
Piotr Sarnacki
fb120af69e Use pullRequestNumber from build, not from commit 2013-08-29 01:01:03 +02:00
Piotr Sarnacki
18ba86eca0 Remove stuff not used in travis-web anymore 2013-08-28 14:17:26 +02:00
Piotr Sarnacki
34ae33f087 Fix filtering for queue and running jobs 2013-08-27 23:26:08 +02:00
Mathias Meyer
da7cb6f4b0 Add githubLanguage as repository property. 2013-08-27 15:30:42 +02:00
Piotr Sarnacki
d5038a4855 Fix allBuilds for ember-model 2013-08-25 14:54:55 +02:00
Piotr Sarnacki
eb35a0e1c6 Merge branch 'master' into ui-improvements
Conflicts:
	assets/scripts/app/controllers.coffee
2013-08-25 14:46:03 +02:00
Piotr Sarnacki
d18cffd1a7 When observing all builds don't request them
We use `allBuilds` to observe new incoming builds, so we can put new
builds into the lists (for example when build is started). We use it for
observing purposes only, so we actually don't need to get builds from
the server, we can just register record array and use it later on.
2013-08-22 15:29:12 +02:00
Piotr Sarnacki
c9e677fd86 Allow to cancel jobs after they're started 2013-08-12 17:35:12 +02:00