AgeCommit message (Collapse)AuthorFilesLines
2016-06-23latest-errors: Use the key value instead of display value for filterHEADmasterMichael Wood1-1/+1
Make sure we use the filter key value instead of the display value for the filter data. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23README: Update instructions to use 'migrate' instead of 'syncdb'Michael Wood1-1/+1
Newer django version means database creation and migration are no longer a two step process. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23settings: Setup the default configuration so that it works out the boxMichael Wood1-17/+26
Setup the default configuration so that it works quickly out of the box for evaluation and testing purposes (sqlite is not a recommended database backend for this system). Fix a number of whitespace issues. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23views/templates: Add support for display different type of errorsAníbal Limón3-29/+64
Now we have a set of different type of errors not only Recipe ones this change enables support for display these. Based on design done by Belen Barros [1]. [YOCTO #7583] [1] https://bugzilla.yoctoproject.org/attachment.cgi?id=3214 Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23parser: Add support for receive/store error_type.Aníbal Limón1-3/+4
For compatibility reasons if error_type isn't specified in the JSON payload use 'Recipe' error by default. [YOCTO #7584] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23models: Build model add support for Error type.Aníbal Limón2-0/+45
In order to support other errors not only Recipe ones adds a ERROR_TYPE field to the Build model defaults to "Recipe". [YOCTO #7583] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23migrations: 0003_auto_20150603_0913 Replace tabs for spacesAníbal Limón1-3/+3
When try to migrate using python3 it raises an exception because found tabs inside the migration. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23models: Increase the TASK field lengthAníbal Limón2-1/+21
Now bitbake exception/errors can be published into ERW so TASK in bitbake is the command line executed. [YOCTO #7583] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23urls: RedirectView, fix warnings about change of default value in django 1.9Aníbal Limón1-2/+2
RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^$', RedirectView.as_view(pattern_name="main")), RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True), {'mode':results_mode.SEARCH }), [YOCTO #9733] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-23requirements: Update requeriments for use 1.8 LTS Django version.Aníbal Limón1-1/+1
[YOCTO #9733] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-01-05error-details: Add recipe version to Error details side barMichael Wood1-0/+2
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-09-30parser: Add Unicode support to the error logMariano Lopez1-1/+1
If the server receives a error log with Unicode character in it, it will throw and internal server error, this is caused because the server doesn't try to convert everything to ASCII This patch changes the log encoding to UTF-8 so it will allow Unicode characters. [YOCTO #8225] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
2015-06-23README: Add info on management command for culling database sizeMichael Wood1-0/+9
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-15Add RSS feeds for the latest errorsMichael Wood4-1/+62
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-11README: Update and clarifyMichael Wood1-12/+14
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-11management: Add command to cull the databaseMichael Wood3-0/+53
Adds a cron-able command to reduce the size of the database to a specified size. [YOCTO #6874] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-05views: Remove redundant paginator mechanism0.3Michael Wood1-13/+0
We use the proper paginator from django now and always have an order_by set so this mechanism redundant. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-05views: Use none function rather than an invalid id to get an empty querysetMichael Wood1-1/+1
The empty queryset allows us to avoid an extra code path to produce a "no results" state. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-05models: Fail gracefully if we haven't yet generated LEV_DISTANCE dataMichael Wood1-1/+5
This can can happen if the data hasn't been generated by the migration yet or if this has been skipped. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-05migrations: Add a data migration function to generate the LEV_DISTANCEMichael Wood1-3/+41
This adds a migration path forward and back for migration of data in migration 0003 (add the LEV_DISTANCE field). Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04Add migration for LEV_DISTANCE to support the similar errors featureMichael Wood1-0/+24
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04latest-errors: Optimise the url resolution for each row's details linkMichael Wood1-11/+12
Instead of for each cell resolving the url do this per row instead. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04tests: Move test links to run after each time data is addedMichael Wood1-1/+3
It's more useful to test this after data has been added as this will cause more code paths to be tested as it will be rendering the test data that has been added Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04tests: Add check to see if the LEV distance value has been generatedMichael Wood1-1/+14
Also added test for 200 on urls for the SimilarTo, Build and Details Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04Add a similar errors matching mechanismMichael Wood8-30/+126
This adds the feature to recognise if an error has been reported before. It matches it against the distance with an offset of bytes by using the first error in the database as the prime error. The accuracy is adjustable by setting SIMILAR_FAILURE_DISTANCE. If using the JSON response to a submission you will also get the number of the duplicates and a link to view them. [YOCTO #7798] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-31css: Reduce the scope of the wrap behaviour to only data itemsMichael Wood1-1/+3
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-31css: re-indent some of the classes to match the rest of the fileMichael Wood1-11/+8
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-31css: Add a class for the build details to remove word wrapMichael Wood2-1/+5
We don't want to word wrap here because we often have long version names/git SHAs and urls. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02tests: Add test to compare the payload with the data in the databaseMichael Wood1-5/+37
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02parser: Add fall back for regex based parsingMichael Wood1-3/+19
Currently the branch, commit, recipe and recipe_version rely on being in a particular format so that they can be extracted by a regex. If this fails we should fall back and mark these fields just as "unknown" Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02parser: Fix rename Machine varMichael Wood1-1/+1
This was accidentally renamed in refactoring the parser save routine and failed silently Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27parser: Add back accidentally removed DATE setterMichael Wood1-0/+1
At some point this should be moved to the model definition Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27error-details: Display link back field if it existsMichael Wood1-0/+5
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27views: Add max_log_size response so that the client can avoid thisMichael Wood1-4/+4
The new send-error-report client can ask the server for the max_log_size so that it doesn't try to submit a log which is too large for it's current settings. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27test: Make sure we delete the data between testsMichael Wood1-6/+8
Needed to do the before the test is run and check afterwards. Also remove unneeded delete as the deletion will cascade to the foreign key items. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27parser: Simplify the orm Build object creationMichael Wood2-16/+18
Also update the error message when we can't parse the json payload Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-24views/tests: Add a user-agent path to switch payload decode pathsMichael Wood2-20/+84
To enable us to drop support for the URL encoded json payload and use the more conventional non-encoded application/json payload we add a switch on the client's http user agent, which will allow us to identify which type of payload is being submitted and pave the way for future changes. Also add tests to test this new path. Refactor tests so that they delete the data after running to enable retrieval without having to know the PK [YOCTO #7245] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-24parser: Add optional LINK_BACK fieldMichael Wood1-0/+3
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-24migrations: Add new field for link backMichael Wood3-0/+21
This optional field is used to add link back information for errors where the build information is accessible such as from a CI system. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-11latest-errors: Swap the default sort mode to ascendingMichael Wood1-3/+3
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>
2015-02-11views: Fix typo in Query to make sure it's contains rather than equalMichael Wood1-2/+2
This was stopping certain results from appearing Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-10urls: Add URL pattern for backwards compatibility0.2Michael Wood1-2/+4
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>
2015-02-10views: Fix the exception handling for parametersMichael Wood1-2/+5
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>
2015-02-09discretebarchart: Use the latest errors method for link backMichael Wood1-1/+1
Use the latest error mode for the link back from the graph series Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-09latest-errors: Force integer comparison for page size in templateMichael Wood1-4/+4
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>
2015-02-09main: Make sure we remove a filters/order_by on hide of that columnMichael Wood2-8/+32
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>
2015-02-09views: Use the get method on the request objectMichael Wood1-22/+7
Simpler to use this than our own property fallback mechanism Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-29test-send: Handle HTTP error gracefullyMichael Wood1-1/+7
Read the server's response on http error and exit successfully Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-29base: Show nav pills on the statistics pageMichael Wood2-3/+7
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>
2015-01-27Test: Add test script to send an error to a live error-repor-web serverMichael Wood1-0/+29
Usage: test-send-error.py url json_data_file Signed-off-by: Michael Wood <michael.g.wood@intel.com>