Age | Commit message (Collapse) | Author |
|
As most of the fields are alphabetic make the default sort a-z rather
than the "logical" descending.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
This was stopping certain results from appearing
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
For backwards compatibility with old search links add a handler which
redirects with the query_string to the new URL. Also comment out by
default url patterns that were for
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Fix the exception handling for page parameters that broken when changing
to using the value getters on the request object.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Use the latest error mode for the link back from the graph series
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Previously this worked but now we need to explicitly force the template
variable to an integer so that it evaluates correctly against the value we
have saved in the session.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
If you're hiding a column which as a filter by or order by set on it we
need to revert this order/filter so that you don't have to re-add the
column to get rid of the filter/order.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Simpler to use this than our own property fallback mechanism
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Read the server's response on http error and exit successfully
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Show the navigation on the statistics page.
Add a default state for mode in the default context so that we don't
accidentally compare between two unset variables
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Usage: test-send-error.py url json_data_file
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Previously we just happened to be returning a 500 on invalid data
because the argument for the status code was set incorrectly.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
If the recipe_version isn't ellipsized then we don't need a tooltip to
show the full string.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
We don't need to run the ERROR_DETAILS through the filter here as we're
in a pre tag and we want the new line characters to remain interpreted
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Add most of the text fields to be included in the search results
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
As there are a few things we want to show/hide in the template based on
the results_mode pass this value in to the template rather than using
the path or query string to determine the page.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
If an incorrect build id is supplied show an error message rather than a
blank page.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Add handling to invalid limit, order_by, filter and page parameters
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
We no longer need to pass the template name as a parameter to the
details url as it's in the view definition. Add an index url pattern so
that going to http://<host>/ works rather than having to know the
correct url.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
If there are invalid characters in the BUILD payload return an error
message to that affect.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
To run the tests ./manage.py test
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
When we catch these exceptions make sure we send back a useful response
and a http 500 status code
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Also make sure the url pattern is properly terminated for the non-json
result
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
- Remove unused duplicated templates
- Remove unused imports
- Add comment to bug about POST request
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
This feature allows the definition in the settings of a special submitter to
add a tab in the UI which is similar to the latest errors page but all
queries on it are additionally filtered by the submitter being the name
defined in the settings. See commented example in settings.py
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
We could have 100's of pages but we don't know that until we've paged
ahead so show only 3 pages ahead and behind.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
When no user sort has been applied show the sorted state of the page
as being sorting by decending submitted_on which is the default.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Remove getInfo as this was the python based data querying mecahnism that
is no longer needed. Also remove unused imports.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
- Make sure the sort arrows are displayed when sort in progress
- Don't show filter icon on column that is currently being filtered
- Add min span width for the commit column to avoid button squashing
- Make the autobuilder page the main page
- Correct the page title copy
- Don't show all the available columns have a sane default
- Only allow some columns to be removed instead of all
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
If you wish to have the details of the submission returned in JSON
format then append /JSON/ to the submission url.
Also add a filter which allows you to view the recorded failures for a
specified build /Build/<id>/.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Newer versions of django handle application/json in a more correct way
by having the payload in the request body rather than a parameter to the
HTTP post request. So that we can continue to parse data correctly from
old send-error-report scripts we need to undo the url encoding of the
data.
see https://docs.djangoproject.com/en/dev/releases/1.5/
section #non-form-data-in-http-requests
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
This adds the ability to click on chart series to query the database
for the related items. We also show a summary of that series data.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Return a json formatted result to show the status of a error submission
including the urls for each of the failures logged.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
- Rewrite the main views so that all the data manipulation is done in the
database rather than in python. This was causing large performance
issues.
- Add simplified client side logic in a separate file called main.js
- Simplify the url structure
- Disable the registration module
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
See 'manage.py migrate --help' for more infomation
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Also remove django-registration for the time being.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Exclude common virtualenv dir name and database name
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
The graphs were getting overly cluttered so reduce the number of series
to 6.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
requirements.txt can be used to speed up installation by specifying
modules used and passing it to pip. usage: pip install -r requirements.txt
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Remove the unneeded tags. Templates that extend base shouldn't
contain html from the base template.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Previously using python-nvd3 we were constrained by the templates
distributed and the properties exposed by the python
bindings/abstraction for nv d3 which were incomplete. To avoid multiple
passes on the page (sever side and client side) we can just generate the
graph with the correct js/html in the first place.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
We don't need to handle all urls, especially with one that does an
expensive lookup.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Fixes RuntimeWarning: DateTimeField Build.DATE received a naive datetime
while time zone support is active.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|
|
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
|