aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-06-15views/templates: Add support for display different type of errorsalimon/develAníbal Limón
Now we have a set of different type of errors not only Recipe ones this change enable support for display it based on design did 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>
2016-06-14Post/{models,parser}.py: Add support for receive/store error_type.Aníbal Limón
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>
2016-06-14Post/models.py: Build model add support for Error type.Aníbal Limón
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>
2016-06-13Post/migrations/0003_auto_20150603_0913.py: Replace tabs for spacesAníbal Limón
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>
2016-06-13Post/models.py: Increase the TASK field lengthAníbal Limón
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>
2016-06-13urls.py: RedirectView, fix warnings about change of default value in django 1.9Aníbal Limón
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>
2016-06-13requirements.txt: Update requeriments for use 1.8 LTS Django version.Aníbal Limón
[YOCTO #9733] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-01-05error-details: Add recipe version to Error details side barMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-09-30parser: Add Unicode support to the error logMariano Lopez
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 Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-15Add RSS feeds for the latest errorsMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-11README: Update and clarifyMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-11management: Add command to cull the databaseMichael Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-06-04latest-errors: Optimise the url resolution for each row's details linkMichael Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-31css: Add a class for the build details to remove word wrapMichael Wood
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 Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02parser: Add fall back for regex based parsingMichael Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-24migrations: Add new field for link backMichael Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
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 Wood
Usage: test-send-error.py url json_data_file Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-27views: Deliberately return a 500 on no data/invalid method on addDataMichael Wood
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>
2015-01-26latest-errors: Only show tooltip on ellipsized recipe_versionMichael Wood
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>
2015-01-26error-details: Remove escapejs from ERROR_DETAILSMichael Wood
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>