forked from breatheco-de/apiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mentorship survey, update signals, add vs extensions to codespace…
…s, update hook manager serializer
- Loading branch information
Showing
17 changed files
with
172 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
""" | ||
For each signal you want other apps to be able to receive, you have to | ||
declare a new variable here like this: | ||
""" | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
assessment_updated = dispatch.Signal() | ||
userassessment_status_updated = dispatch.Signal() | ||
emisor = Emisor("breathecode.assessment") | ||
|
||
assessment_updated = emisor.signal("assessment_updated") | ||
userassessment_status_updated = emisor.signal("userassessment_status_updated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
""" | ||
For each signal you want other apps to be able to receive, you have to | ||
declare a new variable here like this: | ||
""" | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
assignment_created = dispatch.Signal() | ||
assignment_status_updated = dispatch.Signal() | ||
revision_status_updated = dispatch.Signal() | ||
emisor = Emisor("breathecode.assignments") | ||
|
||
assignment_created = emisor.signal("assignment_created") | ||
assignment_status_updated = emisor.signal("assignment_status_updated") | ||
revision_status_updated = emisor.signal("revision_status_updated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
emisor = Emisor("breathecode.authenticate") | ||
|
||
# UserInvite accepted | ||
invite_status_updated = dispatch.Signal() | ||
invite_status_updated = emisor.signal("invite_status_updated") | ||
# ProfileAcademy accepted | ||
academy_invite_accepted = dispatch.Signal() | ||
profile_academy_saved = dispatch.Signal() | ||
academy_invite_accepted = emisor.signal("academy_invite_accepted") | ||
profile_academy_saved = emisor.signal("profile_academy_saved") | ||
|
||
# post_delete and post_save for User, ProfileAcademy and MentorProfileMentorProfile | ||
user_info_updated = dispatch.Signal() | ||
user_info_deleted = dispatch.Signal() | ||
user_info_updated = emisor.signal("user_info_updated") | ||
user_info_deleted = emisor.signal("user_info_deleted") | ||
|
||
cohort_user_deleted = dispatch.Signal() | ||
cohort_user_deleted = emisor.signal("cohort_user_deleted") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
""" | ||
For each signal you want other apps to be able to receive, you have to | ||
declare a new variable here like this: | ||
""" | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
emisor = Emisor("breathecode.feedback") | ||
|
||
# when a student answers one particular questions of a survey | ||
survey_answered = dispatch.Signal() | ||
survey_answered = emisor.signal("survey_answered") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from django import dispatch | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
mentorship_session_status = dispatch.Signal() | ||
mentor_profile_saved = dispatch.Signal() | ||
from task_manager.django.dispatch import Emisor | ||
|
||
emisor = Emisor("breathecode.mentorship") | ||
|
||
mentorship_session_status = emisor.signal("mentorship_session_status") | ||
mentor_profile_saved = emisor.signal("mentor_profile_saved") | ||
mentorship_session_saved = emisor.signal("mentorship_session_saved") |
Oops, something went wrong.