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

Mise à jour des dépendances de Mongo #4740

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Mise à jour des dépendances de Mongo #4740

wants to merge 4 commits into from

Conversation

jenovateurs
Copy link
Contributor

@github-actions github-actions bot added this to the BC actuel milestone Nov 19, 2024
@jenovateurs jenovateurs marked this pull request as ready for review January 10, 2025 17:10
@jenovateurs
Copy link
Contributor Author

jenovateurs commented Jan 10, 2025

Le dernier check non-valide correspond à CodeQL (système d'IA de review) qui suggère d'ajouter un rate limit de partout.
Qu'en penses-tu @Shamzic ? Sur le principe je suis d'accord mais je propose de le faire avec un nouveau ticket.
Si tu es de mon avis, je retirerai les alertes associées.

@Shamzic
Copy link
Contributor

Shamzic commented Jan 13, 2025

Oui, c'est ok, tu peux les retirer sur Github en cochant la case pour dire que c'est des faux positifs

}

function attachAccessCookie(req: Request, res, next?) {
const cookiesParameters = {
maxAge: 7 * 24 * 3600 * 1000,
maxAge: 604800000,
Copy link
Contributor

Choose a reason for hiding this comment

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

j'aurais ajouté un commentaire sur cette constante ou nommé de manière explicite dans une constante globale

Comment on lines +13 to +21
const SurveyModel = mongoose.model<Survey>("Survey", SurveySchema)
FollowupSchema.method(
"addSurveyIfMissing",
async function (surveyType: SurveyType): Promise<Survey> {
let survey = this.surveys.find((survey) => survey.type === surveyType)
if (!survey) {
survey = await this.surveys.create({ type: surveyType })
survey = new SurveyModel({ type: surveyType })
this.surveys.push(survey)
await this.save()
Copy link
Contributor

@Shamzic Shamzic Jan 13, 2025

Choose a reason for hiding this comment

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

Tu as testé cette partie manuellement pour vérifier que c'était iso-fonctionnel ?
Ce serait bien d'ajouter un test ici je trouve

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

Successfully merging this pull request may close these issues.

2 participants