Page MenuHomePhabricator

Make Beta Codesearch tool the default
Closed, ResolvedPublic

Description

People still share the old link and every time I have to edit the url to change to the better site, because it's vastly more user-friendly and nice-looking. Please make https://codesearch-beta.wmcloud.org/ the default and redirect all the old links.

Event Timeline

I'm not really sure what the future of codesearch is with the whole GitLab discussion so I've mostly been holding off investing time into it until it's clearer.

On a technical level, the main TODOs are:

  • Get the performance on par with the current frontend. If it's not possible to do in the Rust/wasm codebase we have right now, we should just render the results server-side.
  • Integrate the beta frontend into the proxy, which would be a good excuse to rewrite the proxy in Rust
  • Ask for another round of testing before switching over

Change 804789 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/codesearch@master] [WIP] frontend: Rewrite codesearch-beta, make feature-complete, fix bugs

https://gerrit.wikimedia.org/r/804789

Change 804785 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/codesearch@master] frontend: Rewrite codesearch-beta, make feature-complete, fix bugs

https://gerrit.wikimedia.org/r/804785

Change 804789 abandoned by Krinkle:

[labs/codesearch@master] [WIP] frontend: Rewrite codesearch-beta, make feature-complete, fix bugs

Reason:

https://gerrit.wikimedia.org/r/804789

Change 804785 merged by jenkins-bot:

[labs/codesearch@master] frontend: Rewrite codesearch-beta, make feature-complete, fix bugs

https://gerrit.wikimedia.org/r/804785

The beta feels far more user-friendly than the old version, and is already being referenced.

At a glance, these are the only beta-related tasks:

The fourth is not a regression (the current version does not preserve anything when switching). Are any of the first three considered blockers?

I'm not really sure what the future of codesearch is with the whole GitLab discussion so I've mostly been holding off investing time into it until it's clearer.

FWIW, I don't think gitlab would fully replace codesearch. We still need to search in third party codes for deprecation and such.

Create new https://codesearch-backend.wmcloud.org/ webproxy, points to the same location as codesearch-old.

frontend: Switch to codesearch-backend.wmcloud.org hostname

Change 897393 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/tools/code-utils@master] wmf-config-wg-vars: Switch API query to codesearch-backend

https://gerrit.wikimedia.org/r/897393

Change 897393 merged by jenkins-bot:

[mediawiki/tools/code-utils@master] wmf-config-wg-vars: Switch API query to codesearch-backend

https://gerrit.wikimedia.org/r/897393

Change 897394 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/codesearch@master] frontend: Add /api/ compat redirect

https://gerrit.wikimedia.org/r/897394

Change 897394 merged by jenkins-bot:

[labs/codesearch@master] frontend: Add /api/ compat redirect

https://gerrit.wikimedia.org/r/897394

Mentioned in SAL (#wikimedia-cloud) [2023-03-13T01:12:44Z] <Krinkle> Change codesearch.wmcloud.org proxy from port 3002 (Hound UI) to 3003 (new Codesearch frontend), ref T263354

Krinkle claimed this task.
Krinkle triaged this task as Medium priority.

Change 898060 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/codesearch@master] frontend: Remove "β" marker from doc titles

https://gerrit.wikimedia.org/r/898060

Change 898060 merged by jenkins-bot:

[labs/codesearch@master] frontend: Remove "β" marker from doc titles

https://gerrit.wikimedia.org/r/898060