-
Notifications
You must be signed in to change notification settings - Fork 56
Add Publish Grading Feature #965
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
Merged
RichDom2185
merged 87 commits into
source-academy:master
from
emptygx:add-publish-grading
Apr 13, 2024
Merged
Changes from 36 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
8022419
Add migrations to create is_grading_published column for submissions
emptygx 8125ac1
Merge branch 'master' into add-publish-grading
emptygx e286902
Add and update endpoints for new publish grading feature
emptygx d174fbd
Fix missing return tuple values in assessments.ex
emptygx bc36b60
Fix notification and formatting
emptygx 5dcc425
Merge branch 'master' into add-publish-grading
emptygx 2153280
Fix indentation and minor error
emptygx 1891d72
Fix formatting
emptygx 55c5a36
fix formatting
YaleChen299 af683fd
fix credo long line
YaleChen299 cf98cff
fix credo nesting alias
YaleChen299 568cc6f
Fix formatting and code quality
emptygx 4700a49
Fix tests
emptygx 0ec5a50
Merge branch 'master' into add-publish-grading
RichDom2185 a026ec8
Merge branch 'master' into add-publish-grading
GabrielCWT 750ba95
feat: Implement format helper function
GabrielCWT f82e43f
feat: Add formatting function for getting all assessments
GabrielCWT e7090f8
fix: Fix bug of using virtual variable instead
GabrielCWT 5c1b155
refactor: Remove default value for virtual variable is_grading_published
GabrielCWT 788e31e
feat: Implement tests for helper functions
GabrielCWT 70ebac5
feat: Add isGradingPublished to response for fetching all assessments
GabrielCWT 54cbcfc
refactor: Format
GabrielCWT cf62185
chore: Remove unused match
GabrielCWT 6b5f0e8
feat: Implement tests for unpublish route
GabrielCWT 2a05597
feat: Implement tests for publish route
GabrielCWT 9934af4
refactor: Move repeated code into setup for publish test
GabrielCWT 1097e23
refactor: Move repeated code into setup for unpublish test
GabrielCWT 4ce2d6e
refactor: Format code
GabrielCWT 9de59c6
Merge branch 'master' into add-publish-grading
GabrielCWT 98587e6
Merge branch 'master' into add-publish-grading
RichDom2185 d046b3b
feat: Add a guard to prevent unsubmit when grade is still published
GabrielCWT 07f2548
feat: Implement filter by notPublished
GabrielCWT 9b33670
refactor: Format
GabrielCWT e658166
fix: Fix incorrect guard check for is_grading_published
GabrielCWT 054d89a
refactor: Edit tests to accommodate new guard
GabrielCWT 2caecd7
feat: Implement test for new guard (check is_grading_published)
GabrielCWT dd7742e
Merge branch 'master' into add-publish-grading
GabrielCWT f65bc56
Merge branch 'master' into add-publish-grading
GabrielCWT 1f41b11
feat: Update seed to include is_grading_published
GabrielCWT 8c1387f
refactor: Update old tests to accommodate for is_grading_published
GabrielCWT 7cc1448
refactor: Improve filter tests to be more flexible
GabrielCWT 44cbab8
feat: Implement test for filter by not published
GabrielCWT 89411ad
chore: Format
GabrielCWT 888a4f7
refactor: Make is_grading_published default to false in factory function
GabrielCWT 4298970
feat: Add is_grading_auto_published column to assessment config
GabrielCWT 147cf4d
feat: Add guard clause to ensure submission is fully graded before pu…
GabrielCWT a41a894
feat: Implement publish_grading and is_fully_autograded?
GabrielCWT d2b173b
chore: Clean up code
GabrielCWT 626b61c
feat: Add is_grading_auto_published and is_manually_graded to seed
GabrielCWT 07a63e6
feat: Implement tests for is_fully_autograded?/1
GabrielCWT 38b3303
feat: Implement publish_all_grades route
GabrielCWT ae9b42f
feat: Add publish_all_grades in controller
GabrielCWT b606905
feat: Implement publish_all_graded function
GabrielCWT 582a394
feat: Implement tests for publish_all_graded/2
GabrielCWT ade0e24
refactor: Rename param names and allow filter by true or false
GabrielCWT f3a0eeb
refactor: Add tests for change in param and refactor code
GabrielCWT 1abf60b
refactor: Change response for publish all grades
GabrielCWT 1ae8d87
refactor: Use update_all instead of recursively updating individual s…
GabrielCWT 5077d70
feat: Implement unpublish all grades route
GabrielCWT 50a85a9
feat: Implement unpublish_all
GabrielCWT ddd522d
feat: Implement unpublish_all tests
GabrielCWT 5360e3a
chore: Format
GabrielCWT a33ff69
feat: Implement auto publish for mcq/voting questions
GabrielCWT 858c740
feat: Implement auto publish for auto graded programming questions
GabrielCWT f376f1e
chore: Fix consistency issue
GabrielCWT a2a23f7
Merge branch 'master' into add-publish-grading
GabrielCWT 5b91c12
feat: Implement published and unpublished notifications and remove de…
GabrielCWT 64b5305
feat: Include isGradingAutoPublished in response for assessment configs
GabrielCWT 21c65f6
fix: Include sending of notifications when publishing/unpublishing all
GabrielCWT 596d3c3
docs: Add docs for functions implemented
GabrielCWT 340de3a
chore: Update wording for tests
GabrielCWT b2ab4b0
chore: Remove unused variables
GabrielCWT a25f9f7
feat: Implement test for unpublish and publish all routes
GabrielCWT 9d9069c
Merge branch 'master' into add-publish-grading
GabrielCWT fd1508b
feat: Implement guard for publish/unpublish grades
GabrielCWT 4ac87af
refactor: Change notification types in swagger_schema
GabrielCWT 93d6bd2
chore: Add comment in seed
GabrielCWT bd9abf9
refactor: remove redundant lines
GabrielCWT c34d265
Merge branch 'master' into add-publish-grading
GabrielCWT 365cfb4
Merge branch 'master' into add-publish-grading
GabrielCWT ce6ec53
Redate migrations
RichDom2185 710213c
Revert unnecessary changes
RichDom2185 593708e
Revert more unnecessary changes
RichDom2185 d00b686
refactor: Move duplicate code into helper function
GabrielCWT e355d54
chore: Fix typo
GabrielCWT 541fac9
refactor: Change control flow structure
GabrielCWT b366bc9
Merge branch 'master' into add-publish-grading
RichDom2185 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
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.
Uh oh!
There was an error while loading. Please reload this page.