-
Notifications
You must be signed in to change notification settings - Fork 25
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
Filterable job result list #351
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good code. Only little comments here. Thank you!
import {OsmLangService} from '../../services/osm-lang.service'; | ||
import {GrailsBridgeService} from '../../services/grails-bridge.service'; | ||
|
||
describe('JobResultComponent', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests or remove unused .spec.ts file
job: this.selectedJob ? encodeURIComponent(this.selectedJob.id.toString(10)) : null, | ||
from: this.selectedJob && this.filter.dateTimeRange[0] && !isNaN(this.filter.dateTimeRange[0].valueOf()) ? | ||
encodeURIComponent(this.filter.dateTimeRange[0].toISOString()) : | ||
null, | ||
to: this.selectedJob && this.filter.dateTimeRange[1] && !isNaN(this.filter.dateTimeRange[1].valueOf()) ? | ||
encodeURIComponent(this.filter.dateTimeRange[1].toISOString()) : | ||
null, | ||
testAgent: this.selectedJob && this.filter.testAgent !== '' ? encodeURIComponent(this.filter.testAgent) : null, | ||
status: this.statusService.writeStatusAsQueryParam(this.filter.jobResultStatus, JobResultStatus, !!this.selectedJob), | ||
wptStatus: this.statusService.writeStatusAsQueryParam(this.filter.wptStatus, WptStatus, !!this.selectedJob), | ||
description: this.selectedJob && this.filter.description !== '' ? encodeURIComponent(this.filter.description) : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you refactor this? Some functions for the fields would be nice to understand was is happening with the blink of an eye.
import {JobResultDataService} from './job-result-data.service'; | ||
import {HttpClientTestingModule} from '@angular/common/http/testing'; | ||
|
||
describe('JobResultDataService', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add test or remove
import {StatusService} from './status.service'; | ||
import {SharedMocksModule} from '../../../testing/shared-mocks.module'; | ||
|
||
describe('StatusService', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests or remove
No description provided.