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

AuthorizationDefinition#editors: sort by name #280

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

skelz0r
Copy link
Member

@skelz0r skelz0r commented Jul 15, 2024

Better display on decision tree: easier to find entry when it is in a natural order

Better display on decision tree: easier to find entry when it is
in a natural order
@skelz0r skelz0r self-assigned this Jul 15, 2024
@@ -21,7 +21,7 @@ def self.all
def editors
available_forms.select { |form|
form.editor.present?
}.map(&:editor).uniq(&:id)
}.map(&:editor).uniq(&:id).sort_by(&:name)
Copy link
Contributor

Choose a reason for hiding this comment

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

J'ai l'impression que le ticket est un petit peu plus complexe que cela.
En console, aucun problème, c'est bien listé par :name, par contre en front end, ce n'est pas le cas malheureusement.

Capture d’écran 2024-07-16 à 09 32 25

Copy link
Member Author

Choose a reason for hiding this comment

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

Sur API Entreprise y'a 2 blocs c'est pour ça (check le code). Ça améliore le display, c'est pas 100% mieux mais c'est pas grave.

Btw c'est surtout pour API P

Copy link
Contributor

Choose a reason for hiding this comment

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

Sur Api-particulier ça donne ceci :
screencapture-localhost-3000-demandes-api-particulier-formulaires-2024-07-16-11_23_12

@evaspae, @SchweisguthN

@skelz0r
Copy link
Member Author

skelz0r commented Jul 16, 2024

tbh ici c'est 100% de l'amélioration je ne comprends pas pourquoi y'a un sujet 😅 (c'est limite un scout commit)

@Isalafont
Copy link
Contributor

C'est surtout pour se rappeler que dans nos cas de colonne le sort n'agit pas comme nous le souhaiterions et que l'on ne doit pas clore le ticket correspondant à cette partie du code 😄

@Isalafont Isalafont merged commit fe25df4 into develop Jul 16, 2024
14 checks passed
@Isalafont Isalafont deleted the features/sort-editor-by-name branch July 16, 2024 11:47
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