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

RI-112: [admin/companies] ajoute un composant de filtre au tableau des compagnies #168

Merged
merged 11 commits into from
Nov 22, 2021

Conversation

mathusha-sdv
Copy link
Contributor

@mathusha-sdv mathusha-sdv commented Nov 10, 2021

112

  • Filtrage sur le nom et la description de la compagnie
  • Ajout d'une route en back pour récupérer les compagnies avec critères

-- update
112
problème de pagination

@mathusha-sdv mathusha-sdv self-assigned this Nov 10, 2021
@mathusha-sdv mathusha-sdv added this to In progress in implicaction via automation Nov 10, 2021
Copy link
Member

@matthieuaudemard matthieuaudemard left a comment

Choose a reason for hiding this comment

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

Super boulot 👍 J'ai laissé quelques commentaires mais c'est vraiment top 🍾 .

Est-ce que tu pourrais ajouter plusieurs compagnies pour vérifier que la pagination fonctionne bien stp ?

D'autre part, c'est peut être préférable de lancer la recherche quand l'utilisateur appuie sur enter parce que ça lance une requête à chaque caractère entré ... potentiellement ça peut faire bcp .... perso ça arrive à mon chat de s'assoir sur mon clavier ce qui me laisse parfois des messages de centaines de caractères 🤣 imagine le truc ...

🛑 Parce qu'il faut bien râler un p'tit peu de temps en temps, fais gaffe aux noms de tes PR (déjà on est sur des compagnies et pas des jobs ...) et en suite la règle c'est : RI-*: [module/sous-module] verbe d'action conjugué + détails et pareil pour les commits/merge

implicaction automation moved this from In progress to Review in progress Nov 11, 2021
@matthieuaudemard matthieuaudemard changed the title RI-112: filtrage d'une offre RI-112: ajoute un composant de filtre au tableau des compagnies Nov 11, 2021
Comment on lines +1 to +8
import {EnumCodeLabelAbstract} from '../../shared/enums/enum-code-label-abstract.enum';
import {SortDirectionEnum} from '../../shared/enums/sort-direction.enum';

export enum CompanySortEnumCode {
NAME_ASC = 'NAME_ASC',
NAME_DESC = 'NAME_DESC'
}

Copy link
Member

Choose a reason for hiding this comment

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

Ce fichier ne me semble pas utilisé. A vérifier et si c'est le cas 🧹

Copy link
Contributor Author

@mathusha-sdv mathusha-sdv Nov 19, 2021

Choose a reason for hiding this comment

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

Il est utilisé pour le tri par nom de compagnie au niveau du CompaniesTableComponent :)

this.companyContextService
this.pageable.sortOrder = CompanySortEnum.NAME_ASC.sortDirection;
this.pageable.sortBy = CompanySortEnum.NAME_ASC.sortBy;
this.selectedOrderCode = CompanySortEnum.NAME_ASC.code;
Copy link
Member

Choose a reason for hiding this comment

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

Je vois bien que la valeur est affectée ici, mais aussi qu'elle ne sert à rien d'autre.

implicaction automation moved this from Review in progress to Reviewer approved Nov 22, 2021
@matthieuaudemard matthieuaudemard changed the title RI-112: ajoute un composant de filtre au tableau des compagnies RI-112: [admin/companies] ajoute un composant de filtre au tableau des compagnies Nov 22, 2021
@mathusha-sdv mathusha-sdv merged commit c22af2e into develop Nov 22, 2021
implicaction automation moved this from Reviewer approved to Done Nov 22, 2021
@mathusha-sdv mathusha-sdv deleted the RI-112 branch November 22, 2021 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants