-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avo team & user view don't work in production environment #1371
Comments
I also have this issue |
Changing time_zone in
|
@adrianthedev can you offer any advice here? I'm not sure why the bullet_train/app/avo/resources/team.rb Line 18 in df1438f
bullet_train/app/avo/resources/user.rb Line 18 in df1438f
We're using the resources you defined in #796 Or maybe this is an |
@Paul-Bob can you please help with this issue? |
Just pushed this PR which includes a fix for this issue. |
Thank you @Paul-Bob and @adrianthedev! I really appreciate the quick response on this. 🙇 |
There is currently an issue with the team and user view of the avo dashboard in production:
The issue is, that in these views, a select_field (from avo) is used to display a time_zone value. The select_field uses
options.invert[value]
.In the User and Team model, these
options
get fed byview_context.time_zone_options_for_select(Avo::Current.user.time_zone, nil, ActiveSupport::TimeZone)
, which returns aActiveSupport::SafeBuffer(String)
. This class doesn't implement aninvert
method.In the development environment this works, because the
colorize
gem gets included, which implements this method for the String class. But in production, this gem/method is missing.The text was updated successfully, but these errors were encountered: