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

feat(upload): save selected user row info #2697

Draft
wants to merge 7 commits into
base: staging
Choose a base branch
from

Conversation

Michaelvilleneuve
Copy link
Collaborator

@Michaelvilleneuve Michaelvilleneuve commented Mar 4, 2025

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

Comment on lines +48 to +51
# .reject do |user_row|
# user_row.last_user_save_attempt.success?
# end
user_rows.select(&:user_valid?).select(&:marked_for_user_save?)
Copy link
Collaborator Author

@Michaelvilleneuve Michaelvilleneuve Mar 5, 2025

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

Comment on lines +71 to +74
# .reject do |user_row|
# user_row.invitation_succeeded?
# end
user_rows.select(&:marked_for_invitation?).select(&:user_save_succeded?)
Copy link
Collaborator Author

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 ?

Comment on lines +200 to +202
def invitation_succeeded?
invitation_attempts.any?(&:success?)
end
Copy link
Collaborator Author

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

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.

[Upload] - Garder la sélection lors de changements de données et d'onglets
1 participant