• 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

86.67
/TaskManagerSystem/middleware.py
1
from django.conf import settings
10✔
2
from django.http import HttpResponse
10✔
3

4

5
class RejectLargeRequestsMiddleware:
10✔
6
    def __init__(self, get_response):
10✔
7
        self.get_response = get_response
10✔
8
        self.max_length = getattr(settings, 'MAX_REQUEST_BODY_SIZE', 1024 * 1024 * 25)  # 25MB
10✔
9

10
    def __call__(self, request):
10✔
11
        content_length = request.META.get('CONTENT_LENGTH')
10✔
12
        if content_length is not None:
10✔
13
            try:
10✔
14
                if int(content_length) > self.max_length:
10✔
15
                    return HttpResponse('Payload Too Large', status=413)
10✔
NEW
16
            except (ValueError, TypeError):
×
NEW
17
                pass
×
18
        return self.get_response(request)
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