-
Notifications
You must be signed in to change notification settings - Fork 7
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
CSS-4739 Removes the dashboard resource. #996
CSS-4739 Removes the dashboard resource. #996
Conversation
JIMM will no longer be serving the dashboard files since we have a juju dashboard charm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I had a look at the integration tests to see whether any mention of the dashboard needed to be removed from there, but doesn't seem like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question.
@@ -40,126 +32,8 @@ func Handler(ctx context.Context, loc string, publicDNSname string) http.Handler | |||
} | |||
if u != nil && u.IsAbs() { | |||
mux.Handle(dashboardPath, http.RedirectHandler(loc, http.StatusPermanentRedirect)) | |||
return mux | |||
} else { | |||
zapctx.Warn(ctx, "not redirecting to the dashboard", zap.String("dashboard_location", loc)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we don't serve local files, what happens when we get a relative path? It seems we do nothing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a lot is removed, I'm gonna say yes but not 100% if all is removed
Description
JIMM will no longer be serving the dashboard files since we have a juju dashboard charm that serves the dashboard. The other alternative is for JIMM to redirect the user to the location that serves the dashboard.
Engineering checklist
Check only items that apply
Test instructions
Notes for code reviewers