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: add more search fields #2090

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

feat: add more search fields #2090

wants to merge 4 commits into from

Conversation

Helias
Copy link
Member

@Helias Helias commented Jan 9, 2023

related of #1819

@@ -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.

None yet

2 participants