-
Notifications
You must be signed in to change notification settings - Fork 16
Delayed Notifications #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BakhorikovEgor
wants to merge
23
commits into
master
Choose a base branch
from
DelayedNotifications
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4c06e83
feat: add HangFire settings to startup and app settings.
BakhorikovEgor 248c316
feat: add delete and update delayed methods for tasks
BakhorikovEgor 4443ebb
feat: Moved hangfire to NotificationsService
BakhorikovEgor 8557b6c
feat: create ScheduleEvent
BakhorikovEgor 6e0d6ca
feat: add UpdateScheduleEvent class
BakhorikovEgor 20d7fbf
fix: delete delayed logic from CourseService
BakhorikovEgor 635920d
feat: change ScheduleWork id to string
BakhorikovEgor f3a7d6a
feat: add and delete delayed task events and eventhandlers
BakhorikovEgor ac1eaa0
feat: add delete update task events and eventhandlers are written
BakhorikovEgor 53e2616
fix: style fixes
BakhorikovEgor 2cb1af1
feat: bear main schedule event handler logic
BakhorikovEgor 1a9e978
feat: transfer CourseDataFilterAttribute.cs to ApiGateway
BakhorikovEgor 323dfd2
feat: add lazy getting course data in task event-handlers
BakhorikovEgor 1d4d5b5
feat: change part of ScheduleWorkId
BakhorikovEgor eab2e10
Merge pull request #340 from InteIIigeNET/TransferringCourseDataFilter
BakhorikovEgor d220d21
feat: transfer hangfire dashboard to apigateway
BakhorikovEgor 6476105
Revert "feat: transfer hangfire dashboard to apigateway"
BakhorikovEgor 7ca52e4
fix: composite delayed job key
BakhorikovEgor 5d50b4a
feat: better choice for continuation
BakhorikovEgor 3017b8f
fix: style fixes
BakhorikovEgor 8d8cec2
fix: duplicate reference fix
BakhorikovEgor 70d9ec8
wip
DedSec256 dac4582
feat: change update extension to rescheduling + add lazy addorupdate…
BakhorikovEgor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
<RootNamespace>HwProj.Events2</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\HwProj.EventBus\HwProj.EventBus.Client\HwProj.EventBus.Client.csproj" /> | ||
<ProjectReference Include="..\HwProj.Models\HwProj.Models.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains hidden or 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 hidden or 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
14 changes: 14 additions & 0 deletions
14
HwProj.Common/HwProj.Models/Events/CourseEvents/DeleteTaskEvent.cs
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using HwProj.EventBus.Client; | ||
|
||
namespace HwProj.Models.Events.CourseEvents | ||
{ | ||
public class DeleteTaskEvent : Event | ||
{ | ||
public long TaskId { get; set; } | ||
|
||
public DeleteTaskEvent(long taskId) | ||
{ | ||
TaskId = taskId; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...API/Events/LecturerAcceptToCourseEvent.cs → ...urseEvents/LecturerAcceptToCourseEvent.cs
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
...PI/Events/LecturerInvitedToCourseEvent.cs → ...rseEvents/LecturerInvitedToCourseEvent.cs
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...sService.API/Events/NewCourseMateEvent.cs → ...Events/CourseEvents/NewCourseMateEvent.cs
This file contains hidden or 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 hidden or 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
23 changes: 23 additions & 0 deletions
23
HwProj.Common/HwProj.Models/Events/CourseEvents/NewTaskEvent.cs
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using HwProj.EventBus.Client; | ||
using HwProj.Models.CoursesService.ViewModels; | ||
|
||
namespace HwProj.Models.Events.CourseEvents | ||
{ | ||
public class NewTaskEvent : Event | ||
{ | ||
public long TaskId { get; set; } | ||
|
||
public HomeworkTaskDTO Task { get; set; } | ||
|
||
public CourseDTO Course { get; set; } | ||
|
||
|
||
public NewTaskEvent(long taskId, HomeworkTaskDTO task, CourseDTO course) | ||
{ | ||
TaskId = taskId; | ||
Task = task; | ||
Course = course; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...Service.API/Events/UpdateHomeworkEvent.cs → ...vents/CourseEvents/UpdateHomeworkEvent.cs
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
...PI/Events/UpdateSolutionMaxRatingEvent.cs → ...rseEvents/UpdateSolutionMaxRatingEvent.cs
This file contains hidden or 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
26 changes: 26 additions & 0 deletions
26
HwProj.Common/HwProj.Models/Events/CourseEvents/UpdateTaskEvent.cs
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using HwProj.EventBus.Client; | ||
using HwProj.Models.CoursesService.ViewModels; | ||
|
||
namespace HwProj.Models.Events.CourseEvents | ||
{ | ||
public class UpdateTaskEvent : Event | ||
{ | ||
public long TaskId { get; set; } | ||
|
||
public HomeworkTaskDTO PreviousEvent { get; set; } | ||
|
||
public HomeworkTaskDTO NewEvent { get; set; } | ||
|
||
public CourseDTO Course { get; set; } | ||
|
||
|
||
public UpdateTaskEvent(long taskId, HomeworkTaskDTO previousEvent, HomeworkTaskDTO newEvent, CourseDTO course) | ||
{ | ||
TaskId = taskId; | ||
PreviousEvent = previousEvent; | ||
NewEvent = newEvent; | ||
Course = course; | ||
} | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ public enum CategoryState | |
None, | ||
Profile, | ||
Courses, | ||
Homeworks | ||
Homeworks, | ||
Tasks | ||
|
||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.