-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
#75: Filter dropdown at Timeline page #76
Conversation
…ged the prop name to 'revision'
…d of reassigned upon tab-change
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.
@felixApplatix , I see following bug.
-
Navigate to Timeline commits (https://dev.applatix.net/app/timeline;view=commit;days=1;date=1503989999;failed=true;delayed=true;succeeded=true;running=true;showMyOnly=false)
-
Click jobs tab and check filter dropdown
Actual result: dropdown contains 'My commits' item
@alexmt I can't reproduce described issue. I remember we had that bug some time ago but it was fixed. For me filters works correct. |
@@ -195,10 +195,14 @@ export class TimelineComponent implements HasLayoutSettings, LayoutSettings, OnI | |||
|
|||
private getFiltersByView(view) { | |||
this.currentView = view; | |||
let filters = []; | |||
if (this.toolbarFilters.data) { |
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.
Is this if required?
Isn't this enough?
this.toolbarFilters.data.length = 0;
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.
this.toolbarFilters.data was initialized as 'undefined' at the beginning, but since it's changed to [] so I will change according to your comment.
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.
Looks like I tested not latest state. Refetched branch and tested again. Looks good. Please address minor comments before merging.
@@ -195,10 +195,14 @@ export class TimelineComponent implements HasLayoutSettings, LayoutSettings, OnI | |||
|
|||
private getFiltersByView(view) { |
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.
Please rename to updateFiltersByView
since methods does not 'get' anything
…array by changing the length to 0
* Changing the filter value without re-assignment * Issue argoproj#40: Added fallback values for form in multiple-service-launch-panel * Issue argoproj#40: Added the template index for fallback val and changed the prop name to 'revision' * Issue argoproj#40: Passed in the template itself to provide the fallback val * axinternal/prod argoproj#444: Content of the filter is changed instead of reassigned upon tab-change * Removed comments * Removed white space * Issue argoproj#75: Changed the name of function and cleared the data array by changing the length to 0
* Changing the filter value without re-assignment * Issue argoproj#40: Added fallback values for form in multiple-service-launch-panel * Issue argoproj#40: Added the template index for fallback val and changed the prop name to 'revision' * Issue argoproj#40: Passed in the template itself to provide the fallback val * axinternal/prod argoproj#444: Content of the filter is changed instead of reassigned upon tab-change * Removed comments * Removed white space * Issue argoproj#75: Changed the name of function and cleared the data array by changing the length to 0
* Changing the filter value without re-assignment * Issue argoproj#40: Added fallback values for form in multiple-service-launch-panel * Issue argoproj#40: Added the template index for fallback val and changed the prop name to 'revision' * Issue argoproj#40: Passed in the template itself to provide the fallback val * axinternal/prod argoproj#444: Content of the filter is changed instead of reassigned upon tab-change * Removed comments * Removed white space * Issue argoproj#75: Changed the name of function and cleared the data array by changing the length to 0
The filter dropdown can stay open upon click (#75).