Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a36883c
Add bi-directional sync feature
Zahed-Riyaz Aug 11, 2025
3c2ca3d
Clean up files
Zahed-Riyaz Aug 16, 2025
45e6370
Rename migration file
Zahed-Riyaz Aug 20, 2025
61b0c24
Add github_token to serializer fields and requests
Zahed-Riyaz Aug 23, 2025
c9db18a
Update sync logic
Zahed-Riyaz Aug 24, 2025
6f59a0d
Implement middleware logic
Zahed-Riyaz Aug 25, 2025
79771c4
Fix field order
Zahed-Riyaz Aug 25, 2025
3d97a03
Omit debug statements
Zahed-Riyaz Aug 25, 2025
9c2b699
Fix github_branch migration file
Zahed-Riyaz Aug 26, 2025
650d823
Pass linting checks
Zahed-Riyaz Aug 26, 2025
cab85e1
Merge branch 'master' into github-sync
Zahed-Riyaz Aug 26, 2025
d581b4b
Add tests
Zahed-Riyaz Aug 26, 2025
10ee702
Add tests for github_utils
Zahed-Riyaz Aug 26, 2025
2eaa465
Pass code quality checks
Zahed-Riyaz Aug 26, 2025
f13a78d
Modify tests
Zahed-Riyaz Aug 26, 2025
dff14ee
Omit non essential model fields
Zahed-Riyaz Aug 26, 2025
8ec3b79
Merge branch 'master' into github-sync
RishabhJain2018 Sep 1, 2025
6686c03
Merge branch 'master' into github-sync
Zahed-Riyaz Sep 1, 2025
d277d88
Pass code quality checks
Zahed-Riyaz Sep 1, 2025
33a7677
Merge branch 'master' into github-sync
Zahed-Riyaz Sep 1, 2025
4a05fa5
Pass code quality checks
Zahed-Riyaz Sep 1, 2025
9cd82fc
Add coverage for missing lines
Zahed-Riyaz Sep 2, 2025
aefbf7a
Merge branch 'master' into github-sync
Zahed-Riyaz Sep 2, 2025
9584291
Fix TestDeserializeObject error
Zahed-Riyaz Sep 2, 2025
65cf97f
Update .travis.yml
Zahed-Riyaz Sep 3, 2025
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ notifications:
email:
on_success: change
on_failure: always
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea
8 changes: 8 additions & 0 deletions apps/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import requests
import sendgrid
from django.conf import settings
from django.core import serializers
from django.utils.deconstruct import deconstructible
from rest_framework.exceptions import NotFound
from rest_framework.pagination import PageNumberPagination
Expand Down Expand Up @@ -333,3 +334,10 @@ def is_user_a_staff(user):
{bool} : True/False if the user is staff or not
"""
return user.is_staff


def deserialize_object(object):
deserialized_object = None
for obj in serializers.deserialize("json", object):
deserialized_object = obj.object
return deserialized_object
Loading