Improve error handling #168

Merged
hansegucker merged 1 commit from improve-error-handling into master 2026-11-05 21:21:46 +01:00
Member

Information and screenshots

No further information have been provided.

Checklist

  • tox -e reformat,lint used
  • Changelog updated/No update necessary
  • Documentation (incl. Screenshots) up-to-date
  • Copyright in apps.py and README.rst up-to-date
  • (Unit) tests for new feature/regression tests for bug fixes (only if useful)
  • Adhere to URL scheme
  • Tested with admin account
  • Tested with normal account (based on permissions)

Backend checklist

  • Use permissions for all GraphQL mutations
  • Use query optimizer for all GraphQL queries
  • Don't use inefficient DB queries

Frontend checklist (mandatory with ~"part::frontend")

## Information and screenshots No further information have been provided. ## Checklist - [ ] `tox -e reformat,lint` used - [x] Changelog updated/No update necessary - [ ] Documentation (incl. Screenshots) up-to-date - [ ] Copyright in `apps.py` and `README.rst` up-to-date - [ ] (Unit) tests for new feature/regression tests for bug fixes (only if useful) - [ ] Adhere to [URL scheme](https://code.teckids.org/aleksis/aleksis/issues/86) - [ ] Tested with admin account - [ ] Tested with normal account (based on permissions) ## Backend checklist - [ ] Use permissions for all GraphQL mutations - [ ] Use query optimizer for all GraphQL queries - [ ] Don't use inefficient DB queries ## Frontend checklist (mandatory with ~"part::frontend") - [ ] Screenshots are attached (mobile and desktop) - [ ] Tested on mobile, tablet, and desktop sizes - [ ] Adhered to [frontend guidelines](hhttps://code.teckids.org/aleksis/AlekSIS/src/branch/master/project/frontend_guidelines.rst) - [ ] Checked with [Firefox Accessibility Checker](https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/)
Improve error handling
Some checks failed
CI / lock (push) Successful in 44s
CI / build (push) Failing after 44s
CI / lint (push) Failing after 49s
CI / tests-done (push) Failing after 3s
CI / publish (push) Has been skipped
b92d6d24a7
magicfelix force-pushed improve-error-handling from b92d6d24a7
Some checks failed
CI / lock (push) Successful in 44s
CI / build (push) Failing after 44s
CI / lint (push) Failing after 49s
CI / tests-done (push) Failing after 3s
CI / publish (push) Has been skipped
to 5de1bbde57
Some checks failed
CI / lock (push) Successful in 41s
CI / build (push) Failing after 39s
CI / lint (push) Failing after 47s
CI / tests-done (push) Failing after 2s
CI / publish (push) Has been skipped
2026-11-02 14:11:40 +01:00
Compare
magicfelix force-pushed improve-error-handling from 5de1bbde57
Some checks failed
CI / lock (push) Successful in 41s
CI / build (push) Failing after 39s
CI / lint (push) Failing after 47s
CI / tests-done (push) Failing after 2s
CI / publish (push) Has been skipped
to 27f1bcd908
All checks were successful
CI / lock (push) Successful in 31s
CI / lint (push) Successful in 1m6s
CI / tests-done (push) Successful in 2s
CI / build (push) Successful in 1m13s
CI / publish (push) Successful in 1m22s
2026-11-02 14:22:11 +01:00
Compare
@ -23,3 +23,2 @@
if sync and task is not None:
task.do_sync_task()
if sync and task is not None and task.do_sync_task():
Owner
if sync and task is not None:
  success = task.do_sync_task()
  if success:
    task.delete()

to make it more clear what happens here

``` if sync and task is not None: success = task.do_sync_task() if success: task.delete() ``` to make it more clear what happens here
Owner

Or even better, why isn't an exception used for this?

Or even better, why isn't an exception used for this?
hansegucker marked this conversation as resolved
magicfelix force-pushed improve-error-handling from 27f1bcd908
All checks were successful
CI / lock (push) Successful in 31s
CI / lint (push) Successful in 1m6s
CI / tests-done (push) Successful in 2s
CI / build (push) Successful in 1m13s
CI / publish (push) Successful in 1m22s
to e01839849a
Some checks failed
CI / lock (push) Failing after 3m53s
CI / lint (push) Has been skipped
CI / build (push) Has been skipped
CI / tests-done (push) Failing after 23s
CI / publish (push) Has been skipped
2026-11-05 09:45:25 +01:00
Compare
magicfelix force-pushed improve-error-handling from e01839849a
Some checks failed
CI / lock (push) Failing after 3m53s
CI / lint (push) Has been skipped
CI / build (push) Has been skipped
CI / tests-done (push) Failing after 23s
CI / publish (push) Has been skipped
to 728e6948a7
All checks were successful
CI / lock (push) Successful in 37s
CI / lint (push) Successful in 1m3s
CI / build (push) Successful in 1m5s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 8s
2026-11-05 10:17:58 +01:00
Compare
magicfelix force-pushed improve-error-handling from 728e6948a7
All checks were successful
CI / lock (push) Successful in 37s
CI / lint (push) Successful in 1m3s
CI / build (push) Successful in 1m5s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 8s
to 719142e90b
Some checks failed
CI / lock (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / tests-done (push) Has been cancelled
CI / build (push) Has been cancelled
CI / publish (push) Has been cancelled
2026-11-05 21:01:02 +01:00
Compare
magicfelix force-pushed improve-error-handling from 719142e90b
Some checks failed
CI / lock (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / tests-done (push) Has been cancelled
CI / build (push) Has been cancelled
CI / publish (push) Has been cancelled
to 36ef725c88
Some checks failed
CI / lock (push) Successful in 36s
CI / lint (push) Failing after 1m31s
CI / build (push) Successful in 1m42s
CI / tests-done (push) Failing after 3s
CI / publish (push) Has been skipped
2026-11-05 21:01:33 +01:00
Compare
hansegucker scheduled this pull request to auto merge when all checks succeed 2026-11-05 21:03:45 +01:00
magicfelix force-pushed improve-error-handling from 36ef725c88
Some checks failed
CI / lock (push) Successful in 36s
CI / lint (push) Failing after 1m31s
CI / build (push) Successful in 1m42s
CI / tests-done (push) Failing after 3s
CI / publish (push) Has been skipped
to 374b35fbc4
All checks were successful
CI / lock (push) Successful in 30s
CI / lint (push) Successful in 1m4s
CI / tests-done (push) Successful in 2s
CI / build (push) Successful in 1m12s
CI / publish (push) Successful in 7s
2026-11-05 21:20:01 +01:00
Compare
hansegucker deleted branch improve-error-handling 2026-11-05 21:21:47 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Matrix!168
No description provided.