Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
9a2b8e6
TD-4364 Back links For Mobile View Added
rshrirohit Jul 26, 2024
cca2c2a
Develop/Features/TD-4322-IntroduceOptionaltaginthelearnercompetencies…
sherif-olaboye Jul 30, 2024
f76b8ba
TD-4324 Include "Optional" in the Filter options on the learner compe…
sherif-olaboye Jul 31, 2024
6e11c0b
TD-4333 Corrections In Course Admin Fields Area
rshrirohit Aug 1, 2024
ec60ef0
TD-4426 Add a minimum optional competencies int field to the self ass…
sherif-olaboye Aug 1, 2024
667c53a
Removing unnecessary reference
sherif-olaboye Aug 1, 2024
0fe2ca6
Merge pull request #2757 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 5, 2024
88400ed
Merge pull request #2762 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 5, 2024
f2d5674
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 5, 2024
cbd0dff
TD-4427 Check the minimum optional competencies have been added befor…
sherif-olaboye Aug 5, 2024
8e40fa3
TD-4322 Putiing the condition on the main page instead of inside the tag
sherif-olaboye Aug 5, 2024
6cb76bf
TD-4322 Introduce "Optional" tag in the learner competencies menu (Ov…
sherif-olaboye Aug 5, 2024
301cbf2
TD-4322 Removing the whitespace
sherif-olaboye Aug 5, 2024
dd87364
Merge pull request #2768 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 6, 2024
7eeca89
Merge pull request #2761 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 6, 2024
39243c8
Merge pull request #2764 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 6, 2024
b2a9745
TD-4469 Implements usage detail tab in course report spreadsheet
kevwhitt-hee Aug 6, 2024
2da0421
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 7, 2024
a91115d
Merge remote-tracking branch 'origin/Release-2024.38' into Develop/Fe…
sherif-olaboye Aug 7, 2024
9909956
TD-4427 renaming the NumberOfAssignOptionalCompetencies to NumberOfSe…
sherif-olaboye Aug 7, 2024
9de2f37
Merge pull request #2766 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 7, 2024
392eeed
TD-4428 Additional optional competencies checkbox on the learner sign…
sherif-olaboye Aug 7, 2024
154b21d
TD-4428 Additional optional competencies checkbox on the learner sign…
sherif-olaboye Aug 7, 2024
02d3ed9
TD-4428 changing the control name to the optional competencies
sherif-olaboye Aug 7, 2024
1856174
TD-4469 Limits details query by learner centre ID and updates related…
kevwhitt-hee Aug 8, 2024
b4e795f
Merge pull request #2771 from TechnologyEnhancedLearning/Develop/Feat…
kevwhitt-hee Aug 8, 2024
f8da95d
TD-4429 Additional optional competencies checkbox on the supervisor s…
sherif-olaboye Aug 8, 2024
822ee04
TD-4469 Moves centre filtering to table join and applies to summary q…
kevwhitt-hee Aug 8, 2024
0ef836f
IDE formatter changes
kevwhitt-hee Aug 8, 2024
bc85432
TD-4469 Removes unnecessary using statements from related classes
kevwhitt-hee Aug 8, 2024
19e62f7
TD-4460- action filter applied to verify centre specific self assessment
Auldrin-Possa Aug 9, 2024
ddb931e
TD-4502 Issue not listing the delegates on 'Send welcome message' scr…
sherif-olaboye Aug 13, 2024
fb3651e
Merge pull request #2770 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 13, 2024
33594e0
Merge pull request #2772 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 13, 2024
550bff1
TD-4515 Issue showing console '500' error on the screen when clicked …
sherif-olaboye Aug 14, 2024
0aeac45
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 15, 2024
24919ea
TD-4539 Issue showing console '500' error on the screen when clicked …
sherif-olaboye Aug 15, 2024
9d5c110
TD-4509 Issue with 'Search' showing various search results based on l…
sherif-olaboye Aug 16, 2024
065bd33
TD-4599 Implements links to legacy super admin from super admin - system
kevwhitt-hee Aug 19, 2024
0f85654
Fixes redirect controller code, appends "legacy" and formatter changes
kevwhitt-hee Aug 19, 2024
b07feae
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 19, 2024
8bbc69c
TD-4590- Sorted supervisor list, added email address and removed cent…
Auldrin-Possa Aug 19, 2024
f13227c
TD-4595 Remove the legacy tracking system tile from the application s…
sherif-olaboye Aug 19, 2024
05d2e14
TD-4595 Remove the legacy tracking system tile from the application s…
sherif-olaboye Aug 19, 2024
26c3658
Merge pull request #2775 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Aug 20, 2024
08108ea
Merge pull request #2779 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 21, 2024
f0e2c92
Merge pull request #2782 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 21, 2024
a764719
Merge pull request #2784 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Aug 21, 2024
9d07715
Merge pull request #2785 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 21, 2024
e3d5967
TD-4429 Additional optional competencies checkbox on the supervisor s…
sherif-olaboye Aug 21, 2024
65025b0
TD-4539 changing the error code
sherif-olaboye Aug 21, 2024
b2e11d5
TD-4515 Changing the error code
sherif-olaboye Aug 21, 2024
016519b
TD-4591-Modified SQL query to get center email first if exists.
Auldrin-Possa Aug 21, 2024
e8417c9
TD-4502 Removing password check from the where condition
sherif-olaboye Aug 21, 2024
9af1dd8
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 21, 2024
e29928b
TD-4592-No caching attribute added to methods
Auldrin-Possa Aug 21, 2024
0324423
Merge pull request #2776 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 21, 2024
0f0400f
Merge pull request #2777 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 21, 2024
2ec541f
Merge pull request #2778 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Aug 21, 2024
b59905c
TD-4603 Use the TD-4595 feature flag to also hide the view old ticket…
sherif-olaboye Aug 22, 2024
76c4214
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 23, 2024
4f1be28
TD-4634-Modified stored proc to return active and published status of…
Auldrin-Possa Aug 27, 2024
6a838c1
Merge pull request #2788 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Aug 29, 2024
34e37a9
Merge pull request #2790 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Aug 29, 2024
7aacff7
Merge pull request #2791 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Aug 29, 2024
ecfbbcf
Merge pull request #2796 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Aug 29, 2024
ab6433e
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Aug 29, 2024
1d75f46
TD-4383 Warn centre admins that active admin account exists when inac…
sherif-olaboye Aug 30, 2024
b175fc0
TD-4383 Warn centre admins that active admin account exists when inac…
sherif-olaboye Aug 30, 2024
d64ad58
TD-4384, changes to fix the issue with the Back Links on the User Fee…
ABSinhaa Sep 2, 2024
8b8b281
TD-4645-pattern for email validation updated in the sql queries
Auldrin-Possa Sep 2, 2024
04e712b
Keeping the consistency between '<' and 'Go Back' text and resolving …
ABSinhaa Sep 2, 2024
f644f8e
TD-4668 Issue showing duplicate self assessment records on 'Superviso…
sherif-olaboye Sep 5, 2024
c944585
Revert "TD-4634-Modified stored proc to return active and published s…
rshrirohit Sep 5, 2024
94cd1ef
Merge pull request #2820 from TechnologyEnhancedLearning/revert-2796-…
rshrirohit Sep 5, 2024
7699681
Merge branch 'Release-2024.32' into Release-2024.38
rshrirohit Sep 5, 2024
4156972
TD-4671-Course enrolled, lastupdated and completed date converted to …
Auldrin-Possa Sep 5, 2024
217fbb1
TD-4634- Customisation active check added in the completed activities
Auldrin-Possa Sep 5, 2024
eae4fb4
TD-4702 Download self-assessment certificate link URL can be manipula…
sherif-olaboye Sep 6, 2024
50d2325
Merge branch 'master' into Release-2024.38
rshrirohit Sep 9, 2024
c4483b4
Merge pull request #2821 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Sep 9, 2024
93f3edf
TD-4672-Dates converted to local date time
Auldrin-Possa Sep 9, 2024
7b8ed67
TD-4606 Issue with the error msg showing when registering the admin i…
sherif-olaboye Sep 10, 2024
6348617
TD-4709 Changed The Text On Promote To Admin Screen
rshrirohit Sep 10, 2024
5119084
TD-4559-Added Flag GroupOptionalCompetencies To SelfAssessmentStructu…
rshrirohit Sep 10, 2024
e6d78cf
Merge pull request #2773 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 11, 2024
839cd64
Merge pull request #2800 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 11, 2024
4ebf27e
Merge pull request #2801 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Sep 11, 2024
b9a1ced
Merge pull request #2822 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Sep 11, 2024
11c4e38
Merge pull request #2825 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 11, 2024
0597301
Merge pull request #2830 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Sep 11, 2024
7ff2683
TD-4322 fixing Mobile View issue
sherif-olaboye Sep 11, 2024
66ae70e
Merge branch 'Release-2024.38' into Develop/Features/TD-4383-Warncent…
sherif-olaboye Sep 11, 2024
5c56306
TD-4383 removing unneeded line of code
sherif-olaboye Sep 11, 2024
28609f0
Merge remote-tracking branch 'origin/Release-2024.38' into Develop/Fi…
sherif-olaboye Sep 11, 2024
519c252
TD-4668 Uncomment the commented code
sherif-olaboye Sep 11, 2024
493595c
TD-4324 “Optional“ filter should appear after confirmation rejected f…
sherif-olaboye Sep 12, 2024
3816315
TD-4427 the message should only appear when optional competencies is…
sherif-olaboye Sep 12, 2024
a88ecde
Merge pull request #2818 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 16, 2024
1eeb4ee
Merge pull request #2832 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 16, 2024
cf667f2
Merge pull request #2833 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 16, 2024
344c375
Merge pull request #2834 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 16, 2024
ff394a7
Merge pull request #2835 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 16, 2024
1fef4f2
Merge pull request #2836 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 16, 2024
4210151
TD-4383 Resolving clicking deactivate account showing 404 error
sherif-olaboye Sep 16, 2024
9c8910d
Merge pull request #2837 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 16, 2024
4058fc2
TD-4598 Sign off self-assessment appears when filters applied in Supe…
sherif-olaboye Sep 16, 2024
153847e
TD-4384 correction for test failed, using GetDirectURL() instead of p…
ABSinhaa Sep 16, 2024
b9485f2
TD-4702 download certificate is resulting in 403 error.
sherif-olaboye Sep 17, 2024
07727e2
TD-4086-Adds tableau JWT token helper class and settings
kevwhitt-hee Jun 24, 2024
3a0b5de
Adds users.primaryemail to JWT claims
kevwhitt-hee Jun 24, 2024
801ea9b
Starts to add view and controller code
kevwhitt-hee Jun 24, 2024
49250ce
Removes duplicate using using directives from Startup
kevwhitt-hee Jun 24, 2024
70fe40c
Sends JWT auth token to Tableau and redirects to dashboard if successful
kevwhitt-hee Jun 26, 2024
8a949fc
TD-4086 Reworks JWT token generation to add iss and kid to token headers
kevwhitt-hee Jul 9, 2024
6bfece6
Squashed commit of the following:
kevwhitt-hee Jul 25, 2024
028e860
TD-4086 Reworks the JWT token code to generate correct format with co…
kevwhitt-hee Jul 29, 2024
c5208b5
TD-4086 removing unneeded comment
kevwhitt-hee Aug 9, 2024
0955280
Removes unnecessary using statements
kevwhitt-hee Aug 9, 2024
b95bfd5
Reworks tableau code to use tableau's embed visualisation library
kevwhitt-hee Sep 11, 2024
face0f8
Reworks the embed view and fixes embed scope
kevwhitt-hee Sep 12, 2024
0415f9a
Squashed commit of the following:
kevwhitt-hee Sep 12, 2024
e5ac58c
Improves navigation and tweaks email JWT param name
kevwhitt-hee Sep 18, 2024
4cc9cbb
Revert "Squashed commit of the following:"
kevwhitt-hee Sep 18, 2024
fb4ce8a
Revert "Squashed commit of the following:"
kevwhitt-hee Sep 18, 2024
3c5b7e8
Merge pull request #2841 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 18, 2024
5a1826b
Merge pull request #2842 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 18, 2024
4211936
Merge pull request #2799 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 18, 2024
75840e0
TD-4323 Introduce "Optional" tag in the learner Self Assessment view
sherif-olaboye Sep 18, 2024
bbb9d4f
Merge pull request #2843 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 19, 2024
867c14c
TD-4324 resolving If Optional filter is applied along with other filt…
sherif-olaboye Sep 19, 2024
15f5f06
TD-4364 Adding back links in feedback pages in mobile view
rshrirohit Sep 19, 2024
92d73e8
TD-4697-added AddOptionalCompetencies page. modified code to display …
Auldrin-Possa Sep 19, 2024
cc67866
plural version of the vocabulary added in the screen header text.
Auldrin-Possa Sep 19, 2024
a87f9a0
TD-4383 Removing of Active from the Admin role list
sherif-olaboye Sep 19, 2024
787b59d
Merge pull request #2846 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Sep 20, 2024
c3e63fb
Merge pull request #2848 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 20, 2024
19a263d
Update param name to match reports
kevwhitt-hee Sep 24, 2024
81743f4
TD-4469 Sets column title to "Enrolled" instead of "Registered"
kevwhitt-hee Sep 24, 2024
cb265e8
TD-4469 Removes GUID email addresses from export
kevwhitt-hee Sep 24, 2024
ff758db
TD-4154- Applied retry logic for the UPDATE statement when the proces…
Auldrin-Possa Sep 24, 2024
7f50f8f
Merge pull request #2845 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 25, 2024
c6ecb97
Merge pull request #2847 from TechnologyEnhancedLearning/Develop/feat…
rshrirohit Sep 25, 2024
dffabda
Merge pull request #2849 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 25, 2024
8588475
Merge pull request #2850 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Sep 25, 2024
6c53130
Tweaks name of user attribute being passed and improves styling of la…
kevwhitt-hee Sep 25, 2024
9d5b6d2
Corrects wording of link to make consistent with page title
kevwhitt-hee Sep 26, 2024
326cf13
Tweaks email attribute name and feature flags the dashboard link and …
kevwhitt-hee Sep 26, 2024
08e533d
TD-4774 UIChangesOnProficienciesPage
rshrirohit Sep 26, 2024
97783c5
Merge pull request #2774 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Sep 27, 2024
d587c7a
TD-4764-Nominated supervisor role check added to display links accord…
Auldrin-Possa Sep 27, 2024
564bb1b
TD-4702 Resolving the route issue
sherif-olaboye Sep 27, 2024
b0cffaf
TD-4760- Corrected the spelling for assessment on the delegates activ…
ABSinhaa Sep 27, 2024
c23d0b2
TD-4702 Resolving the test failed
sherif-olaboye Sep 27, 2024
d22e004
TD-4672-Table constraint altered to add utc date
Auldrin-Possa Sep 30, 2024
b28b9a8
TD-4697-'Cancel' link redirected to proficiency page and implemented …
Auldrin-Possa Sep 30, 2024
3ddf3a2
TD-4325 Added Filter For Optional
rshrirohit Sep 30, 2024
593a67b
TD-4325 Changes to logic have filters working with one another
rshrirohit Sep 30, 2024
4817ed7
TD-4760 Renamed the partial view file and corrected the spelling name…
ABSinhaa Oct 1, 2024
865ca2d
Corrects coalescing of valid emails and fixes mapping return field na…
kevwhitt-hee Oct 1, 2024
a60421e
Call to AddOptionalCompetencies for self assessments with LinearNavig…
Auldrin-Possa Oct 1, 2024
f5e3aa1
TD-4560 Change the Manage optional competencies view to allow selecti…
sherif-olaboye Oct 1, 2024
d980c6e
Merge pull request #2854 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Oct 2, 2024
e71f6a0
Merge pull request #2856 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 2, 2024
cc061c9
Merge pull request #2857 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Oct 2, 2024
937bff2
Merge pull request #2858 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Oct 2, 2024
76e103f
Merge pull request #2860 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 2, 2024
731621b
Merge pull request #2861 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 2, 2024
698473f
TD-4774 Corrected the condition
rshrirohit Oct 3, 2024
7d0221e
TD-4821-code which updates supervisor role, has been removed.
Auldrin-Possa Oct 4, 2024
60f1ac6
Fixes labelling of date range on last line of summary report
kevwhitt-hee Oct 7, 2024
5acb15d
Fixes test by providing correct end date for expected result
kevwhitt-hee Oct 7, 2024
634f4e1
Merge pull request #2838 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 8, 2024
a498a5c
Merge pull request #2852 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 8, 2024
1dc6b01
Merge pull request #2855 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 8, 2024
32a402b
Merge pull request #2863 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 8, 2024
0a99caa
Merge pull request #2872 from TechnologyEnhancedLearning/Develop/Fix/…
rshrirohit Oct 8, 2024
33e3a3b
Merge pull request #2873 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 8, 2024
0fe7c6b
TD-4702 fixing error due to early refactoring of the certificate
sherif-olaboye Oct 8, 2024
d78d8dd
Merge pull request #2875 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 8, 2024
72d4b52
TD-4774 Correcting Condition For SignOff Button
rshrirohit Oct 9, 2024
0ca243d
TD-4333 Making Course Admin Fields Optional Again
rshrirohit Oct 9, 2024
30e8a74
Merge pull request #2876 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 9, 2024
a6e78a2
Merge pull request #2877 from TechnologyEnhancedLearning/Develop/Fixe…
rshrirohit Oct 9, 2024
cdebf63
TD-4560 Change the Manage optional competencies view to allow selecti…
sherif-olaboye Oct 10, 2024
eebc6fa
TD-4560 Change the Manage optional competencies view to allow selecti…
sherif-olaboye Oct 10, 2024
2ba2394
TD-4560 Removing the select all check box
sherif-olaboye Oct 10, 2024
66f6074
Merge pull request #2879 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 10, 2024
758d92e
TD-4560 aligning the tags
sherif-olaboye Oct 10, 2024
a4c3a13
TD-4560 Aligning the tag
sherif-olaboye Oct 10, 2024
dbeeb42
Merge pull request #2880 from TechnologyEnhancedLearning/Develop/Feat…
rshrirohit Oct 10, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;

[Migration(202409051645)]
public class Alter_GetCompletedCoursesForCandidate_CourseActive : Migration
{
public override void Up()
{
Execute.Sql(Properties.Resources.TD_4634_Alter_GetCompletedCoursesForCandidate_UP);
}
public override void Down()
{
Execute.Sql(Properties.Resources.TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;

[Migration(202409110900)]
public class AddGroupOptionalCompetenciesToSelfAssessmentStructureTable : Migration
{
public override void Up()
{
Alter.Table("SelfAssessmentStructure")
.AddColumn("GroupOptionalCompetencies")
.AsCustom("BIT")
.NotNullable()
.WithDefaultValue(0);
}

public override void Down()
{
Delete.Column("GroupOptionalCompetencies").FromTable("SelfAssessmentStructure");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;

[Migration(202409300912)]
public class AlterConstraintForCandidateAssessmentsAddUtcDate : Migration
{
public override void Up()
{
Execute.Sql(@$"ALTER TABLE [dbo].[CandidateAssessments] DROP CONSTRAINT [DF_CandidateAssessments_StartedDate];
ALTER TABLE [dbo].[CandidateAssessments] ADD CONSTRAINT [DF_CandidateAssessments_StartedDate] DEFAULT (GETUTCDATE()) FOR [StartedDate];");
}
public override void Down()
{
Execute.Sql(@$"ALTER TABLE [dbo].[CandidateAssessments] DROP CONSTRAINT [DF_CandidateAssessments_StartedDate];
ALTER TABLE [dbo].[CandidateAssessments] ADD CONSTRAINT [DF_CandidateAssessments_StartedDate] DEFAULT (GETDATE()) FOR [StartedDate];");
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;

[Migration(202401081132)]
public class AddMinimumOptionalCompetenciesToSelfAssessmentsTable : Migration
{
public override void Up()
{
Alter.Table("SelfAssessments").AddColumn("MinimumOptionalCompetencies").AsInt32().NotNullable().WithDefaultValue(0);
}

public override void Down()
{
Delete.Column("MinimumOptionalCompetencies").FromTable("SelfAssessments");
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,10 @@
<data name="TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD-4436-Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
</root>
<data name="TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
<data name="TD_4634_Alter_GetCompletedCoursesForCandidate_UP" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD_4634_Alter_GetCompletedCoursesForCandidate_UP.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
</root>
Binary file not shown.
Binary file not shown.
121 changes: 117 additions & 4 deletions DigitalLearningSolutions.Data/DataServices/ActivityDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ IEnumerable<ActivityLog> GetFilteredActivity(
int? courseCategoryId,
int? customisationId
);

int GetActivityDetailRowCount(
int centreId,
DateTime startDate,
DateTime? endDate,
int? jobGroupId,
int? courseCategoryId,
int? customisationId
);
IEnumerable<ActivityLogDetail> GetFilteredActivityDetail(
int centreId,
DateTime startDate,
DateTime? endDate,
int? jobGroupId,
int? courseCategoryId,
int? customisationId,
int exportQueryRowLimit,
int currentRun
);
DateTime? GetStartOfActivityForCentre(int centreId, int? courseCategoryId = null);
}

Expand Down Expand Up @@ -47,10 +64,10 @@ public IEnumerable<ActivityLog> GetFilteredActivity(
SUM(CAST(Registered AS Int)) AS Registered,
SUM(CAST(Completed AS Int)) AS Completed,
SUM(CAST(Evaluated AS Int)) AS Evaluated
FROM tActivityLog AS al
FROM tActivityLog AS al INNER JOIN DelegateAccounts AS da ON al.CandidateID = da.ID AND al.CentreID = da.CentreID
WHERE (LogDate >= @startDate
AND (@endDate IS NULL OR LogDate <= @endDate)
AND CentreID = @centreId
AND (al.CentreID = @centreId)
AND (@jobGroupId IS NULL OR JobGroupID = @jobGroupId)
AND (@customisationId IS NULL OR al.CustomisationID = @customisationId)
AND (@courseCategoryId IS NULL OR al.CourseCategoryId = @courseCategoryId)
Expand All @@ -74,7 +91,103 @@ GROUP BY Cast(LogDate As Date), LogYear,
}
);
}

public int GetActivityDetailRowCount(
int centreId,
DateTime startDate,
DateTime? endDate,
int? jobGroupId,
int? courseCategoryId,
int? customisationId
)
{
return connection.QuerySingleOrDefault<int>(
@"SELECT COUNT(1) FROM
tActivityLog AS al INNER JOIN DelegateAccounts AS da ON al.CandidateID = da.ID AND al.CentreID = da.CentreID
WHERE(al.LogDate >= @startDate) AND(@endDate IS NULL OR
al.LogDate <= @endDate) AND(al.CentreID = @centreId) AND (@jobGroupId IS NULL OR
al.JobGroupID = @jobGroupId) AND(@customisationId IS NULL OR
al.CustomisationID = @customisationId) AND(@courseCategoryId IS NULL OR
al.CourseCategoryID = @courseCategoryId) AND(al.Registered = 1 OR
al.Completed = 1 OR
al.Evaluated = 1) AND EXISTS
(SELECT ApplicationID
FROM Applications AS ap
WHERE (ApplicationID = al.ApplicationID) AND
(DefaultContentTypeID<> 4))",
new
{
centreId,
startDate,
endDate,
jobGroupId,
customisationId,
courseCategoryId
}
);
}
public IEnumerable<ActivityLogDetail> GetFilteredActivityDetail(
int centreId,
DateTime startDate,
DateTime? endDate,
int? jobGroupId,
int? courseCategoryId,
int? customisationId,
int exportQueryRowLimit,
int currentRun
)
{
return connection.Query<ActivityLogDetail>(
@"SELECT al.LogID,
al.LogDate,
a.ApplicationName AS CourseName,
c.CustomisationName,
u.FirstName,
u.LastName,
COALESCE(ucd.Email, u.PrimaryEmail) AS EmailAddress,
da.CandidateNumber AS DelegateId,
da.Answer1,
da.Answer2,
da.Answer3,
da.Answer4,
da.Answer5,
da.Answer6,
al.Registered AS Enrolled,
al.Completed,
al.Evaluated
FROM Applications AS a INNER JOIN
tActivityLog AS al ON a.ApplicationID = al.ApplicationID INNER JOIN
Users AS u INNER JOIN
DelegateAccounts AS da ON u.ID = da.UserID ON al.CandidateID = da.ID AND al.CentreID = da.CentreID INNER JOIN
Customisations AS c ON al.CustomisationID = c.CustomisationID LEFT OUTER JOIN
UserCentreDetails AS ucd ON u.ID = ucd.UserID AND c.CentreID = al.CentreID
WHERE (al.LogDate >= @startDate) AND (@endDate IS NULL OR
al.LogDate <= @endDate) AND (al.CentreID = @centreId) AND (@jobGroupId IS NULL OR
al.JobGroupID = @jobGroupId) AND (@customisationId IS NULL OR
al.CustomisationID = @customisationId) AND (@courseCategoryId IS NULL OR
al.CourseCategoryID = @courseCategoryId) AND (al.Registered = 1 OR
al.Completed = 1 OR
al.Evaluated = 1) AND
(u.PrimaryEmail like '%_@_%' OR ucd.Email IS NOT NULL) AND EXISTS
(SELECT ApplicationID
FROM Applications AS ap
WHERE (ApplicationID = al.ApplicationID) AND (DefaultContentTypeID <> 4))
ORDER BY al.LogDate DESC
OFFSET @exportQueryRowLimit * (@currentRun - 1) ROWS
FETCH NEXT @exportQueryRowLimit ROWS ONLY"
,
new
{
centreId,
startDate,
endDate,
jobGroupId,
customisationId,
courseCategoryId,
exportQueryRowLimit,
currentRun
}
);
}
public DateTime? GetStartOfActivityForCentre(int centreId, int? courseCategoryId = null)
{
return connection.QuerySingleOrDefault<DateTime?>(
Expand Down
Loading
Loading