Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC: Distributed error reporting #12489

Open
wants to merge 84 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
d814aa1
add errors in additional_sqlite_databases
thesujai Jun 5, 2024
afe3ad9
add errorreports database in aditional sqlite db
thesujai Jun 5, 2024
5e10f53
create new errorreports app
thesujai Jun 5, 2024
abb63f3
add ErrorReports db router
thesujai Jun 5, 2024
0e01b17
change ellipsis to pass
thesujai Jun 11, 2024
20e540c
remove unused ready
thesujai Jun 11, 2024
e5f2b4c
Merge pull request #12250 from thesujai/distributed-error-reporting
akolson Jun 11, 2024
8b0d8cf
add ErrorReports model with and its class methods
thesujai Jun 7, 2024
1b50c66
add tests for model methods
thesujai Jun 7, 2024
f89c601
add DEVELOPER_MODE = False on settings
thesujai Jun 10, 2024
e49b82d
conditional check of dev mode during writing into database
thesujai Jun 10, 2024
2114c4d
pass>>>`...`
thesujai Jun 11, 2024
678d0cd
use getattr for accessing settings.DEVELOPER_MODE
thesujai Jun 11, 2024
5af22b6
Merge pull request #12255 from thesujai/distributed-error-reporting-t…
akolson Jun 11, 2024
2e1b852
Add middleware for handling runtime errors
thesujai Jun 9, 2024
722efe7
Add test for error-report middleware
thesujai Jun 9, 2024
4c62c27
Simplify calling insert_or_update_error and tests
thesujai Jun 10, 2024
a859358
put all the constants together in errorreports
thesujai Jun 11, 2024
fa40e38
move POSSIBLE_ERRORS to contants.py
thesujai Jun 11, 2024
b1c50bf
improve testcase for middleware
thesujai Jun 12, 2024
c2207f5
Merge pull request #12260 from thesujai/distributed-error-reporting-t…
akolson Jun 12, 2024
388dd17
add serializer ErrorReprotsSerializers:frontend data validation
thesujai Jun 10, 2024
26f0018
add API for frontend error report
thesujai Jun 10, 2024
b6de284
testcase for frontendreport view
thesujai Jun 10, 2024
c67851b
make error_from default to 'frontend'
thesujai Jun 10, 2024
cc968b6
simplify API: remove conditioning before calling insert_or_update_err…
thesujai Jun 10, 2024
09e2af3
name changes
thesujai Jun 12, 2024
d103ff8
expect (AttributeError, Exception) while calling insert_or_update
thesujai Jun 12, 2024
00b7be1
test for anything other than AttributeError or Exception can be caught
thesujai Jun 12, 2024
53ae2ad
Merge pull request #12261 from thesujai/distributed-error-reporting-t…
akolson Jun 12, 2024
77507a4
error-handling mechanism
thesujai Jun 17, 2024
30c13b4
optimized code for backend call
thesujai Jun 18, 2024
2e7539b
remove old reporting util
thesujai Jun 18, 2024
86b980e
pass entire error object to report()
thesujai Jun 20, 2024
a0ea7b4
useless comment
thesujai Jun 20, 2024
cb259fa
Merge pull request #12291 from thesujai/distributed-error-reporting-t…
akolson Jun 20, 2024
d389b27
create task ping_error_report
thesujai Jun 25, 2024
0dcbd4a
tests for error_report task
thesujai Jun 25, 2024
aa5960b
add error report task
thesujai Jun 25, 2024
4b86a2b
improve code
thesujai Jun 27, 2024
1768cd2
improvise: remove mark_as_sent to use update on queryset, use DjangoJ…
thesujai Jul 1, 2024
7f88d06
remove mark_errors_as_sent
thesujai Jul 1, 2024
2d89272
Merge pull request #12357 from thesujai/distributed-error-reporting-t…
akolson Jul 1, 2024
d02097f
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jul 25, 2024
d9ef827
update ErrorReports for new fields
thesujai Jul 1, 2024
984261f
add context field in errorreports/report/
thesujai Jul 1, 2024
44ce4e1
update middleware to capture more fields
thesujai Jul 1, 2024
2798cdf
update frontend erroreports to capture more fields
thesujai Jul 1, 2024
bea2e64
update erroreports task to report more fields
thesujai Jul 1, 2024
afef5ad
add test for tasks
thesujai Jul 2, 2024
e3252ee
update schema of frontend
thesujai Jul 3, 2024
01474a2
add installation_type in tasks
thesujai Jul 3, 2024
d530b3a
use ua-parser for the device and os
thesujai Jul 3, 2024
7056944
add os in context_frontend
thesujai Jul 3, 2024
109acd2
revert
thesujai Jul 3, 2024
cd373c4
clarity
thesujai Jul 11, 2024
a558f37
format python version
thesujai Jul 11, 2024
6c4ce3a
use definations for schema
thesujai Jul 15, 2024
1cc20dc
seeprate device and isTouchDevice
thesujai Jul 15, 2024
a7414c8
change screen object and move getContext to parent method
thesujai Jul 18, 2024
dea1d32
changes: single context instead of two, full version instead of parse…
thesujai Jul 18, 2024
86159d0
changes: importlib instead of pkg_resources and pass context to the s…
thesujai Jul 18, 2024
22cfce2
changes: modelserializer instead of regular, pass context to the save…
thesujai Jul 18, 2024
15e34ba
use single context
thesujai Jul 18, 2024
85cf9c0
add more screen info in schemas and remove default schemas
thesujai Jul 18, 2024
c5eb2ae
add query_params and improve packages retreival
thesujai Jul 25, 2024
14ceceb
Add pingback_id and request_time
thesujai Jul 31, 2024
ee7eb3e
raise 400 instead of 500
thesujai Aug 2, 2024
d8a713e
Merge pull request #12382 from thesujai/distributed-error-reporting-t…
akolson Aug 7, 2024
780d544
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Aug 7, 2024
4f104ef
reruns migrations
akolson Aug 9, 2024
085cf88
reruns migrations
akolson Aug 9, 2024
5b909bc
reruns migrations
akolson Aug 9, 2024
fd9e925
reruns migrations
akolson Aug 9, 2024
ac07e7a
Removes information exposure through exception
akolson Aug 9, 2024
6939d0e
Removes information exposure through exception
akolson Aug 9, 2024
aacc517
Merge pull request #12551 from akolson/Fixes-migrations-and-tests
rtibbles Aug 22, 2024
b64c4c2
refactor stuffs
thesujai Sep 14, 2024
340f714
use get_or_create() with defaults arg
thesujai Sep 23, 2024
73aed79
Merge pull request #12660 from thesujai/distributed-error-reporting
rtibbles Sep 23, 2024
8ab29d4
Make error reporting pluggable.
rtibbles Sep 25, 2024
39d07ad
Add error capturing for tasks.
rtibbles Sep 26, 2024
f996888
Refactor to standardize naming of core app and model.
rtibbles Sep 26, 2024
0c82a59
Merge pull request #12681 from rtibbles/plugin_error_reports
rtibbles Oct 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] authored Jul 25, 2024
commit d02097fd8b26ef8ae8e2023083f7d0147d82088c
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/core-app/index.js
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ heartbeat.startPolling();
i18nSetup().then(coreApp.ready);

// these shall be responsibe for catching runtime errors
Vue.config.errorHandler = function(err) {
Vue.config.errorHandler = function (err) {
logging.error(`Unexpected Error: ${err}`);
const error = new VueErrorReport(err);
ErrorReportResource.report(error);