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

[backend] Fix distribution widget by creator error (#9117) #9118

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

SouadHadjiat
Copy link
Member

@SouadHadjiat SouadHadjiat commented Nov 22, 2024

Proposed changes

  • filter out unresolved data (like the SYSTEM user) before testing user access on element

Related issues

Check the issue for repro steps

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case (coverage and e2e)
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

I think we might need to fix this issue differently at some point. Right now it will display the same data as for admin users, but it's missing all the data created by system users which I think we should display.

Sorry I didn't write any integration test for this, it would take a lot of time since audit logs resolver test doesn't even exist, and I would need to fill the database with data created by internal users (currently everything is created with admin)

@SouadHadjiat SouadHadjiat added the filigran team use to identify PR from the Filigran team label Nov 22, 2024
@SouadHadjiat SouadHadjiat marked this pull request as ready for review November 22, 2024 10:52
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.97%. Comparing base (402d6bc) to head (749ca1d).
Report is 10 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9118   +/-   ##
=======================================
  Coverage   64.97%   64.97%           
=======================================
  Files         623      623           
  Lines       59496    59496           
  Branches     6577     6579    +2     
=======================================
  Hits        38656    38656           
  Misses      20840    20840           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Member

@marieflorescontact marieflorescontact left a comment

Choose a reason for hiding this comment

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

locally tested ok 👌

@SouadHadjiat SouadHadjiat merged commit 0e8d34b into master Nov 25, 2024
6 checks passed
@SouadHadjiat SouadHadjiat deleted the issue/9117 branch November 25, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom dashboard history distribution widget by creator crashes for non admin users
2 participants