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

#75: Filter dropdown at Timeline page #76

Merged
merged 17 commits into from
Aug 29, 2017

Conversation

felixApplatix
Copy link

The filter dropdown can stay open upon click (#75).

Copy link
Contributor

@alexmt alexmt left a 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.

  1. 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)

  2. Click jobs tab and check filter dropdown

Actual result: dropdown contains 'My commits' item

@wokeGit
Copy link
Contributor

wokeGit commented Aug 29, 2017

@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) {
Copy link
Contributor

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;

Copy link
Author

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.

Copy link
Contributor

@alexmt alexmt left a 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) {
Copy link
Contributor

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

@felixApplatix felixApplatix merged commit 45ddade into argoproj:master Aug 29, 2017
wokeGit pushed a commit to wokeGit/argo that referenced this pull request Nov 20, 2017
* 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
wokeGit pushed a commit to wokeGit/argo that referenced this pull request Nov 21, 2017
* 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
wokeGit pushed a commit to wokeGit/argo that referenced this pull request Nov 22, 2017
* 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
icecoffee531 pushed a commit to icecoffee531/argo-workflows that referenced this pull request Jan 5, 2022
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

3 participants