satellite/console: add feature flag for onboarding overview step pathway rendering

Change-Id: I2edfeb868e356b714c8d2535332713c1f64d35f9
This commit is contained in:
Malcolm Bouzi 2021-04-09 10:43:10 -04:00
parent 8f13dcacb9
commit 9591e75574
2 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,7 @@ type Config struct {
FileBrowserFlowDisabled bool `help:"indicates if file browser flow is disabled" default:"true"`
CSPEnabled bool `help:"indicates if Content Security Policy is enabled" devDefault:"false" releaseDefault:"true"`
LinksharingURL string `help:"url link for linksharing requests" default:"https://link.tardigradeshare.io"`
PathwayOverviewEnabled bool `help:"indicates if the overview onboarding step should render with pathways" default:"false"`
RateLimit web.IPRateLimiterConfig
@ -317,6 +318,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
CouponCodeUIEnabled bool
FileBrowserFlowDisabled bool
LinksharingURL string
PathwayOverviewEnabled bool
}
data.ExternalAddress = server.config.ExternalAddress
@ -337,6 +339,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
data.CouponCodeUIEnabled = server.config.CouponCodeUIEnabled
data.FileBrowserFlowDisabled = server.config.FileBrowserFlowDisabled
data.LinksharingURL = server.config.LinksharingURL
data.PathwayOverviewEnabled = server.config.PathwayOverviewEnabled
if server.templates.index == nil {
server.log.Error("index template is not set")

View File

@ -136,6 +136,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0
# names of partnered satellites
# console.partnered-satellite-names: US-Central-1,Europe-West-1,Asia-East-1
# indicates if the overview onboarding step should render with pathways
# console.pathway-overview-enabled: false
# url link to project limit increase request page
# console.project-limits-increase-request-url: https://support.tardigrade.io/hc/en-us/requests/new?ticket_form_id=360000683212