Skip to content

Conversation

Helias
Copy link
Member

@Helias Helias commented Jan 9, 2023

related of #1819

@Helias Helias requested a review from FrancescoBorzi January 9, 2023 17:19
@@ -10,4 +10,32 @@ export class SelectGossipService extends SelectService<GossipMenu> {
constructor(readonly queryService: MysqlQueryService, public handlerService: GossipHandlerService) {
super(queryService, handlerService, GOSSIP_MENU_TABLE, GOSSIP_MENU_ID, null, GOSSIP_MENU_SEARCH_FIELDS);
}

onSearch(): void {
console.log(this.queryForm.getRawValue().fields);
Copy link
Collaborator

Choose a reason for hiding this comment

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

console.log

this.rows = data;
}),
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't forget the tests for this

@@ -10,4 +10,32 @@ export class SelectGossipService extends SelectService<GossipMenu> {
constructor(readonly queryService: MysqlQueryService, public handlerService: GossipHandlerService) {
super(queryService, handlerService, GOSSIP_MENU_TABLE, GOSSIP_MENU_ID, null, GOSSIP_MENU_SEARCH_FIELDS);
}

onSearch(): void {
Copy link
Collaborator

Choose a reason for hiding this comment

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

more importantly, why overriding this method instead of just editing GOSSIP_MENU_SEARCH_FIELDS in gossip-menu.type.ts

@Helias Helias closed this Aug 1, 2023
@Helias Helias reopened this Aug 1, 2023
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