-
Notifications
You must be signed in to change notification settings - Fork 56
Improved Assessment Configurability in Ground Control #1093
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 18 commits into
source-academy:master
from
DesSnowy:RenameHasTokenCounterToHasVotingFeatures
Mar 26, 2024
Merged
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2da5101
rename hasTokenCounter to hasVotingFeature under assessmentConfig
DesSnowy fe7854c
Added hasVotingFeatures to assessment config
DesSnowy d2bfd92
Added hasVotingFeature to assessmentConfig
DesSnowy cb18e73
Added hasTokenCounter and hasVotingFeatures to assessments
DesSnowy 6012b11
hasTokenCounter and hasVotingFeatures to be updated to ones in assess…
DesSnowy ade5541
Added hasTokenCounter and hasVotingFeatures to be shown when assessme…
DesSnowy 284da06
Added hasTokenCounter into swaggers
DesSnowy 96d1dc7
Changed test cases to include hasVotingFeatures and hasTokenCounter
DesSnowy 9687930
Added a way to change hasTokenCounter and hasVotingFeatures from the …
DesSnowy 0bc2486
fixed format
DesSnowy 6c5f9e6
Merge branch 'source-academy:master' into RenameHasTokenCounterToHasV…
DesSnowy 394cb52
fixed format
DesSnowy 49ac07d
fixed alias format
DesSnowy 4c059eb
Merge branch 'RenameHasTokenCounterToHasVotingFeatures' of github.com…
DesSnowy e815717
added new test case to ensure hasTokenCounter and hasVotingFeatures c…
DesSnowy f97a5ce
Merge branch 'master' of https://github.com/source-academy/backend in…
RichDom2185 957e91b
Merge branch 'master' into RenameHasTokenCounterToHasVotingFeatures
RichDom2185 b7dda28
Seperated nil checks to be for indivudual field instead
DesSnowy 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
17 changes: 17 additions & 0 deletions
17
priv/repo/migrations/20240320154407_add_has_token_counter_toggle_to_assessment.exs
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,17 @@ | ||
defmodule Cadet.Repo.Migrations.AddHasTokenCounterToggleToAssessment do | ||
use Ecto.Migration | ||
|
||
def up do | ||
alter table(:assessments) do | ||
add(:has_token_counter, :boolean, null: false, default: false) | ||
add(:has_voting_features, :boolean, null: false, default: false) | ||
end | ||
end | ||
|
||
def down do | ||
alter table(:assessments) do | ||
remove(:has_token_counter) | ||
remove(:has_voting_features) | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
priv/repo/migrations/20240321141522_add_has_voting_features_toggle_to_assessment_config.exs
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,15 @@ | ||
defmodule Cadet.Repo.Migrations.AddHasVotingFeaturesToggleToAssessmentConfig do | ||
use Ecto.Migration | ||
|
||
def up do | ||
alter table(:assessment_configs) do | ||
add(:has_voting_features, :boolean, null: false, default: false) | ||
end | ||
end | ||
|
||
def down do | ||
alter table(:assessment_configs) do | ||
remove(:has_voting_features) | ||
end | ||
end | ||
end |
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
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.