Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【WIP】fix: 修复【指标不在最后一级customValueOrder】+ 【分组汇总】+【按汇总值排序】同时使用时,获取排序数据时为空 #2368

Closed
wants to merge 1 commit into from

Conversation

NoobNotN
Copy link
Collaborator

@NoobNotN NoobNotN commented Oct 13, 2023

👀 PR includes

🐛 Bugfix

  • Solve the issue and close #0

📝 Description

修复修复指标不在最后一级配置与分组汇总同时使用时,获取排序数据元为空。
原因:undefined 值作为汇总标记,不可过滤,需要判断当 key 为 undefined 字符串时手动赋值 undefined

🖼️ Screenshot

Before After
image image

🔗 Related issue link

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

@github-actions github-actions bot added the pr(fix) bug fix label Oct 13, 2023
@NoobNotN NoobNotN changed the title fix: 修复指标不在最后一级配置与分组汇总同时使用时,获取排序数据时为空 fix: 修复【指标不在最后一级customValueOrder】+ 【分组汇总】+【按汇总值排序】同时使用时,获取排序数据时为空 Oct 13, 2023
@vercel
Copy link

vercel bot commented Oct 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2023 9:10am


beforeEach(() => {
sheet = new PivotSheet(getContainer(), dataConfig, s2Options);
dataSet = new PivotDataSet(sheet);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这应该不是 Mock 的 PivotSheet 把, 为什么不直接用 sheet.dataSet, 而要重新赋值

sortParam,
};
const measureValues = getSortByMeasureValues(params);
expect(measureValues).toEqual([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expect(measureValues).toEqual([
expect(measureValues).toMatchInlineSnapshot()

@NoobNotN NoobNotN changed the title fix: 修复【指标不在最后一级customValueOrder】+ 【分组汇总】+【按汇总值排序】同时使用时,获取排序数据时为空 【WIP】fix: 修复【指标不在最后一级customValueOrder】+ 【分组汇总】+【按汇总值排序】同时使用时,获取排序数据时为空 Oct 13, 2023
@github-actions github-actions bot removed the pr(fix) bug fix label Oct 13, 2023
@NoobNotN NoobNotN closed this Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants