Skip to content

Add web_url/web_path on Gitlab::View::Presenter::Base

Markus Koller requested to merge web-url-in-presenters into master

What does this MR do?

This adds default web_url and web_path implementations and removes the definitions that are now redundant.

This is part of a larger refactor to centralize all model-to-URL-mapping logic in Gitlab::UrlBuilder.

#213550 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Markus Koller

Merge request reports