Piotr Sarnacki
b0df09fb22
Fix displaying no-builds message with an index view
2016-01-15 15:43:29 +01:00
Piotr Sarnacki
4bbf114e82
Check also for value in attrs for job-log
2016-01-15 15:15:59 +01:00
Piotr Sarnacki
e1a2f42030
Properly set pusher path in config
2016-01-15 12:36:45 +01:00
Jason Karns
a7e2099829
Fix grammatical error for finished job duration
...
While a job is running, on the job status view, the duration is labeled: "Running for x sec". When the job finishes, 'Running' is swapped for 'Total time'. But "Total time for x sec" doesn't make any sense. the " for" should be part of the conditional with "Running"
2016-01-14 14:03:41 -05:00
Piotr Sarnacki
c70ed06848
Fix sorting on builds list
2016-01-14 15:40:06 +01:00
Piotr Sarnacki
557797ab19
Fix show more button for builds
...
While doing search and replace I accidentally replaced too much
occurences of 'builds'
2016-01-14 14:10:20 +01:00
Piotr Sarnacki
0a872e25a7
Fix showing running jobs
...
When I changed tabs-list-view to be a component I missed the fact that
config is not registered for components, which resulted in not showing
the running jobs tab at all. This commit fixes the situation.
2016-01-14 14:04:29 +01:00
Piotr Sarnacki
8eaee33d6d
Merge pull request #433 from travis-ci/update-ember
...
Update Ember.js to 2.2.0 and Ember Data to 2.3.0
2016-01-14 13:22:32 +01:00
Piotr Sarnacki
660752ec78
Fix build header for job with PR data
2016-01-14 13:21:57 +01:00
Piotr Sarnacki
93deb7f4e2
Fix tests
2016-01-14 13:14:45 +01:00
Piotr Sarnacki
0c15a09d54
Update Ember Data to 2.3.0
2016-01-14 11:54:47 +01:00
Piotr Sarnacki
ed71aa133e
Update Ember.js to 2.2.0
2016-01-14 11:54:26 +01:00
Piotr Sarnacki
efaae492c4
Run GA instructions only if gaCode is set
2016-01-14 11:38:46 +01:00
Piotr Sarnacki
c96a4602cd
Merge pull request #432 from travis-ci/ps-remove-deprecations
...
Remove deprecations in preparation for 2.x update
2016-01-14 11:37:41 +01:00
Piotr Sarnacki
99b7ce4a9d
Add missing semicolon
2016-01-14 11:28:25 +01:00
Lisa P
c694ab24f6
remove broadcast animation because 💥 CPU
2016-01-13 18:19:56 +01:00
Lisa P
76749e2250
fix signin loop
2016-01-13 15:29:44 +01:00
Lisa P
a63188ae13
add explicit signin route
2016-01-13 14:28:22 +01:00
Piotr Sarnacki
34ca0cc386
Use transitionToRoute instead of transitionTo in controllers
2016-01-13 12:00:35 +01:00
Piotr Sarnacki
fb1b820837
[deprecations] Remove all of the views from the app
2016-01-13 11:26:30 +01:00
Piotr Sarnacki
ee5f842d51
Fix adding ssh key
2016-01-13 11:25:45 +01:00
Piotr Sarnacki
271b8f89ea
Fix show more button and simplify builds controller
2016-01-13 11:25:41 +01:00
Piotr Sarnacki
13d2eba016
[deprecations] Remove the need to use beforeObserver in job-log component
2016-01-12 18:27:24 +01:00
Piotr Sarnacki
21f25cd2bf
[deprecations] Remove all of the views from the app
2016-01-12 16:55:22 +01:00
Piotr Sarnacki
c3ef9ac5d9
[deprecations] Remove all of the views we use just for layouts
2016-01-12 16:55:22 +01:00
Piotr Sarnacki
1c33475ff6
[deprecations] Don't use snapshot.get()
2016-01-12 16:55:22 +01:00
Lisa P
bd7e4a001d
fix wobbling building icon
2016-01-12 13:25:57 +01:00
Lisa P
e3b77b4b5a
fix yellows across the place
2016-01-12 13:10:15 +01:00
Lisa P
6eed891a1a
show build number on hover in branch tiles
2016-01-12 13:10:15 +01:00
Piotr Sarnacki
bbf0b7459f
Allow to set an alternative endpoint for auth
2016-01-11 14:26:26 +01:00
Lisa P
b8f8071f98
add image descriptions
2016-01-07 14:33:34 +01:00
Lisa P
253a56f47d
not use view in accounts
2016-01-07 14:22:39 +01:00
Piotr Sarnacki
f9df4b1896
[deprecations] Don't use before observer
2016-01-07 13:15:59 +01:00
Piotr Sarnacki
85b2837c52
[deprecations] Disable fetching records in the background by Ember Data
2016-01-07 11:28:52 +01:00
Piotr Sarnacki
39cf0b3044
[deprecations] Don't use ArrayController
2016-01-07 11:22:40 +01:00
Piotr Sarnacki
4b71704b1c
[deprecations] Don't use second argument in a property
...
This makes Ember.js think that we're trying to use the property as
setter and it's deprecated
2016-01-07 11:18:05 +01:00
Piotr Sarnacki
e7ca2c8bfe
[deprecations] Use Store#unloadRecord instaed of Store#dematerializeRecord
2016-01-07 11:18:05 +01:00
Piotr Sarnacki
a920ae9cd7
[deprecations] Use modelName instead of typeKey
2016-01-07 11:18:05 +01:00
Piotr Sarnacki
4e3a755908
[deprecations] Use Adapter#findRecord instead of Adapter#find
2016-01-07 11:18:05 +01:00
Piotr Sarnacki
a6087d4fcd
[deprecations] Use Component#_state instead of Component#state
2016-01-07 11:18:00 +01:00
Piotr Sarnacki
131a09c9c5
[deprecations] Use store.query instead of store.find where appropriate
2016-01-07 10:41:08 +01:00
Piotr Sarnacki
f5823669b2
[deprecations] Use regular computed property instead of arrayComputed
2016-01-07 10:40:17 +01:00
Piotr Sarnacki
03332a8654
[deprecations] Don't run Ember.set directly in didInsertElement
2016-01-07 10:40:14 +01:00
Piotr Sarnacki
16da227dd9
[deprecations] Use LinkComponent instead of LinkView
2016-01-07 10:35:55 +01:00
Piotr Sarnacki
bde3b7375a
Fix displaying flashes coming from the server
2016-01-07 10:22:18 +01:00
Piotr Sarnacki
7649c180dd
Fix cancel and restart buttons
...
Callback functions for restart and cancel where improperly updated while
switching from coffeescript to javascript.
2016-01-07 10:19:29 +01:00
Lisa P
561e671e0d
be more explicit about github icon size
2016-01-06 16:26:49 +01:00
Konstantin Haase
e6520ff7cc
rkh moved to switzerland
2016-01-06 14:30:29 +01:00
Piotr Sarnacki
0b8c032c21
Make JSHint happy
2016-01-06 12:14:02 +01:00
Piotr Sarnacki
ac7c92d0c4
Bring back DurationCalculations mixin to Build
2016-01-06 12:09:03 +01:00
Piotr Sarnacki
b57adacf02
Fix displaying synced at time on the profile page
2016-01-06 11:32:17 +01:00
Piotr Sarnacki
6ee82c0cf8
Merge pull request #426 from travis-ci/lp-whitelist-info
...
add link to docs on requests if branch is gh-pages
2016-01-06 11:26:09 +01:00
Lisa P
5bf4e4ffe4
make isGHPages a proper property
2016-01-05 15:01:38 +01:00
Piotr Sarnacki
f4aa705b51
Merge pull request #427 from travis-ci/fix-displaying-last-synced-at
...
Fix displaying synced at time on the profile page
2016-01-05 14:57:37 +01:00
Piotr Sarnacki
341296aaaa
Merge pull request #418 from travis-ci/lp-mobile-log
...
Mobile log
2016-01-05 14:55:52 +01:00
Piotr Sarnacki
01bcfb8a8c
Merge pull request #424 from travis-ci/lp-accessible-jobslist
...
add aria-labels to jobs-item
2016-01-05 14:51:21 +01:00
Lisa P
1233eba3e8
fix log
2016-01-05 14:44:27 +01:00
Lisa P
8d2ca774d0
fix template logic if job has not yet started
2016-01-05 14:20:23 +01:00
Lisa P
f445690fb5
refactor a lot of buttons so toggle log looks more consistent
2016-01-05 14:20:23 +01:00
Lisa P
10b0c62fc2
make log toggle on mobile
2016-01-05 14:15:25 +01:00
Lisa P
8e2b3a86c6
feature flag Build
2016-01-05 13:57:14 +01:00
Lisa P
5a0618b22e
bring back branch name
2016-01-05 13:35:29 +01:00
Lisa P
4edd1feaad
remove coffee file
2016-01-05 13:25:48 +01:00
Lisa P
f5211f1fdc
add aria-labels to jobs-item
2016-01-05 12:56:26 +01:00
Lisa P
dbd124852d
remove coffee file
2016-01-05 12:44:08 +01:00
Lisa P
7aa77b4f6f
add link to docs on requests if branch is gh-pages
2016-01-05 12:43:09 +01:00
Piotr Sarnacki
00d448c231
Fix displaying synced at time on the profile page
2016-01-05 12:31:12 +01:00
Piotr Sarnacki
737685a7c0
Fix ajax callbacks after javascript conversion
2016-01-04 13:15:15 +01:00
Piotr Sarnacki
ece4141cc5
Remove annotations relationship on job
2016-01-04 13:15:15 +01:00
Piotr Sarnacki
e60b0a0224
Fix jshint errors after conversion to JS
2016-01-04 13:15:15 +01:00
Piotr Sarnacki
fafaf65043
Convert project to JavaScript
2016-01-04 13:15:14 +01:00
Jonas Weber
e27a19101d
Drop unneeded imports for gravatarImage
2016-01-04 12:19:14 +01:00
Jonas Weber
ab54733723
Show author name and author avatar on builds list
2016-01-04 12:18:33 +01:00
Jonas Weber
9e94643dc4
Calculate actual avatar URL in model
...
repeated logic for Gravatar fallback
2016-01-04 12:18:01 +01:00
Piotr Sarnacki
4e720519fe
Revert "Merge branch 'thriqon-bug-author-committer'"
...
This reverts commit ac576077ab
, reversing
changes made to f9263fc8f3
.
2016-01-04 12:14:44 +01:00
Jonas Weber
b68ae942a6
Drop unneeded imports for gravatarImage
2016-01-04 11:54:18 +01:00
Jonas Weber
83bb882475
Show author name and author avatar on builds list
2016-01-04 11:53:20 +01:00
Jonas Weber
8abc24f04b
Calculate actual avatar URL in model
...
repeated logic for Gravatar fallback
2016-01-04 11:50:10 +01:00
Piotr Sarnacki
573ebfd406
Fix status image popup
...
While fixing deprecations a `propertyBinding="foo"` calls were changed
into `property="foo"` calls, which should be `property=foo`. Otherwise
`foo` is treated as a string.
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
ae704df6bf
Use el.innerHTML = ''; instead of $(el).empty()
...
It turns out that jQuery's empty method can be really slow in Firefox,
which can freeze the browser when cleaning the log.
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
f6b95a9a9a
Convert log-content component to js
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
7f74787b91
Properly normalize array repsonse for V2 jobs
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
f01b95f886
Convert job serializer to js
2016-01-04 11:41:50 +01:00
Lisa P
8cf9be6adc
refactor some of the icon styles an usages
2016-01-04 11:41:50 +01:00
Lisa P
a751145fef
use base64 backgroung svg
2016-01-04 11:41:50 +01:00
Lisa P
7fa107a3f0
update default avatar
2015-12-22 11:13:14 +01:00
Lisa P
d95e34484f
remove old repos templates
2015-12-22 11:13:10 +01:00
Lisa P
b4a8dc5707
remove jobs template
2015-12-22 11:13:03 +01:00
Lisa P
a941bc867a
remove label helper
2015-12-22 11:12:57 +01:00
Lisa P
79c8e97f51
remove events file
2015-12-22 11:12:52 +01:00
Lisa P
fc0aefb42c
remove old env-vars files
2015-12-22 11:12:44 +01:00
Lisa P
90675b1380
remove annotations
2015-12-22 11:12:38 +01:00
Lisa P
7eef434c67
delete unused accounts files
2015-12-22 11:12:32 +01:00
Lisa P
b99dc5ee59
refactor accounts, pt2
2015-12-22 11:12:25 +01:00
Lisa P
875ff4fb44
rearrange templates, start unifying avatar
2015-12-22 11:12:19 +01:00
Lisa P
201a37aa70
refactor accounts, pt1
2015-12-22 11:12:12 +01:00
Lisa P
8c9f92062d
refactor cta subscription button to component, remove deprecation
2015-12-22 11:07:44 +01:00
Lisa P
bae81542b9
update more deprecated syntax
...
update input action handling
2015-12-22 11:07:35 +01:00
Lisa P
d18715858f
switch to new each helper syntax
2015-12-22 11:07:07 +01:00
Lisa P
af76a3f30b
change to .peekRecords and .isEvery
2015-12-22 10:50:59 +01:00
Piotr Sarnacki
96f22bff8c
Get also api builds when clicking on 'show more'
2015-12-17 13:21:38 +01:00
Piotr Sarnacki
e170753ba8
Properly serialize env var
2015-12-17 13:12:56 +01:00
Piotr Sarnacki
fdd7b5b91b
Properly normalize ssh key
2015-12-17 13:10:07 +01:00
Piotr Sarnacki
2e2d2ae81b
Feature flag API V3
2015-12-17 12:39:17 +01:00
Lisa P
5a747a4da0
Merge pull request #417 from travis-ci/hh-new-title-picture
...
Update the picture and title for Henrik
2015-12-10 07:20:21 -08:00
Piotr Sarnacki
598f6a02fb
Don't show default branch in inactive branches
2015-12-10 12:12:42 +01:00
Piotr Sarnacki
830211444b
Make only one query to jobs
2015-12-10 11:43:54 +01:00
Piotr Sarnacki
048e7737ea
Limit initial repos request to 20 repos
2015-12-10 11:43:46 +01:00
Piotr Sarnacki
b950b60c64
Fix committer and author in build header
2015-12-10 09:39:05 +01:00
Piotr Sarnacki
b94cc70a4e
Removed wrong function in 4d73d67
2015-12-09 18:40:29 +01:00
Piotr Sarnacki
4d73d67f51
Remove duplicated function in job's serializer
2015-12-09 18:08:21 +01:00
Henrik Hodne
80a0255f39
Update the picture and title for Henrik
2015-12-09 17:43:03 +01:00
Piotr Sarnacki
679d5227b3
Don't reload a page after clicking on Travis CI's logo
2015-12-09 14:52:37 +01:00
Piotr Sarnacki
b2b892238b
Fix adding ssh key
2015-12-09 11:58:10 +01:00
Piotr Sarnacki
9a55449789
Fix pusher auth for pro
2015-12-09 11:57:57 +01:00
Piotr Sarnacki
cc38f08df4
Fix codeclimate logo
2015-12-09 10:23:09 +01:00
Piotr Sarnacki
09f27d47be
Fix search
2015-12-09 10:23:09 +01:00
Piotr Sarnacki
00653e9420
Fix repo search
2015-12-08 10:18:09 +01:00
Piotr Sarnacki
ada9e9ba02
Fix adding ssh keys and env vars
2015-12-08 10:18:09 +01:00
Piotr Sarnacki
6db80a4073
Remove unneeded require
2015-12-08 10:18:09 +01:00
Piotr Sarnacki
87fdd95a6f
Fix tests
2015-12-08 10:18:09 +01:00
Piotr Sarnacki
d4955c1ed0
Fix hooks toggling
...
New ember-data serializers send data without a model key in the payload
by default, so instead of what API expects:
{
"hook": {
"id": 1,
"active": true
}
}
it would send:
{ "id": 1, "active": true }
Because of that we need to change how hooks are serialized.
Furthermore, API V2 returns just "result: true" after a successful
request to change a hook, so we need to return something meaningful from
the adapter's updateRecord in order to make ember-data happy.
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
0d9755489f
Sort repos in repos controller, not in the component
...
We rely on the order of repositories when we set current repo on the
main page. That's why we need to do sorting in the controller.
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
35c5d619bd
Convert repos controller to javascript
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
36d099667e
Download last_build for a branch when we get the branch from pusher
...
`lastBuild` is a synchronous relationship on a branch model, so we need to
have a build record present when we put a default branch from a repository
model into the store. We don't send lastBuild's payload in pusher, so
we need to get it using an ajax call, if it's not already in the store.
In the future we may decide to make the relationship async, but I don't
want to change the code at the moment
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
bdcb906fe0
[deprecations] Use peekRecord instead of getById
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
842c050100
Load repos list only once
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
2be45cdc18
Fix requests payload
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
e8f2e5ae97
Properly notify build to update times
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
a56e4a39c3
Fix sorting on the left sidebar
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
e1a334678d
Fix handling default_branch from pusher
...
Pusher payloads don't have all of the information that is available in
API V3, so we need to do some normalizing.
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
9b4d5c5b4e
Remove obsolete pusher handling code from store
...
Removed code was checking if we should handle a pusher event, ie. if the
event is associated with the user, or if we already have a record
associated with the event. We don't need the check now, because we no
longer use the common channel.
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
b31831d535
Set repo as default serializer only on repo serializer, not v3
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
b8b1459cf5
Don't error out if there's no hash in extractRelationship for V3
2015-12-08 10:18:07 +01:00
Piotr Sarnacki
69dd90b76b
Model#typeKey -> Model#modelName
2015-12-08 10:18:06 +01:00
Piotr Sarnacki
a732a18e59
Fix key for repo relationship for V3 API
2015-12-08 10:18:06 +01:00
Piotr Sarnacki
c3fd0d8e98
Fix loading record by slug
...
In a repo route we need to find record by slug there is no easy way to
do it with a public finders API, so we need to use adapter and
serializers directly. The problem is that the old way of doing this
didn't use the normalizePayload function and also it didn't add included
records properly. New code properly normalizes response and adds all of
the embedded records that were extracted from the response.
2015-12-08 10:18:06 +01:00
Piotr Sarnacki
7ae4d6aa7d
Fix handling branches
...
This commit fixes handling of branches when using both V3 and V2. The
changes include:
* proper definition of relationships that reflect V3 structure, so for
example build belongs to a branch
* setting up inverse records for some of the relationships. without
doing that Ember Data can handle relationships in a surprising way,
for example if the same record is referenced in 2 places in a
belongsTo relationship, Ember Data will remove one of the references
without proper inverse definitions
* we need to add id when extracting branch as a relationship. Ember
Data expects all of the relationships to have an id
* lastly, we need to mimic the structure of the V3 API in V2 payloads,
so for a build payload I'm now creating a branch record
2015-12-08 10:18:06 +01:00
Piotr Sarnacki
147ab06fcf
Fix references in V3 payloads
...
V3 API doesn't return any of the records more than 2 times. If a record
is already included in the response any other occurences will be
represented as a reference, ie. a hash with just an @href. Ember Data
doesn't play nice with such references as it needs an id to identify a
record.
The code in this commit traverses payloads from V3 API and adds an id to
each of the references that are present.
For example a following payload:
{
"@href": "/build/1",
"@type": "build"
"id": 1,
"state": "passed",
"branch": {
"@href": "/repo/1/branch/master",
"name": "master",
"lastBuild": {
"@href": "/build/1"
}
}
}
Will be changed to:
{
"@href": "/build/1",
"@type": "build"
"id": 1,
"state": "passed",
"branch": {
"@href": "/repo/1/branch/master",
"name": "master",
"lastBuild": {
"@href": "/build/1",
"id": 1
}
}
}
In this case an "id" field was added to "branch.lastBuild" field.
2015-12-08 10:18:06 +01:00
Piotr Sarnacki
e84cf89cf7
app/serializers/repo.coffee -> app/serializers/repo.js
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
e161717f73
Simplify pusher handling in store
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
d7400c0567
Remove console.log
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
81898e422f
Fix pusher to work with new ember-data
...
This commit just fixes things to the point where pusher updates are
applied to the store properly. This still lacks a business logic fixes,
so for example we won't update lastBuild's field, because there's no
such information from pusher.
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
7187d2ef45
Disable dashboard test for now
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
d636369daa
Fix sidebar repos list
...
We need this list to update with pusher, so filtering is better than
using store.query.
2015-12-08 10:18:05 +01:00
Piotr Sarnacki
35f95739c7
Attribute mappings in serializers should use underscore notation
2015-12-08 10:18:04 +01:00
Piotr Sarnacki
dbd83c8643
Use job_ids as a key for jobs relationship for build
2015-12-08 10:18:04 +01:00
Piotr Sarnacki
ca633bdf7b
Don't add commit data to included array in build serializer
...
We already do it in an abstracted way (ie. for all relationships) in v2
fallback serializer.
2015-12-08 10:18:04 +01:00
Piotr Sarnacki
ad4d06cb25
No need to add repo to the list of attributes now
2015-12-08 10:18:04 +01:00
Piotr Sarnacki
39a579c9db
Fix handling relationships for V2 API
...
* we should look for both embedded relationship and relationship key,
so in cases like for commit, when there's a full commit data on
"commit" property, and only id at "commit_id", we will use commit data
* we can't add @type to V2 fallback, because in other places we chack
for @type to distinguish V2 and V3 payloads
* there's no need to include a record in "included" if there's only a
type and an id there
2015-12-08 10:18:04 +01:00