Skip to content
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

[FEATURE] Prendre en compte flashcards dans les scripts CSV (PIX-15634)(PIX-15857) #10897

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

dianeCdrPix
Copy link
Contributor

@dianeCdrPix dianeCdrPix commented Dec 24, 2024

🎄 Problème

Les scripts get-elements-csv.js, get-modules-csv.js permettent d’extraire le référentiel de Modulix pour faire des stats.

Il faut ajouter l'élement Flashcards dans ce qui peut être extrait.

🎁 Proposition

Ajouter flashcards dans les éléments extractables.

🧦 Remarques

Pour get-proposals-csv, on rééchangera avec le métier pour comprendre les besoins.

🎅 Pour tester

Utiliser les scripts get-modules-csv et get-elements-csv et s'assurer que les flashcards sont bien comptabilisées

@dianeCdrPix dianeCdrPix requested a review from a team as a code owner December 24, 2024 10:35
@dianeCdrPix dianeCdrPix self-assigned this Dec 24, 2024
@dianeCdrPix dianeCdrPix removed the request for review from a team December 24, 2024 10:35
@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@dianeCdrPix dianeCdrPix changed the title [FEATURE] Prendre en compte flashcards dans les scripts CSV (PIX-15634)(PIX-15857) Draft: [FEATURE] Prendre en compte flashcards dans les scripts CSV (PIX-15634)(PIX-15857) Dec 24, 2024
@dianeCdrPix dianeCdrPix changed the title Draft: [FEATURE] Prendre en compte flashcards dans les scripts CSV (PIX-15634)(PIX-15857) [FEATURE] Prendre en compte flashcards dans les scripts CSV (PIX-15634)(PIX-15857) Dec 24, 2024
@dianeCdrPix dianeCdrPix marked this pull request as draft December 24, 2024 10:41
@dianeCdrPix dianeCdrPix force-pushed the pix-15857-add-flashcards-in-csv-extract branch from c9f9464 to 011e860 Compare December 24, 2024 10:44
@yannbertrand yannbertrand force-pushed the pix-15857-add-flashcards-in-csv-extract branch from 10c4cc0 to a1118a4 Compare January 6, 2025 10:33
@clemlatz clemlatz force-pushed the pix-15857-add-flashcards-in-csv-extract branch 2 times, most recently from 63b856f to ea54a3d Compare January 6, 2025 10:47
@dianeCdrPix dianeCdrPix force-pushed the pix-15857-add-flashcards-in-csv-extract branch from ea54a3d to 96c6c98 Compare January 9, 2025 11:05
@dianeCdrPix dianeCdrPix force-pushed the pix-15857-add-flashcards-in-csv-extract branch from 96c6c98 to 349540f Compare January 9, 2025 11:12
@yannbertrand yannbertrand marked this pull request as ready for review January 9, 2025 12:59
Comment on lines +43 to +44
"type": "activity",
"title": "Voici un grain d'activité",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je ne sais plus si c'est un oubli

@@ -3,6 +3,28 @@ import { fileURLToPath } from 'node:url';
import moduleDatasource from '../../src/devcomp/infrastructure/datasources/learning-content/module-datasource.js';
import { getCsvContent } from '../../src/shared/infrastructure/utils/csv/write-csv-utils.js';

export function _getTotalElementsCount(grains) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: mettre la méthode pseudo-privée à la fin du fichier pour commencer par le plus important.

import { catchErrSync, expect } from '../../../test-helper.js';

describe('Unit | Scripts | Get Modules as CSV', function () {
describe('#getTotalElements', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
describe('#getTotalElements', function () {
describe('#_getTotalElementsCount', function () {

Par ailleurs je trouve toujours bizarre de tester unitairement une méthode privée… mais je n'ai pas mieux à proposer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants