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

Bring filters back into url, clear session storage on apply empty filter #265

Merged
merged 2 commits into from
Nov 22, 2017

Conversation

RetGal
Copy link
Contributor

@RetGal RetGal commented Nov 21, 2017

Closes #245 & closes #250

@RetGal RetGal requested a review from polandy November 21, 2017 15:56
@@ -176,7 +174,7 @@ export class DeploymentsListComponent {
}

logViewerLink(deploymentId: number){
window.location.href = '/AMW_web/pages/logView.xhtml?deploymentId=' + deploymentId + '&filters=' + encodeURI(JSON.stringify(this.filtersInUrl))
Copy link
Member

Choose a reason for hiding this comment

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

I just added this, can't we keep it? See comment here: #247 (comment)

@@ -665,4 +652,12 @@ export class DeploymentsComponent implements OnInit {
this.isLoading = false;
}

private goTo(destination: string) {
Copy link
Member

Choose a reason for hiding this comment

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

goTo is a very generic name, can we call this updateFiltersInURL or something more descriptive?

@@ -332,7 +332,7 @@ describe('DeploymentsComponent (without query params)', () => {
expect(deploymentsComponent.filters.length).toEqual(2);
}));

it('should apply filters and add them to the sessionStorage on applyFilter',
it('should apply filters and add them to the sessionStorage on applyFilterss',
Copy link
Member

Choose a reason for hiding this comment

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

Typo

@yvespp yvespp added this to the Version 1.15.2 milestone Nov 22, 2017
@RetGal
Copy link
Contributor Author

RetGal commented Nov 22, 2017

@yvespp Done, I was not aware of #247 (comment)

@yvespp yvespp merged commit 31eac35 into release-1.15 Nov 22, 2017
@yvespp yvespp deleted the change_filters_in_url branch November 22, 2017 09:18
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