Skip to content

Remove the npm_presenter_queries_tuning feature flag

David Fernandez requested to merge 338603-feature-flag-removal into master

🔧 Context

In #243780 (comment 649798873), we noticed that the npm presenter had a n+1 issue. It was looping on a set of npm packages and for each package it would load the dependencies object.

That presenter is used mainly by two "metadata" API endpoints. Those endpoints are used by npm commands such as $ npm install or $ npm view.

Being a heavily used package registry on gitlab.com, the n+1 removal is gated behind a feature flag.

The incremental rollout went well and we had the expected results: a reduction in SQL queries count.

It is now time to remove this feature flag.

🔬 What does this MR do?

  • Removes the npm_presenter_queries_tuning feature flag
  • Updates the related specs

📸 Screenshots or Screencasts (strongly suggested)

See !68275 (merged)

🔩 How to setup and validate locally (strongly suggested)

See !68275 (merged)

📐 Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] 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

Merge request reports