hound icon indicating copy to clipboard operation
hound copied to clipboard

Reload config on update

Open elliotpeele opened this issue 4 years ago • 12 comments

This PR adds automatic reloading of the configuration file when the file is written. It mostly focuses on updates to the repository list. Resolves #287

elliotpeele avatar Oct 16 '20 03:10 elliotpeele

Thank you for this PR! I'll look it over this weekend. Very excited about this one.

Just as a heads up, there's a pending PR to set up go modules in this repo, which might have implications for how you add fsnotify: https://github.com/hound-search/hound/pull/353

I'll prioritize merging that PR in so that it unblocks this PR, but you'll probably need to move fsnotify once it's merged.

salemhilal avatar Oct 16 '20 15:10 salemhilal

Hey @elliotpeele, thanks for being patient with us. #353 has been merged. Do you mind updating this PR to use go modules instead?

salemhilal avatar Oct 24 '20 19:10 salemhilal

I don't mind updating to use modules. BTW, I found an issue with the PR where over time, as the config gets updated, the indexes get removed. I haven't had time to work on a resolution yet though.

elliotpeele avatar Oct 24 '20 23:10 elliotpeele

Got it. I'll hold off on reviewing this until I hear more, just so I can prioritize clearing out some of the outstanding backlog.

salemhilal avatar Oct 25 '20 02:10 salemhilal

@salemhilal, I finally got back to this. Found why the indexes were getting deleted when the config updated and updated the PR.

elliotpeele avatar Nov 11 '20 05:11 elliotpeele

Thank you @elliotpeele! I'm a little swamped at the moment, but I haven't forgotten about this PR. I appreciate the update and will give it a closer look shortly.

salemhilal avatar Nov 17 '20 00:11 salemhilal

Hey! Is there any way in which I can help in getting this merged? I know only a little Go and I'm not at all familiar with Hound's codebase, but if it was rebased on top of head I can run this on our test deployment and report any issues!

kkom avatar Feb 13 '21 10:02 kkom

hey @kkom, I'm going to try and set aside some time to day to validate this PR. Thanks again (to everyone on this PR) for being patient.

salemhilal avatar Feb 15 '21 15:02 salemhilal

Thanks @salemhilal – let me know if any prolonged testing would help, happy to do it, as I'm just about to set up a POC deployment of Hound!

kkom avatar Feb 15 '21 22:02 kkom

I'm interested in picking this up if @elliotpeele does not.

jrarmstro avatar Apr 15 '21 23:04 jrarmstro

@jrarmstro I haven't had time to get back around to this. Feel free to pick it up.

elliotpeele avatar Apr 16 '21 00:04 elliotpeele

Are there any plans to revive this PR?

bm1549 avatar Jan 11 '23 20:01 bm1549