nit (non-blocking): a * Handlers is probably a leftover from when the middleware functions were moved out of app.go. The change requires more refactoring so let's also follow-up
func (h *Handlers) HandleArtifactRequest(w http.ResponseWriter, r *http.Request) bool {
0 of 1 checklist item completed
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
This issue's description does not seem to have a section for "Implementation Guide".
Please consider adding one, because it makes a big difference for contributors.
This section can be brief but must have clear technical guidance, like:
Hints on lines of code which may need changing
Hints on similar code/patterns that can be leveraged
Suggestions for test coverage
Ideas for breaking up the merge requests into iterative chunks
Currently all the receivers of type Handlers are defined as func (a *Handlers) funcName.
It is usually a common thing to name the receiver as a short hand of the type it's being attached to. So the ask here is to rename func (a *Handlers) which used to belong to type App, to func (h *Handlers) that belong to type Handlers.
@ngala well that was in the context of !765 (merged) which was merged 2+ years ago. I think things have changed by now so maybe it's not a big change anymore.