You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
@marcindziadus Sounds mostly OK to me, with the exception of #424 which needs to be handled somehow - having the patterns in the config might make it trickier. The patterns could be sent with the index data or something, but it's a bigger change, needs some thinking.
That said, #426 is resolved and I think most of the effort here is probably in the GUI part, so an editor that saves to $REPOROOT/.stignore sounds like a good start?
I feel that ignore part should be in the config.xml (subject there is a UI to back that up), as it feels that that is the place where it should be (in the configuration section of the repo)?
Just encode the patterns with base64 to make it XML friendly.
So quoting having the patterns in the config might make it trickier. - what's so tricky about it?
Is there any reason you'd go with .stignore over something which is part of the config?
The issues I see are more around syncing patterns between nodes. Currently, there's a file (or a bunch of files) and the behavior is well defined. As for the GUI, where exactly it saves the patterns shouldn't matter.
Well, as far as I understand he is not suggesting to implement syncing patterns between nodes here.
He is just suggesting making an editor for the web UI?
And while he's at it, I think it'd be nice to scrap .stignore in favor of the ignores being part of the config now that we can do that (since we support **)
We can do that, but then we must also implement the syncing part. Currently, a trivial way to implement synced .stignores is to have the ignores in a file called "global-ignores" or something and let .stignores be a symlink to it. Maybe noone does that apart from me, but we break that possibility if we remove the file.
Anyway, I don't see the question of where exactly we store the patterns affecting the GUI implementation much. Whichever way we go, the code will dump a slice of strings somewhere and hopefully get it back again. :)
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Aug 11, 2014
Yep.
calmh commentedon Aug 26, 2014
@marcindziadus Sounds mostly OK to me, with the exception of #424 which needs to be handled somehow - having the patterns in the config might make it trickier. The patterns could be sent with the index data or something, but it's a bigger change, needs some thinking.
That said, #426 is resolved and I think most of the effort here is probably in the GUI part, so an editor that saves to $REPOROOT/.stignore sounds like a good start?
AudriusButkevicius commentedon Aug 26, 2014
I feel that ignore part should be in the config.xml (subject there is a UI to back that up), as it feels that that is the place where it should be (in the configuration section of the repo)?
Just encode the patterns with base64 to make it XML friendly.
calmh commentedon Aug 26, 2014
Please don't, human editable is a win. :)
<,>and&will be encoded by the XML serializer, but shouldn't be that common anyhow.AudriusButkevicius commentedon Aug 26, 2014
So quoting
having the patterns in the config might make it trickier.- what's so tricky about it?Is there any reason you'd go with
.stignoreover something which is part of the config?calmh commentedon Aug 26, 2014
The issues I see are more around syncing patterns between nodes. Currently, there's a file (or a bunch of files) and the behavior is well defined. As for the GUI, where exactly it saves the patterns shouldn't matter.
AudriusButkevicius commentedon Aug 26, 2014
Well, as far as I understand he is not suggesting to implement syncing patterns between nodes here.
He is just suggesting making an editor for the web UI?
And while he's at it, I think it'd be nice to scrap
.stignorein favor of the ignores being part of the config now that we can do that (since we support **)calmh commentedon Aug 26, 2014
We can do that, but then we must also implement the syncing part. Currently, a trivial way to implement synced .stignores is to have the ignores in a file called "global-ignores" or something and let .stignores be a symlink to it. Maybe noone does that apart from me, but we break that possibility if we remove the file.
calmh commentedon Aug 26, 2014
Anyway, I don't see the question of where exactly we store the patterns affecting the GUI implementation much. Whichever way we go, the code will dump a slice of strings somewhere and hopefully get it back again. :)
AudriusButkevicius commentedon Aug 26, 2014
If we solve #424, we solve your global-ignores symlink hack ;)
Add #include directive to .stignore (fixes syncthing#424)
Add #include directive to .stignore (fixes syncthing#424)
AudriusButkevicius commentedon Sep 22, 2014
Dear Github,
Why do I need to do your job?
Fixed by #721.
calmh commentedon Sep 23, 2014
@AudriusButkevicius Because you're not tagging your commit messages properly. :)