Created 'remote' section
ClosedPublic

Authored by renatoo on Oct 23 2017, 1:47 PM.

Details

Summary

Group all network related urls into the 'remote' section, to make it
clear to the user what is access through network or not

Depends on D8332
Depends on D8348

Test Plan

From any kde app try to open/save a file.
It should show a new file dialog with network urls under 'remote' section

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
There are a very large number of changes, so older changes are hidden. Show Older Changes
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 23 2017, 1:47 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
renatoo edited the test plan for this revision. (Show Details)Oct 23 2017, 1:48 PM
renatoo updated this revision to Diff 21229.Oct 24 2017, 11:12 AM

Updated parent branch

mlaurent added inline comments.
src/filewidgets/kfileplacesitem.cpp
166

!= QLatin1String(":local")

renatoo updated this revision to Diff 21238.Oct 24 2017, 1:37 PM

Used QLatin1String for static strings

renatoo marked an inline comment as done.Oct 24 2017, 1:37 PM

+1 for me :) But I am not the maintainer :)

renatoo updated this revision to Diff 21297.Oct 25 2017, 11:24 AM

Updated parent branch

renatoo updated this revision to Diff 21585.Oct 30 2017, 6:33 PM

Updated parent branch

+1 for the idea! Needs more screenshots. :)

renatoo updated this revision to Diff 21623.Oct 31 2017, 11:38 AM

Updated parent branch

renatoo updated this revision to Diff 21649.Oct 31 2017, 3:27 PM

Updated parent branch

mwolff added a subscriber: mwolff.Nov 1 2017, 10:16 AM

lgtm overall. but I wonder about the naming choice. "Shared" is confusing, to me personally at least. Why not call it "Remote" or "Network"? The reasoning is that "shared" for me is only LAN/WLAN shared stuff, while "remote://" allows arbitrary remote links. I use it to connect via (S)FTP to machines on the internet e.g.

lgtm overall. but I wonder about the naming choice. "Shared" is confusing, to me personally at least. Why not call it "Remote" or "Network"? The reasoning is that "shared" for me is only LAN/WLAN shared stuff, while "remote://" allows arbitrary remote links. I use it to connect via (S)FTP to machines on the internet e.g.

+1

lgtm overall. but I wonder about the naming choice. "Shared" is confusing, to me personally at least. Why not call it "Remote" or "Network"? The reasoning is that "shared" for me is only LAN/WLAN shared stuff, while "remote://" allows arbitrary remote links. I use it to connect via (S)FTP to machines on the internet e.g.

I first thought of using "Network" but this is already used as label for "remote://" url. "Remote" can be a option since it is not used yet. But "Shared" came from MacOS images posted in another review, looks like is is used by "Finder".

Well, but if we use Network for remote:// already, then the group should also have this label, no? I don't see an issue with this, really. On the contrary - maybe we could in the future remove the remote:// link and let the category header react to a click, such that it will show you e.g. all remote devices. That would remove the duplication then.

But thinking 5s more about it, I personally would say that using "Remote" for the category would be OK for now.

renatoo updated this revision to Diff 21693.EditedNov 1 2017, 12:56 PM

Renamed section from 'shared' to 'remote'

renatoo retitled this revision from Created 'shared' section to Created 'remote' section.Nov 1 2017, 12:57 PM
renatoo edited the summary of this revision. (Show Details)
renatoo edited the test plan for this revision. (Show Details)

Well, but if we use Network for remote:// already, then the group should also have this label, no? I don't see an issue with this, really. On the contrary - maybe we could in the future remove the remote:// link and let the category header react to a click, such that it will show you e.g. all remote devices. That would remove the duplication then.

I think duplicate

+1 for the idea! Needs more screenshots. :)

screenshot added

+1 on Remote.

We really need to remove the duplicated Places test that's the header for the whole widget, though.

renatoo updated this revision to Diff 21694.Nov 1 2017, 1:25 PM

Created unit test for remote ulrs

mwolff added inline comments.Nov 1 2017, 1:30 PM
autotests/kfileplacesmodeltest.cpp
785

please add URLs for the following schemas, too:

smb
sftp
fish
webdav

src/filewidgets/kfileplacesitem_p.h
47–52

this should probably also be called RemoteType now, no?

renatoo updated this revision to Diff 21697.Nov 1 2017, 1:42 PM

Added more test cases
Renamed enum to match group name

mwolff accepted this revision.Nov 1 2017, 1:50 PM

lgtm, but please wait a bit, maybe someone else wants to chime in?

This revision is now accepted and ready to land.Nov 1 2017, 1:50 PM

Can you add "Depends on DXXXX" for each other patch that this requires?

ngraham accepted this revision.Nov 1 2017, 1:56 PM

Lovely. Looks good to me, too!

renatoo updated this revision to Diff 21757.Nov 2 2017, 11:38 AM

Fixed code style

renatoo updated this revision to Diff 21760.Nov 2 2017, 11:44 AM

Updated parent branch

mlaurent accepted this revision.Nov 2 2017, 1:24 PM

Seems good for me

renatoo updated this revision to Diff 21809.Nov 2 2017, 8:36 PM

Updated parent branch

dfaure requested changes to this revision.Nov 5 2017, 9:19 PM
dfaure added a subscriber: dfaure.
dfaure added inline comments.
autotests/kfileplacesmodeltest.cpp
804

typo: correct

812

typo: URL
typo: *in* the

819

typo: URL

src/filewidgets/kfileplacesitem_p.h
47–52

If the actual numbers don't matter (as shown by this commit), why do we even number these explicitly? I would just remove all the =0, =1, =2... values.
It will make the diff smaller in the next such commit ;)

This revision now requires changes to proceed.Nov 5 2017, 9:19 PM
renatoo updated this revision to Diff 21934.Nov 5 2017, 9:49 PM
renatoo marked 4 inline comments as done.

Fixed typos

renatoo marked 2 inline comments as done.Nov 5 2017, 9:52 PM
mlaurent accepted this revision.Nov 9 2017, 7:20 AM

Seems ok for me now.

renatoo updated this revision to Diff 22330.Nov 14 2017, 11:41 AM

Updated parent branch

dfaure accepted this revision.Nov 15 2017, 7:57 AM
This revision is now accepted and ready to land.Nov 15 2017, 7:57 AM
renatoo updated this revision to Diff 22394.Nov 15 2017, 1:40 PM

Updated parent branch

ngraham accepted this revision.Nov 15 2017, 2:24 PM
renatoo updated this revision to Diff 22454.Nov 16 2017, 1:39 PM

Updated parent branch

renatoo updated this revision to Diff 22765.Nov 22 2017, 5:57 PM

Updated parent branch

renatoo updated this revision to Diff 22777.Nov 22 2017, 7:15 PM

Updated from master

renatoo updated this revision to Diff 22812.Nov 23 2017, 11:53 AM

Parent branch updated

renatoo updated this revision to Diff 22950.Nov 26 2017, 1:24 PM

Updated parent branch

@renatoo Next! :-) Time to update this one, too.

renatoo updated this revision to Diff 22961.Nov 26 2017, 3:22 PM

Updated parent branch

Closed by commit R241:3e8eb3746b33: Created 'remote' section (authored by Renato Araujo Oliveira Filho <renato.araujo@kdab.com>, committed by ngraham). · Explain WhyNov 26 2017, 3:26 PM
This revision was automatically updated to reflect the committed changes.