fix(ApiWeb): set compile-time variable for stop_events_route#990
fix(ApiWeb): set compile-time variable for stop_events_route#990runkelcorey merged 5 commits intomasterfrom
Conversation
|
question: is the idea that we want to be able to set the application environment variable at runtime to enable / disable the feature, not just at compile time? If so, then the use of |
Yes. For example, I would like
Are the environment variables not available to the GH Action task builds the application? |
There are environment variables available to the GH Action task, but those are different from the environment variables available in the container. We could of course manually keep them in sync, but they're not actually the same thing. |
|
@lemald how about this? let all the modules compile, and expose |
Hmm, this is better but I still don't love it... unfortunately because of the compile-time nature of a lot of the stuff involved via macros it's a little bit hard to make a good feature flag for it. Let me sleep on this and revisit tomorrow morning. |
lemald
left a comment
There was a problem hiding this comment.
I think this is the best approach we're likely to get. Let's try to get the remaining work out the door relatively promptly so that prod isn't in this state for long.
|
@lemald I spent a good chunk of yesterday trying to find a better solution but...compiled languages + if-else macros, man! this approach seemed the least risky |


Summary of changes
stop_eventsas experimentalBackground
Asana Ticket: 📸↩︎ construct database query (ApiWeb.StopEventController + ApiWeb.StopEventView.location + router)
#987 failed to deploy to
devanddev-blue. Splunk showeddevcompiled withdevas MIX_ENV but it actually usesPRODHow were these changes validated?
dev-green