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

Database rollup calculation misses null values #10843

Closed
3 tasks done
HibernalGlow opened this issue Apr 2, 2024 · 17 comments
Closed
3 tasks done

Database rollup calculation misses null values #10843

HibernalGlow opened this issue Apr 2, 2024 · 17 comments
Assignees
Labels
Milestone

Comments

@HibernalGlow
Copy link

HibernalGlow commented Apr 2, 2024

数据库汇总关联列已完成占比与真实数据不一致

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

数据库汇总关联列已完成占比与真实数据不一致

Expected result

同步

Screenshot or screen recording presentation

PixPin_2024-04-02_23-05-22.gif

Version environment

- Version: 3.0.6
- Operating System: win11
- Browser (if used):

Log file

system-log (1).zip

More information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

可以复现

@88250
Copy link
Member

88250 commented Apr 2, 2024

可以复现

可否帮忙导出一个数据集以便测试,谢谢。

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

可以复现

可否帮忙导出一个数据集以便测试,谢谢。

好奇怪,这个数值只要从100变成了50之后就再也变不回100了,应该导出也没用

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

大概就是这样:

image

image

@88250
Copy link
Member

88250 commented Apr 2, 2024

我这里测试似乎正常:

issue.webm

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

又复现了,我试试看导出行不行

image

@88250
Copy link
Member

88250 commented Apr 2, 2024

这种情况下 F5 刷新会恢复正常么?

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

高考数据库.sy.zip

刷新也不会恢复

@88250
Copy link
Member

88250 commented Apr 2, 2024

导入后能够重现了,但是点击以后会恢复,稍后排查,感谢。

@TCOTC
Copy link
Contributor

TCOTC commented Apr 2, 2024

@AvoidantPerDis 你的数据库中「进度」列的模板代码可以分享一下吗?那个进度条很棒的亚子

@88250 88250 self-assigned this Apr 2, 2024
@HibernalGlow
Copy link
Author

@AvoidantPerDis 你的数据库中「进度」列的模板代码可以分享一下吗?那个进度条很棒的亚子

我从链滴毛的https://ld246.com/article/1708829169284

@88250 88250 added the Bug label Apr 3, 2024
@88250 88250 added this to the 3.0.7 milestone Apr 3, 2024
@88250 88250 changed the title 数据库汇总关联列已完成占比与真实数据不一致 Database rollup calculation misses null values Apr 3, 2024
@88250 88250 closed this as completed Apr 3, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Apr 3, 2024

你的数据库中「进度」列的模板代码可以分享一下吗?那个进度条很棒的亚子

我从链滴毛的https://ld246.com/article/1708829169284

感谢 @AvoidantPerDis

.action{$a:= index . "考点进度" }
.action{$b:= 100 }
.action{$c:= mul $a 100}
.action{$d:= div $c $b}
<span style="background-color: rgba(175,184,193,0.2); width: 100%; display: inline-block;height: 12px;border-radius: 6px;align-self: center;overflow: hidden;">
    <span style="text-align: right; font-size: 12px; width: .action{$d}%; background-color: rgb(45,164,78); display: inline-block;height: inherit;vertical-align: top;"></span>
</span>

@HibernalGlow
Copy link
Author

你的数据库中「进度」列的模板代码可以分享一下吗?那个进度条很棒的亚子

我从链滴毛的https://ld246.com/article/1708829169284

感谢 @AvoidantPerDis

.action{$a:= index . "考点进度" }
.action{$b:= 100 }
.action{$c:= mul $a 100}
.action{$d:= div $c $b}
<span style="background-color: rgba(175,184,193,0.2); width: 100%; display: inline-block;height: 12px;border-radius: 6px;align-self: center;overflow: hidden;">
    <span style="text-align: right; font-size: 12px; width: .action{$d}%; background-color: rgb(45,164,78); display: inline-block;height: inherit;vertical-align: top;"></span>
</span>

能写个渐变色吗?我小白

@TCOTC
Copy link
Contributor

TCOTC commented Apr 3, 2024

能写个渐变色吗?我小白

@AvoidantPerDis 你想怎样渐变?

@HibernalGlow
Copy link
Author

能写个渐变色吗?我小白

@AvoidantPerDis 你想怎样渐变?

跟热力图那样不同程度不同深浅的绿色

@TCOTC
Copy link
Contributor

TCOTC commented Apr 3, 2024

能写个渐变色吗?我小白

你想怎样渐变?

跟热力图那样不同程度不同深浅的绿色

@AvoidantPerDis 这种吗,"考点进度"的数值越接近100,进度条就越绿:

你可以试试看

.action{$a:= index . "考点进度" }
.action{$b:= 100 }
.action{$c:= mul $a 100}
.action{$d:= div $c $b}
.action{$e:= addf (mulf (divf $d 100) 0.8) 0.2}
<span style="background-color: rgba(175,184,193,0.2); width: 100%; display: inline-block;height: 12px;border-radius: 6px;align-self: center;overflow: hidden;">
    <span style="text-align: right; font-size: 12px; width: .action{$d}%; background-color: rgba(45,164,78,.action{$e}); display: inline-block;height: inherit;vertical-align: top;"></span>
</span>

@HibernalGlow
Copy link
Author

能写个渐变色吗?我小白

你想怎样渐变?

跟热力图那样不同程度不同深浅的绿色

@AvoidantPerDis 这种吗,"考点进度"的数值越接近100,进度条就越绿:

你可以试试看

.action{$a:= index . "考点进度" }
.action{$b:= 100 }
.action{$c:= mul $a 100}
.action{$d:= div $c $b}
.action{$e:= addf (mulf (divf $d 100) 0.8) 0.2}
<span style="background-color: rgba(175,184,193,0.2); width: 100%; display: inline-block;height: 12px;border-radius: 6px;align-self: center;overflow: hidden;">
    <span style="text-align: right; font-size: 12px; width: .action{$d}%; background-color: rgba(45,164,78,.action{$e}); display: inline-block;height: inherit;vertical-align: top;"></span>
</span>

有效的谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants