• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Brunowar12 / TaskManagerSystem / 14985374433

13 May 2025 12:25AM UTC coverage: 93.727%. First build
14985374433

push

github

web-flow
Polishing & refinement (#22)

* update

+ optimized categories, security, tasks and users tests
+ api status version modified
+ custom middleware for control large request

* update

project update:
+ role permissions dictionary
+ dynamic api version update for urls
+ use error_response util
for users app intregrated error_response util
tasks:
+ split the responsibility of the save method (model)
+ reduce move task to proj service
+ integrate error_response ta status_response
+ changes for project logic
api:
+ adding global mixins

* projects update

+ post_migrate creating roles
+ fixed roles
+ clean method for role
+ is_active field for sharelink
+ settings for sharelink
+ new classes for check roles in permissions
+ description field in serializer
+ reduced project service
+ created share link service with validation and create share link methods
+ transaction atomic for assign role
+ nested router for access tasks crud in project instead of tasks actions in projects
+ roles settings
+ now user can be invited in project only by share link
+ generate sharelink reduce
+ kick method
+ roleviewset and projectmembershipviewset now only readonly
+ atomic transaction for join project

* tests update

+ permission tests update (+4 new tests)
+ fixed task test
+ a very extensive work on test projects, almost everything's been remodeled.

* feat

+ gh actions upload to coveralls
+ new updated readme file
+ swagger\redoc api documentation

* fix

+ api_status with no permissions
+ requirements

* feat

+ split userviewset
+ auth endpoint become account

* Update test_setup.py

* feat projects

+ deleted permissionviewset
+ serializer for kick user action and assign role for correct swagger
+ endpoints fixed from projects/projects/

* fix

* feat, fix

+ feat urls for projects, tasks
+ new serializers for tasks actions

699 of 735 new or added lines in 31 files covered. (95.1%)

1509 of 1610 relevant lines covered (93.73%)

9.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/TaskManagerSystem/views.py
1
import logging
10✔
2
from rest_framework import status
10✔
3
from rest_framework.views import exception_handler
10✔
4

5
from api.utils import error_response
10✔
6

7
logger = logging.getLogger(__name__)
10✔
8

9
def custom_exception_handler(exc, context):
10✔
10
    """
11
    Custom handler for exceptions in the API
12
    """
13
    response = exception_handler(exc, context)
10✔
14

15
    # Adaptive logging depending on the type of error
16
    if response is not None:
10✔
17
        if response.status_code >= 500:
10✔
18
            logger.error(f"Server error: {exc}", exc_info=True)
×
19
        elif response.status_code >= 400:
10✔
20
            logger.warning(f"Client error: {exc}")
10✔
21
        else:
22
            logger.info(f"Other exception: {exc}")
×
23
    else:
24
        logger.error(f"Unhandled exception: {exc}", exc_info=True)
×
NEW
25
        return error_response(
×
26
            "Internal server error. Please try again later", 
27
            status.HTTP_500_INTERNAL_SERVER_ERROR
28
        )
29

30
    return response
10✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc