This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link submission query with competence profile endpoint (#79)
* Added Professional development * Rename namespace to correspond with coding guidelines * Separate records into different files * Rename Value to Name to correspond with domain * Rename Value to Level to correspond with domain * Add professional skills to domain * Add short name to architectural layer and professional skills * Rename properties in competence profile random data filler * Rename CompetenceProfileOutcome to ProfessionalTaskOutcome * Add Professional skill outcome to competence profile * Use singular name * Use id references instead of name values * Use type keyword * Add submissions from all courses from student to competence profile transformation * Fix merge issues * Add task and skill outcomes to competence profile return type * Fetch terms from canvas * Remove redundant imports * Change default application url * Prevent browser from launching on every restart * Cleanup code * Add filter enrolment term function * Add terms to competence profile * Remove unused terms function * Added filter on professional outcomes and sorting * Removed unused things * V0.1 * Defining colors for elements * Remove obsolete styling * Update pnpm lock file * Add Vue router * Resolve ESLint warnings * Add authorization view and controller * Use controller templating for route * A lot of stuff * A lot of stuff * Working * Set it all to vue 3 supported format * Fix import path * Add CORS policy * Realtime user data * Add terms to competence profile * Cleanup code and improve competence profile converter * Filter on PostedAt value --------- Co-authored-by: Tara <tarawillink@gmail.com> Co-authored-by: Sven <svenroermond@hotmail.com> Co-authored-by: Neal Geilen <info@nealgeilen.nl>
- Loading branch information
1 parent
c607762
commit 2fb0033
Showing
29 changed files
with
341 additions
and
138 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
Epsilon.Abstractions/Component/ICompetenceProfileConverter.cs
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Epsilon.Abstractions.Model; | ||
using Epsilon.Canvas.Abstractions.Model; | ||
using Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
using Epsilon.Canvas.Abstractions.QueryResponse; | ||
|
||
namespace Epsilon.Abstractions.Component; | ||
|
||
public interface ICompetenceProfileConverter | ||
{ | ||
public CompetenceProfile ConvertFrom(GetAllUserCoursesSubmissionOutcomes getAllUserCoursesSubmissionOutcomes, IEnumerable<EnrollmentTerm> terms); | ||
} |
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,6 +1,10 @@ | ||
using Epsilon.Canvas.Abstractions.Model; | ||
|
||
namespace Epsilon.Abstractions.Model; | ||
|
||
public record CompetenceProfile( | ||
HboIDomain HboIDomain, | ||
IEnumerable<CompetenceProfileOutcome> CompetenceProfileOutcomes | ||
IHboIDomain HboIDomain, | ||
IEnumerable<ProfessionalTaskResult> ProfessionalTaskOutcomes, | ||
IEnumerable<ProfessionalSkillResult> ProfessionalSkillOutcomes, | ||
IEnumerable<EnrollmentTerm> Terms | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Epsilon.Canvas.Abstractions/Model/GraphQL/AssessmentRating.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Epsilon.Canvas.Abstractions/Model/GraphQL/RubricAssessmentNode.cs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
Epsilon.Canvas.Abstractions/Model/GraphQL/RubricAssessmentsConnection.cs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
Epsilon.Canvas.Abstractions/Model/GraphQL/SubmissionsConnection.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
Epsilon.Canvas.Abstractions/Model/GraphQl/AssessmentRating.cs
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,8 +1,8 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record AssessmentRating( | ||
[property: JsonPropertyName("points")] double? Points, | ||
[property: JsonPropertyName("points")] double? Points, | ||
[property: JsonPropertyName("outcome")] Outcome? Outcome | ||
); |
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,8 +1,8 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record Assignment( | ||
[property: JsonPropertyName("name")] string Name, | ||
[property: JsonPropertyName("name")] string? Name, | ||
[property: JsonPropertyName("modules")] List<Module>? Modules | ||
); |
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,8 +1,8 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record Course( | ||
[property: JsonPropertyName("name")] string Name, | ||
[property: JsonPropertyName("name")] string? Name, | ||
[property: JsonPropertyName("submissionsConnection")] SubmissionsConnection? SubmissionsConnection | ||
); |
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,7 +1,9 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record Outcome( | ||
[property: JsonPropertyName("title")] string? Title | ||
[property: JsonPropertyName("_id")] int Id, | ||
[property: JsonPropertyName("title")] string? Title, | ||
[property: JsonPropertyName("masteryPoints")] double? MasteryPoints | ||
); |
2 changes: 1 addition & 1 deletion
2
Epsilon.Canvas.Abstractions/Model/GraphQl/RubricAssessmentNode.cs
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
4 changes: 4 additions & 0 deletions
4
Epsilon.Canvas.Abstractions/Model/GraphQl/RubricAssessmentsConnection.cs
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
7 changes: 7 additions & 0 deletions
7
Epsilon.Canvas.Abstractions/Model/GraphQl/SubmissionsConnection.cs
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,7 +1,14 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
<<<<<<< HEAD | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
|
||
public record SubmissionsConnection( | ||
[property: JsonPropertyName("nodes")] List<Node>? Nodes | ||
======= | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record SubmissionsConnection( | ||
[property: JsonPropertyName("nodes")] List<SubmissionsConnectionNode>? Nodes | ||
>>>>>>> f6062a3 (Link submission query with competence profile endpoint (#79)) | ||
); |
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,7 +1,14 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
<<<<<<< HEAD | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQL; | ||
|
||
public record User( | ||
[property: JsonPropertyName("name")] string Name | ||
======= | ||
namespace Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
public record User( | ||
[property: JsonPropertyName("name")] string? Name | ||
>>>>>>> f6062a3 (Link submission query with competence profile endpoint (#79)) | ||
); |
13 changes: 13 additions & 0 deletions
13
Epsilon.Canvas.Abstractions/QueryResponse/GetAllUserCoursesSubmissionOutcomes.cs
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Text.Json.Serialization; | ||
using Epsilon.Canvas.Abstractions.Model.GraphQl; | ||
|
||
namespace Epsilon.Canvas.Abstractions.QueryResponse; | ||
|
||
public record GetAllUserCoursesSubmissionOutcomes( | ||
[property: JsonPropertyName("data")] GetAllUserCoursesSubmissionOutcomes.CourseData? Data | ||
) | ||
{ | ||
public record CourseData( | ||
[property: JsonPropertyName("allCourses")] List<Course>? Courses | ||
); | ||
}; |
6 changes: 3 additions & 3 deletions
6
...ueryResponse/GetUserSubmissionOutcomes.cs → ...sponse/GetUserCourseSubmissionOutcomes.cs
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
Oops, something went wrong.