Граф коммитов

4178 Коммитов

Автор SHA1 Сообщение Дата
Cameron Dawson b194cfd303 grunt build after revert 2015-07-16 10:18:37 -07:00
Cameron Dawson 55c316314b Revert "Bug 1184311 - Get classification looping correctly again with 1st/last pinned"
This reverts commit 93b5c9e0b5.
2015-07-16 10:15:10 -07:00
Cameron Dawson 527cfaf654 Revert "grunt build"
This reverts commit c23d46d6ec.
2015-07-16 10:14:27 -07:00
Cameron Dawson c23d46d6ec grunt build 2015-07-16 08:57:08 -07:00
Cameron Dawson 93b5c9e0b5 Bug 1184311 - Get classification looping correctly again with 1st/last pinned
Ensure the selectors don’t search for the next job in the pinboard.
2015-07-16 08:53:15 -07:00
Mauro Doglio 54075f99bf Bug 1184542 - enable browsable api
I enabled the api html rendered so that if you fetch one of the endpoints using your browser
(i.e. with a 'Accept: text/html' header) it will return the right content type.
The default renderer is still the json one though, so it should be back-compatible.
2015-07-16 16:51:40 +01:00
KWierso 877cfd3b33 Merge pull request #682 from KWierso/1078700
Bug 1078700 - Add a tree state for when treestatus is unreachable r=camd
2015-07-16 08:23:57 -07:00
KWierso 99d19e8133 Bug 1078700 - Add a tree state for when treestatus is unreachable r=camd 2015-07-16 08:15:17 -07:00
Jonathan French b6b0e1ac45 Bug 1184247 - Add celerybeat-schedule removal to Troubleshooting 2015-07-16 09:36:13 -04:00
Mauro Doglio 996518ed34 Merge pull request #760 from vaibhavmagarwal/backfill
Bug 1183923 - Front-end UI and publish to pulse for 'backfill' action
2015-07-16 13:35:45 +01:00
Mauro Doglio 09a5a1dc2d Merge pull request #747 from vaibhavmagarwal/th-buttons
Bug 1178524 - Publish trigger_missing_jobs action for revision to pulse
2015-07-16 13:35:22 +01:00
Ed Morley 449f36ccc1 Merge pull request #766 from vaibhavmagarwal/cancel-fix
Bug 1184302 - Check if a user is logged in early on job cancel request
2015-07-16 11:57:45 +01:00
Ed Morley f12bcdc1de Merge pull request #762 from MikeLing/bugfix-1184135
Bug 1184135 - Fix "Validating Javascript" eslint steps
2015-07-16 11:35:08 +01:00
Vaibhav Agrawal 2924564820 Bug 1178524-Publish trigger_missing_jobs action for revision to pulse 2015-07-16 00:00:57 -07:00
MikeLing 5035bd6540 Bug 1184135-Fix "Validating Javascript" eslint steps 2015-07-16 08:59:31 +08:00
William Lachance cf0234fe2d Geomean -> Mean for subtest display
We're only using the geometric mean for the main display
2015-07-15 16:42:57 -04:00
Vaibhav Agrawal 22ffbe8612 Bug 1184302-Check if a user is logged in early on job cancel request 2015-07-15 13:37:26 -07:00
William Lachance 66f8246fbf Bug 1181686 - Make nature of revisions in perfcompare more clear
Use "base" as opposed to "old". Reformat revision information into
clearer list form
2015-07-15 14:46:32 -04:00
Vaibhav Agrawal be0c80847e Bug 1183923 - Front-end UI and publish to pulse for 'backfill' action 2015-07-15 11:10:29 -07:00
Ed Morley f92065534a Bug 1175432 - Make it more obvious if DATABASE_URL is not set
Removes the default value for DATABASE_URL and DATABASE_URL_RO, so that
if either are not set, there is a clearer upfront Django error about
Databases not being configured, rather than timeouts trying to connect
to localhost.

This makes it more obvious when setting up a new instance that the
variables are not present in the environment (and would have avoided
some confusion on Heroku today, when DATABASE_URL was set, but
DATABASE_URL_RO was not) - in exchange for now needing two extra lines
in the puppet config for local testing.
2015-07-15 16:20:39 +01:00
Ed Morley 1af312e0cc Bug 1175432 - Use dj-database-url to simplify DB environment variables
dj-database-url extracts DB host, port, username, password and database
name from the env variable 'DATABASE_URL' (unless another env variable
name is specified). If the env variable is not defined, it falls back to
the default passed to dj_database_url.config().

This means for Heroku and similar we can replace the multiple DB env
variables with just one URL for default & one for read_only.

This also effectively makes the setting of the read only DB variable
mandatory for stage/production/heroku, since DEFAULT_DATABASE_URL won't
be valid for them - so prevents us inadvertently not using the read only
DB.

The deployment script also had to be updated, so that we set the
prod/stage-specific environment variables before using manage.py, since
dj-database-url cannot rely on what's in the stage/prod local.py config
(which isn't a bad thing, since we're deprecating that file).
2015-07-15 14:58:46 +01:00
Ed Morley 8d16b40526 Bug 1183137 - Remove unused in-repo SQL procs
These SQL procs are not used anywhere in the repo:

generic.selects.get_db_size
jobs.selects.get_result_set_job_list
jobs.selects.get_result_set_job_list_full
jobs.selects.get_revision_map_id
reference.inserts.create_repository_group
reference.selects.get_option_collection_hash
reference.selects.get_max_collection_hash
reference.selects.get_option_names
reference.selects.get_repository_group_id

There are also unused objectstore procs, but the entire file will be
removed shortly in bug 1140349.
2015-07-15 11:38:26 +01:00
Mauro Doglio 3f34e5da13 Bug 1145712 - upgrade django-rest-framework from 2.4.5 to 3.1.3
This patch upgrades the version stored in the requirements file and fixes some issues introduced by breaking changes in the new version of the library:
 - Writable nested fields are not available anymore, you need an explicit create method on the serializer to write a nested field.
 - ModelViewSet now requires serializer_class and queryset attributes.
 - @action and @link decorators are now replaced by either @detail_route or @list_route.
 - any attempt to create a ModelSerializer instance with an attribute which type is either dict or list will raise an exception.
2015-07-15 10:34:46 +01:00
Cameron Dawson 095a179bec grunt build 2015-07-14 12:45:25 -07:00
Jonathan French 9230572e17 Bug 1166984 - Provide inspect-task link in Job details panel 2015-07-14 14:57:48 -04:00
William Lachance f9e8f27615 Bug 1162710 - Fix trailing whitespace 2015-07-14 14:28:45 -04:00
MikeLing 96fd2545d5 Bug 1162710 - Offer autocompletion of recent revisions in compare chooser 2015-07-14 14:25:55 -04:00
Cameron Dawson ad4f87b131 Bug 1140349 - Skip and drain the objectstore
Since we use Celery for queueing job ingestion, the objectstore is
now irrelevant.  This code is the first step.  This will bypass
the Objectstore and ingest jobs directly to our ``jobs`` database.

Phase 2 is to remove all the Objectstore code (in a later commit)

Phase 3 is to delete the Objectstore databases and related fields in
other tables.
2015-07-14 11:03:11 -07:00
William Lachance 658927bdf7 Bug 1183367 - Add a grunt target to run eslint on JS frontend 2015-07-14 13:40:18 -04:00
William Lachance eda6ee8da5 Bug 1183385 - Remove trailing whitespace from treeherder UI JS 2015-07-13 18:39:46 -04:00
William Lachance 61904aaffa Bug 1182282 - Handle submissions of duplicate performance data
It appears that on occasion we parse a log more than once, which
resulted in duplicate performance series going into the database.
Let's be resilient about this by not inserting duplicate jobs into the
database (we always attach a unique job id to every datapoint, so there's
no chance of accidentally removing entries which happen to have the same
performance numbers)
2015-07-13 13:32:26 -04:00
Cameron Dawson ff131aa971 grunt build 2015-07-13 09:29:38 -07:00
Cameron Dawson 51cc8f6a27 Bug 1182299 - Support custom log name param in logslice
This adds the ability to specify a custom log name and have the log
viewer use the ``logname`` param of the ``text_log_summary`` to get the
right log.

This also improves the error message returned by the /logslice/ API if a
log name is used that is not found.
2015-07-13 09:18:24 -07:00
Cameron Dawson d0775b13d4 code cleanup and dead code removal 2015-07-13 09:18:23 -07:00
Ed Morley 811ec9b90b Bug 1182465 - Remove substitution of 'engine' in the template schema
Since after bug 1182455, engine is now guaranteed to always the same for
all projects, so we can just specify it in the schema directly.

As an added bonus, the templates are now valid SQL.
2015-07-13 17:17:13 +01:00
Cameron Dawson 34b1b4a981 Bug 1179260 - n and p can hang browser if nothing more to select.
Also added a notification when trying to select another job,
but none are available (such as unclassified failures)
2015-07-13 09:07:13 -07:00
Cameron Dawson 1f651dc2cb Code cleanup
Removed a few unused members.
Added a comment to clarify selected job functionality.
Fixed some syntax styling.
2015-07-13 09:07:13 -07:00
Ed Morley 0e37ef6375 Bug 1182518 - Remove unused job_guid_where_in_list 2015-07-13 17:05:10 +01:00
Ed Morley 74719ec665 Update grunt build 2015-07-13 15:51:11 +01:00
Ed Morley c85f9be6a0 Whitespace tweaks in settings/base.py 2015-07-13 15:27:41 +01:00
Ed Morley c16772d5d6 Bug 1182994 - Use datasource's offset parameter
As part of Datasource v0.9's SQL injection fix, it no longer supports
passing comma-delimited strings to the `limit` parameter, to denote the
SQL LIMIT/OFFSET. Instead we need to pass integers to Datasource's
`limit` and `offset` params separately. The `offset` param now actually
works in Datasource v0.9, unlike previous releases.
2015-07-13 13:38:56 +01:00
Ed Morley 044adae263 Bug 1182994 - Update to datasource v0.9
* Fixes the `offset` parameter, since it previously used the value for
  `limit` instead.
* The `limit` and `offset` parameters are now cast to int, to prevent
  SQL injection if those parameters were not sanitised in the app.
  Note: This intentionally removes the ability to pass a comma delimited
  `limit` string of say "100,200" - since the now-working `offset`
  parameter makes this redundant.

https://github.com/jeads/datasource/compare/v0.8...v0.9
2015-07-13 13:38:55 +01:00
Ed Morley b05b6f38ce Bug 1182994 - Cast API offset parameter to int
Since currently the datasource package does not validate the limit
parameter correctly.
2015-07-13 11:16:13 +01:00
William Lachance 12f80ce448 Bug 1164074 - Remove some extra typeahead CSS 2015-07-12 17:21:31 -04:00
MikeLing 6fefdf0147 Bug 1164074 - Further improve Perf test chooser 2015-07-12 17:21:31 -04:00
Ed Morley 2d087edaea Bug 1182455 - Remove support for different DB hosts per datasource
Having the ability to use different DB hosts for each project sounded
like a good idea, but in reality, we have no need for it.

This switches us to using the global read-write and read-only database
host names rather than the fields on the datasource table. As such, the
'host', 'read_only_host' and 'type' (eg 'mysql') fields can be removed.
The Django model had a unique_together on host+name, so we now need to
make 'name' (ie database name) a unique key on it's own.

In addition, this removes the 'creation_date' field, since we don't use
it anywhere, and we can just look at the commit history to see when a
repo was created. (I imagine it may have had more use if we actually had
started partitioning the databases uses the old 'dataset' count field).

In a future bug, I'll remove the redundant substitution of 'engine' for
'InnoDB' in the template schema, given that engine is now always InnoDB
in create_db().
2015-07-11 13:20:00 +01:00
William Lachance 66b08df717 Link to subtest results in compare view should be "subtests", not "Details"
Details is kind of inherently ambiguous
2015-07-10 17:21:00 -04:00
Ed Morley a295fcb0f7 Bug 1182372 - Pass the database SSL options to MySQLdb.connect()
Since otherwise we get access denied errors using run_sql on Heroku.
All other calls use datasource, so have already been set up to pass the
SSL options.
2015-07-10 21:57:14 +01:00
Ed Morley 50ca297bdd Bug 1182485 - Update to datasource v0.8
To pick up the whitespace-stripping change, amongst others:
https://github.com/jeads/datasource/compare/v0.7...v0.8
2015-07-10 21:45:04 +01:00
Jonathan French 1aeb17d182 Bug 1181685 - Reconcile main UI element names/ids 2015-07-10 15:39:19 -04:00