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
The application doesn't pick up changes to profiles because it uses the state of the profiles file at the time the app is launched (the state is loaded into config).
The simplest solution is to instead store the location of the profiles file and reload this file every time that profiles are needed. This is slower, but it allows us to keep profiles in an easily editable format (versus storing profiles in the database), and still gives us fresh profile data on every call.
More specifically, we currently store profiles in config.BLACKFISH_PROFILES as BlackfishProfiles. Everywhere that we currently use config.BLACKFISH_PROFILES, we need to instead store the profile path to config.BLACKFISH_PROFILE and run:
The application doesn't pick up changes to profiles because it uses the state of the profiles file at the time the app is launched (the state is loaded into
config
).The simplest solution is to instead store the location of the profiles file and reload this file every time that profiles are needed. This is slower, but it allows us to keep profiles in an easily editable format (versus storing profiles in the database), and still gives us fresh profile data on every call.
More specifically, we currently store profiles in
config.BLACKFISH_PROFILES
asBlackfishProfile
s. Everywhere that we currently useconfig.BLACKFISH_PROFILES
, we need to instead store the profile path toconfig.BLACKFISH_PROFILE
and run:every time that we need a profile.
The text was updated successfully, but these errors were encountered: