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

Fix homepage user statistics result missing filter by user #7189

Merged
merged 1 commit into from
Dec 5, 2021

Conversation

zhongjiajie
Copy link
Member

@zhongjiajie zhongjiajie commented Dec 5, 2021

For now when we create new user, it would see homepage
statisic info as admin user like, cause projectCodeArray
would not filter when we render sql. So I add prefix condition
to handle this situation.

fix #7182

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (2.0.1-prepare@0b376f7). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##             2.0.1-prepare    #7189   +/-   ##
================================================
  Coverage                 ?   32.10%           
  Complexity               ?     1569           
================================================
  Files                    ?      433           
  Lines                    ?    14496           
  Branches                 ?     1440           
================================================
  Hits                     ?     4654           
  Misses                   ?     9383           
  Partials                 ?      459           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b376f7...6df45dd. Read the comment docs.

For now when we create new user, it would see homepage
statisic info as admin user like, cause `projectCodeArray`
would not filter when we render sql. So I add prefix condition
to handle this situation.

fix apache#7182
@zhongjiajie
Copy link
Member Author

cc: @lenboo

Copy link
Contributor

@lenboo lenboo left a comment

Choose a reason for hiding this comment

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

+1

@lenboo lenboo merged commit 0a44a47 into apache:2.0.1-prepare Dec 5, 2021
@sonarcloud
Copy link

sonarcloud bot commented Dec 5, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug E 6 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 78 Code Smells

15.3% 15.3% Coverage
1.8% 1.8% Duplication

@zhongjiajie zhongjiajie deleted the bug-homepage-user branch December 6, 2021 09:48
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.

3 participants