-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces visibility setting for projects. It modifies the resolver to make visibility an optional input on project creation with a default set to 'INTERNAL'. It also adjusts the GraphQL schema to recognize the new visibility options and associates it with project entities.
- Loading branch information
1 parent
10035fb
commit 9a72543
Showing
8 changed files
with
90 additions
and
48 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
backend/src/db/migrations/20231223000001-add-project-visibility.js
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,16 @@ | ||
'use strict'; | ||
|
||
const TABLE_NAME = 'projects'; | ||
const COLUMN_NAME = 'visibility'; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
export default { | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.addColumn(TABLE_NAME, COLUMN_NAME, { | ||
type: Sequelize.STRING, | ||
}); | ||
}, | ||
async down(queryInterface, Sequelize) { | ||
await queryInterface.removeColumn(TABLE_NAME, COLUMN_NAME); | ||
}, | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.