-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Désafficher la bannière d'ouverture du niveau 7 (PIX-14495).
- Loading branch information
Showing
36 changed files
with
24 additions
and
426 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
15 changes: 15 additions & 0 deletions
15
api/db/migrations/20241004090234_remove-has-seen-level-seven-info-column.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,15 @@ | ||
const TABLE_NAME = 'users'; | ||
const COLUMN_NAME = 'hasSeenLevelSevenInfo'; | ||
|
||
const up = async function (knex) { | ||
await knex.schema.table(TABLE_NAME, function (table) { | ||
table.dropColumn(COLUMN_NAME); | ||
}); | ||
}; | ||
|
||
const down = async function (knex) { | ||
await knex.schema.table(TABLE_NAME, function (table) { | ||
table.boolean(COLUMN_NAME).defaultTo(false); | ||
}); | ||
}; | ||
export { down, up }; |
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import * as userSerializer from '../../../shared/infrastructure/serializers/jsonapi/user-serializer.js'; | ||
import { evaluationUsecases as usecases } from '../../domain/usecases/index.js'; | ||
|
||
const rememberUserHasSeenLevelSevenInfo = async function (request, h, dependencies = { userSerializer }) { | ||
const authenticatedUserId = request.auth.credentials.userId; | ||
|
||
const updatedUser = await usecases.rememberUserHasSeenLevelSevenInfo({ userId: authenticatedUserId }); | ||
return dependencies.userSerializer.serialize(updatedUser); | ||
}; | ||
|
||
const rememberUserHasSeenNewDashboardInfo = async function (request, h, dependencies = { userSerializer }) { | ||
const authenticatedUserId = request.auth.credentials.userId; | ||
|
||
const updatedUser = await usecases.rememberUserHasSeenNewDashboardInfo({ userId: authenticatedUserId }); | ||
return dependencies.userSerializer.serialize(updatedUser); | ||
}; | ||
|
||
const userController = { rememberUserHasSeenLevelSevenInfo, rememberUserHasSeenNewDashboardInfo }; | ||
const userController = { rememberUserHasSeenNewDashboardInfo }; | ||
|
||
export { userController }; |
5 changes: 0 additions & 5 deletions
5
api/src/evaluation/domain/usecases/remember-user-has-seen-level-seven-info.js
This file was deleted.
Oops, something went wrong.
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
13 changes: 0 additions & 13 deletions
13
...cess-management/domain/usecases/remember-user-has-seen-level-seven-information.usecase.js
This file was deleted.
Oops, something went wrong.
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
71 changes: 0 additions & 71 deletions
71
api/tests/evaluation/acceptance/application/users/user-controller_test.js
This file was deleted.
Oops, something went wrong.
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
20 changes: 0 additions & 20 deletions
20
api/tests/evaluation/unit/domain/usecases/remember-user-has-seen-level-seven-info_test.js
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.