sapling/eden/fs/config
Wez Furlong 28f7b4a0b0 eden: show desktop notification for blob/tree fetch errors
Summary:
This commit causes a desktop notification to be shown if we generate
EIO or ETIMEDOUT responses via fuse; the prompt is intended to make it obvious
to the user that they need to connect to the VPN.

The commit by itself doesn't show a notification, it allows configuring a
command that can be run to do something to show a notification.

The test plan includes one such configuration for our corp environment.

* It doesn't trigger for thrift-originated downloads (eg: prefetch), only for
  VFS operations through FUSE.
* Ideally we'd know exactly when we have a network related error in the store
  code and use that to trigger the notification.  However, we have a rather
  convoluted set of importers and fallbacks today, one of which is interpreting
  a generic response returned from a pipe, so it is not especially clear
  exactly where we should locate the logic

Reviewed By: chadaustin

Differential Revision: D17513364

fbshipit-source-id: 45134f3672679cb5580cb0c1bc12a0d6e38525ca
2020-02-10 08:28:49 -08:00
..
test add helper for setting default values in toml tables 2020-02-05 11:20:26 -08:00
CachedParsedFileMonitor.h Tidy up license headers 2019-10-11 05:28:23 -07:00
CheckoutConfig.cpp remove the legacy bind mount code from CheckoutConfig 2020-01-24 18:11:36 -08:00
CheckoutConfig.h remove the legacy bind mount code from CheckoutConfig 2020-01-24 18:11:36 -08:00
CMakeLists.txt clean up duplicate find_package(cpptoml) 2019-09-20 11:36:13 -07:00
ConfigSetting.h refactor EdenConfig to use private inheritance 2019-10-11 11:01:49 -07:00
eden_config.thrift Tidy up license headers 2019-10-11 05:28:23 -07:00
EdenConfig.cpp replace some uses of memset 2020-01-31 10:50:48 -08:00
EdenConfig.h eden: show desktop notification for blob/tree fetch errors 2020-02-10 08:28:49 -08:00
FieldConverter.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FieldConverter.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FileChangeMonitor.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FileChangeMonitor.h replace some uses of memset 2020-01-31 10:50:48 -08:00
ReloadableConfig.cpp refactor the EDEN_BUG() macro 2019-11-22 15:38:33 -08:00
ReloadableConfig.h optimize and simplify ReloadableConfig 2019-10-11 10:42:36 -07:00
TomlConfig.h add helper for setting default values in toml tables 2020-02-05 11:20:26 -08:00