Skip to content

don't show no files yet when mask is in place, fixes #13141 - #13154

Merged
DeepDiver1975 merged 2 commits into
masterfrom
fix13141
Jan 12, 2015
Merged

DeepDiver1975 merged 2 commits into
masterfrom
fix13141

Conversation

@butonic

@butonic butonic commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

@butonic butonic added this to the ownCloud 8.0 Showstoppers milestone Jan 7, 2015
@nickvergessen

Copy link
Copy Markdown
Contributor

👍 resolves the described flickering

@PVince81

PVince81 commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

Would be good to have a JS unit test for this part.
One way to test it is to call FileList.reload() but not return any data, letting the call linger.
Then call whichever code part is calling "hideXXXX" (the super long method name) and check if the wanted elements are visible or not (check for the "hidden" class)

@PVince81

PVince81 commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

Does it mean that something is called setFilter() with an empty value initially before the data is loaded ? It seems only setFilter() calls it.

Anyway, if that's the right way, the unit test could then just call setFilter() with nothing then.

@PVince81

PVince81 commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

Also seem unit tests are missing in general for hideIrrelevantUIWhenNoFilesMatch, but you were probably under pressure to release it 😄
Would you mind adding them now ? That function has several code/logic paths that need to be covered.

Thanks.

@ghost

ghost commented Jan 7, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/5990/
👍 Test PASSed. 👍

@jancborchardt

Copy link
Copy Markdown
Contributor

This fixes the issue for me 👍 from my side but please check @PVince81's remarks.

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.0-current, ownCloud 8.0 Showstoppers Jan 8, 2015
@MorrisJobke

Copy link
Copy Markdown
Contributor

👍

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Jan 9, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6135/
👍 Test PASSed. 👍

@jancborchardt

Copy link
Copy Markdown
Contributor

@PVince81 do the tests look ok then?

@PVince81

PVince81 commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

The tests look good. You might want to remove the commented out code though 👍

DeepDiver1975 added a commit that referenced this pull request Jan 12, 2015
don't show no files yet when mask is in place, fixes #13141
@DeepDiver1975
DeepDiver1975 merged commit d20a1bb into master Jan 12, 2015
@DeepDiver1975
DeepDiver1975 deleted the fix13141 branch January 12, 2015 21:48
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial load shows »No files yet« in the background for a short time

7 participants