Skip to content

codemod: add 'replace:' flag to frontend search

Administrator requested to merge rvt-codemod-mvp-part1 into master

Created by: rvantonder

Summary:

  • 'replace:' qualifier to search. Active when localStorage.codemodExp=true;location.reload() is set.
  • Uses GQL API and SearchParams/Result. A replace operation can be seen a kind of "diff search". This has only a small effect on the current GQL schema. This is great, since the change is small and allows us to revisit alternative streaming or cursor-based streaming that's under discussion for search.

Example:

Screen Shot 2019-06-17 at 5 10 47 PM

Test plan:

  • Sane match/replace/file filter patterns
  • Tested manually: Gate codemod GQL queries with localStorage.codemodExp=true;location.reload()

Merge request reports

Loading