This repository was archived by the owner on Dec 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Apply Extensions from transaction log #299
Closed
Closed
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
6743e56
Added Developer Guide doc
zoeyganzhorn 384e3d7
Added extensionDays field to migration log
zoeyganzhorn 536f51c
Merge branch 'main' of github.com:CSCI128/packtrain into jettzoeyExte…
jettMorrandez 1c15a3d
adding number of days to the scoredDTO and adjusted handlescorerecived
jettMorrandez 337bf55
set log number of extension days in handlescorereceived to dto getnum…
jettMorrandez ac8b017
Added a query in the MigrationTransactionLogRepo
zoeyganzhorn 4b6a7d0
Created processExtensionApplied function in ExtensionService
zoeyganzhorn 31c31c9
Updated postGradesToCanvasTask to use the extension service to update…
zoeyganzhorn 0324b9a
Fixed logical error in processExtensionApplied function
zoeyganzhorn cfc0567
Missed a semicolon
zoeyganzhorn a3f409b
Fixed syntax errors
zoeyganzhorn c80542a
Fixing more errors
zoeyganzhorn 34e4f5f
Fixed style issues
zoeyganzhorn 2e291eb
implementation of process extension
jettMorrandez 072c6fb
Trying to fix style issues
zoeyganzhorn 2e3f3c9
Fixing white spaces issues in ExtensionService
zoeyganzhorn 3543e32
Fixed LineLength error in MigrationService
zoeyganzhorn 0706f7b
fixed the last style error
zoeyganzhorn 031406e
pulled from main and solved merge conflicts
jettMorrandez 9d07495
Merge branch 'jettzoeyExtensionApplication' of github.com:CSCI128/pac…
jettMorrandez 52ff05a
deleted commented code
jettMorrandez be5a6a7
saved the late request to the repo
jettMorrandez df53ce6
extension service test
jettMorrandez e894d51
test fix
jettMorrandez a03a2a0
fix to test forgot mockito
jettMorrandez a692f9c
fix to test
jettMorrandez b2dea9e
fix to test
jettMorrandez d315cf9
fix to testforgot to mock save()
jettMorrandez 02cb680
fix to testforgot to mock save()
jettMorrandez c890dcf
fix to test for svae()
jettMorrandez 23dab5c
got rid of save
jettMorrandez 1a6716c
added mock
jettMorrandez 293d19e
mocked out mock
jettMorrandez 7f3fa76
mocked out mock
jettMorrandez de67774
fixed extension service
jettMorrandez a677e5b
not sure what is wrong
jettMorrandez f4d4d32
Merge branch 'main' of github.com:CSCI128/packtrain into jettzoeyExte…
jettMorrandez 86245be
Chagned @Mock to be @AutoWired for LateRequestRepo
zoeyganzhorn 475674f
Got rid of InjectMocks in TestExtensionService
zoeyganzhorn 7717c25
greg notes
jettMorrandez 1c5f48c
more greg notes
jettMorrandez 171baa9
even more greg comments
jettMorrandez 7802a41
Merge branch 'jettzoeyExtensionApplication' of github.com:CSCI128/pac…
jettMorrandez f4153d3
Made changed to verifyProcessExtensionApplied test
zoeyganzhorn 833de89
Made changes to the verifyProcessExtensionApplied Test
zoeyganzhorn ee6d19e
Inverted the logic in processExtensionAppied function
zoeyganzhorn ec70f6e
fixing style issues
zoeyganzhorn 1677194
changed to have number days applied to be in all places
jettMorrandez dc285d8
Merge branch 'main' of github.com:CSCI128/packtrain into jettzoeyExte…
jettMorrandez d148ece
Merge branch 'jettzoeyExtensionApplication' of github.com:CSCI128/pac…
jettMorrandez 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .. _DeveloperGuide: | ||
|
|
||
| Developer Guide | ||
| ========================== |
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
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 |
|---|---|---|
|
|
@@ -16,4 +16,10 @@ public interface MigrationTransactionLogRepo extends CrudRepository<MigrationTra | |
| @Query("select l from migration_transaction_log l where l.migrationId = ?2 " + | ||
| "and l.cwid = ?1 order by l.revision asc") | ||
| List<MigrationTransactionLog> getByCwidAndMigrationId(String cwid, UUID migrationId); | ||
|
|
||
| @Query("select l from migration_transaction_log l where l.migrationId = ?1 " + | ||
| "and l.revision = (select max(l2.revision) from migration_transaction_log l2 where l2.cwid = l.cwid )") | ||
| // grabbing the latest revision from migration transaction log by migration id | ||
| // cursed subquery version (im so sorry) | ||
| List<MigrationTransactionLog> getLatestByMigrationId(UUID migrationId); | ||
|
Comment on lines
+20
to
+24
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have any tests covering this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add stuff to the repo, use process function from migration service one to grab out and make sure we are getting back what we need, all of this goes into the same test |
||
| } | ||
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
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.
We need to make a policy server update to that this field actually gets applied.
We also need to update the docs for this