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

Fix/date search #8

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Fix/date search #8

wants to merge 18 commits into from

Conversation

djkwagala
Copy link

No description provided.

}

export default class SearchContainer extends Component<ContainerProps, ContainerState> {
private dataSourceHelper: DataSourceHelper;
private navigationHandler: object;
private connections: object[];
Copy link

Choose a reason for hiding this comment

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

I suggest initializing connections array upon declaration like private connections: object[] = [] to get rid of line 54

if (this.state.alertMessage) {
this.setState({ alertMessage: "" });
}
} else if (searchNode.value) {
Copy link

Choose a reason for hiding this comment

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

searchNode is HTMLInputElement | undefined i recommend to change to else if (searchNode && searchNode.value) {

private widgetDOM: HTMLElement;
private searchByDate: boolean;
Copy link

Choose a reason for hiding this comment

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

searchByDate has no initializer and is not definitely assigned in the constructor i suggest you assign it an initial value
private searchByDate = false;

}

export default class SearchContainer extends Component<ContainerProps, ContainerState> {
private dataSourceHelper: DataSourceHelper;
private navigationHandler: object;
private connections: object[];
private widgetDOM: HTMLElement;
Copy link

Choose a reason for hiding this comment

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

widgetDOM has no initializer and is not definitely assigned in the constructor i suggest you assign it an initial value
or make it optional and same applies to dataSourceHelper

@@ -245,17 +245,36 @@ export default class SearchContainer extends Component<ContainerProps, Container
});
}

private getEntityAttribute = (attributePath) => {
Copy link

Choose a reason for hiding this comment

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

Param attributePath must have a data type

@codecov-io
Copy link

codecov-io commented Jun 8, 2018

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   86.75%   86.75%           
=======================================
  Files          12       12           
  Lines         468      468           
  Branches      119      119           
=======================================
  Hits          406      406           
  Misses         62       62

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de7f8cd...5813149. Read the comment docs.

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.

4 participants