* refactor: external metadata api * fix comments * fix ut * fix fe lint * fix UT * fix UT (cherry picked from commit 6cd15d54a0)
6cd15d54a0