-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(upload): save selected user row info #2697
base: staging
Are you sure you want to change the base?
Conversation
# .reject do |user_row| | ||
# user_row.last_user_save_attempt.success? | ||
# end | ||
user_rows.select(&:user_valid?).select(&:marked_for_user_save?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai le sentiment qu'ici on ne devrait pas prendre ceux qui sont déjà créés non ? Avec le code en commentaire
# .reject do |user_row| | ||
# user_row.invitation_succeeded? | ||
# end | ||
user_rows.select(&:marked_for_invitation?).select(&:user_save_succeded?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem ici, j'imagine qu'on ne veut pas ceux qui ont déjà été invités ?
def invitation_succeeded? | ||
invitation_attempts.any?(&:success?) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uniquement nécessaire si le code cité au dessus l'est
Cette PR permet une amélioration de la gestion de la sélection. La sélection est désormais sauvegardée côté serveur immédiatement. Cela permet de ne pas avoir à envoyer la toute sélection au moment de l'envoi des invitations et des créations de compte.
fix #2674