-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an optional JSON field
taskWidgetLayout
to the Challenge
ta…
…ble (#1067) - Added an optional JSON field `taskWidgetLayout` to the `Challenge` model to store configurations and data related to task widget layout. - Inserted `taskWidgetLayout` into JSON bodies in the `ChallengeController`. - Updated GraphQL schema, `MRSchemaTypes`, to include the new field. - Modified the `ChallengeRepository` and `ChallengeDAL` to handle CRUD operations related to the new field. - Added the corresponding database evolution script to create the new column in the `challenges` table. --------- Co-authored-by: Lucas Burson <[email protected]>
- Loading branch information
1 parent
dcc34bf
commit d9239b7
Showing
6 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- --- !Ups | ||
ALTER TABLE IF EXISTS challenges | ||
ADD COLUMN task_widget_layout jsonb NOT NULL DEFAULT '{}'::jsonb; | ||
|
||
COMMENT ON COLUMN challenges.task_widget_layout IS | ||
'The challenges.task_widget_layout is json that the GUI uses as a "suggested layout" when displaying the Task Completion page.'; | ||
|
||
-- --- !Downs | ||
ALTER TABLE IF EXISTS challenges | ||
DROP COLUMN task_widget_layout; |