Skip to content

Gestionnaire de fichiers : étape 2#4204

Draft
arnaudlevy wants to merge 14 commits into
mainfrom
files-step-2
Draft

Gestionnaire de fichiers : étape 2#4204
arnaudlevy wants to merge 14 commits into
mainfrom
files-step-2

Conversation

@arnaudlevy

@arnaudlevy arnaudlevy commented Jul 16, 2026

Copy link
Copy Markdown
Member

Type

  • Nouvelle fonctionnalité
  • Bug
  • Ajustement
  • Rangement

Description

https://developers.osuny.org/docs/admin/composants/picker/

Niveau d'incidence

  • Incidence faible 😌
  • Incidence moyenne 😲
  • Incidence forte 😱


def picker
@picker = Communication::File::Picker.new(
objects: @files,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

est-ce-qu'il faudrait pas simplement que les pickers se basent sur l'université en paramètre? je trouve que ça allège

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

à la place de @files ? Je comprends pas.

Comment thread app/javascript/apps/picker/components/Parameters.vue Outdated
Comment thread app/javascript/apps/picker/Picker.vue Outdated
Comment on lines +62 to +67
if (xhr.readyState == 4 && xhr.status == 200) {
this.data = JSON.parse(xhr.responseText);
this.parameters = this.data.parameters;
this.pagination = this.data.pagination;
this.results = this.data.results;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ça manque de la gestion d'erreurs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oui !

Comment on lines +3 to +4
json.results do
json.list @picker.results do |file|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pourquoi pas juste faire json.results @picker.results do |file|

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

il va y avoir des paramètres liés à la grille des résultats

Comment thread app/javascript/apps/picker/components/Pagination.vue Outdated
@arnaudlevy

Copy link
Copy Markdown
Member Author

Tu as raison ! Mais à cette étape il faut vérifier l'archi

arnaudlevy and others added 3 commits July 17, 2026 12:17
Co-authored-by: Sébastien Gaya <sebastien.gaya@gmail.com>
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