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

liqd / arpas / 17555008960

08 Sep 2025 02:57PM UTC coverage: 89.239% (-0.009%) from 89.248%
17555008960

push

github

web-flow
[ST-1060] apps/augmentetreality: Provide more Data  (#36)

4 of 5 new or added lines in 2 files covered. (80.0%)

1 existing line in 1 file now uncovered.

6211 of 6960 relevant lines covered (89.24%)

0.89 hits per line

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

76.92
/apps/augmentedreality/api.py
1
from drf_spectacular.utils import extend_schema
1✔
2
from guest_user.mixins import AllowGuestUserMixin
1✔
3

4
from adhocracy4.comments_async.api import CommentViewSet
1✔
5
from adhocracy4.ratings.api import RatingViewSet
1✔
6

7

8
class CombinedRatingViewSet(AllowGuestUserMixin, RatingViewSet):
1✔
9
    http_method_names = ["post", "patch"]
1✔
10

11
    @extend_schema(
1✔
12
        summary="Create or update an ARPAS rating",
13
        description="""
14
        Create a new rating or update an existing one for ARPAS objects (variants, comments, etc.).
15

16
        Rating Values:
17
        1: Like (positive rating)
18
        -1: Dislike (negative rating)
19
        0: Remove rating (neutral)
20

21
        Note: Users can only have one rating per object.
22
        """,
23
    )
24
    def create(self, request, *args, **kwargs):
1✔
NEW
25
        return super().create(request, *args, **kwargs)
×
26

27

28
class CombinedCommentViewSet(AllowGuestUserMixin, CommentViewSet):
1✔
29
    def get_queryset(self):
1✔
30
        comments = super().get_queryset()
×
31
        return comments
×
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

© 2026 Coveralls, Inc