higress icon indicating copy to clipboard operation
higress copied to clipboard

[frontend-gray] 重构业务逻辑,对于微前端和多版本支持更加友好

Open heimanba opened this issue 7 months ago • 3 comments
trafficstars

Ⅰ. Describe what this PR did

重构业务逻辑,重点支持微前端的能力,按照比例灰度,以及全链路灰度串联

Ⅱ. Does this pull request fix one issue?

  • 设置一个随机的客户端的cookie 黏贴,并且通过hash,实现按照比例灰度
  • 按照比例灰度的key值通过uniqueGrayTag可以自定义
  • skippedPaths 替换 skippedPathPrefixes ,支持glob语法
  • indexPaths 替换 includePathPrefixes ,支持glob语法
  • cookie存储过期时间默认为1年,默认不需要过期

heimanba avatar Apr 02 '25 12:04 heimanba

请先解决冲突。

CH3CHO avatar Apr 02 '25 12:04 CH3CHO

请先解决冲突。

已解决

heimanba avatar Apr 03 '25 01:04 heimanba

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 43.73%. Comparing base (ef31e09) to head (cb77971). Report is 429 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2011      +/-   ##
==========================================
+ Coverage   35.91%   43.73%   +7.82%     
==========================================
  Files          69       79      +10     
  Lines       11576    12728    +1152     
==========================================
+ Hits         4157     5567    +1410     
+ Misses       7104     6815     -289     
- Partials      315      346      +31     

see 75 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Apr 03 '25 01:04 codecov-commenter