aboutsummaryrefslogtreecommitdiffstats
path: root/Post
AgeCommit message (Collapse)Author
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-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-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-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-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-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-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-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-26views: Add more fields to the general searchMichael Wood
Add most of the text fields to be included in the search results Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-26tests: Add test for common urls and invalid parametersMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-26latest-errors: Pass the results_mode value to the templateMichael Wood
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>
2015-01-26views: Add additional validation to incorrect parametersMichael Wood
Add handling to invalid limit, order_by, filter and page parameters Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-26urls: Remove redundant url parameters and add index url for convenienceMichael Wood
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>
2015-01-23Paser: Return a useful error for invalid characters in payloadMichael Wood
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>
2015-01-23Post: Add some basic unit tests for testing submissionsMichael Wood
To run the tests ./manage.py test Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Parser: Add basic catching of exceptions from invalid dataMichael Wood
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>
2015-01-23Parser: Make sure we respond in JSON format with errors if there are anyMichael Wood
Also make sure the url pattern is properly terminated for the non-json result Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Remove unused templates and importsMichael Wood
- Remove unused duplicated templates - Remove unused imports - Add comment to bug about POST request Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23settings: Add "special submitter" featureMichael Wood
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>
2015-01-23latest-errors: Add visual indication that submitted_on is the default sortMichael Wood
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>
2015-01-23Remove unused code paths and importsMichael Wood
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>
2015-01-23Various design tweaksMichael Wood
- 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>
2015-01-23Parser: Add feature to have the reponse from a submission in JSONMichael Wood
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>
2015-01-23views: Add backward compatibility for the send-error-reportMichael Wood
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>
2015-01-23Parser: Return more details about a successful build error being loggedMichael Wood
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>
2015-01-23Move the filtering, queries and ordering to use the orm functionsMichael Wood
- 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>
2015-01-23Add migrations support. This uses the in built django migrationsMichael Wood
See 'manage.py migrate --help' for more infomation Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23createStatistics: Reduce the number series to 6 in each graphMichael Wood
The graphs were getting overly cluttered so reduce the number of series to 6. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23views/urls: Remove unused importsMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23home: Rework the mechanism for generating graphs via custom templateMichael Wood
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>
2015-01-23createStatistics: Fix missing tz info in date passed to modelMichael Wood
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>
2015-01-23error-report-web: add filtering capabilitiesRoxana Ciobanu
[YOCTO #6542] Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
2015-01-23error-report-web: add FontAwesome andd css customizationRoxana Ciobanu
Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>