-
Notifications
You must be signed in to change notification settings - Fork 8
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
Change display project info depending on the user role #1440
Conversation
This reverts commit c39a218.
Codecov Report
@@ Coverage Diff @@
## dev #1440 +/- ##
==========================================
+ Coverage 89.40% 89.42% +0.02%
==========================================
Files 29 29
Lines 4305 4314 +9
==========================================
+ Hits 3849 3858 +9
Misses 456 456
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no changes in the code, only in the tests. Maybe there's a commit that hasn't been pushed?
We also need to have a new test to check that the unit is displayed and not the name, atm it seems like we only have a check for the name if it's unit users etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but have a few suggested changes that may require test changes too.
Also add a sprintlog row
@valyo Can you rebase / update branch as well first? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to change the creator information in UserProjects
endpoint as well, line 448 in the same file you've changed in.
The dds project info display
command works now though 👍🏻
But dds ls
and dds project ls
displays the name of the creator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a few new things during testing. Could you also add tests for this so we can make sure that it works for deleted users as well?
Co-authored-by: Ina Odén Österbo <[email protected]>
@valyo Could you add the tests so that we can catch issues with deleted users? |
Or would you like me to create a new task for adding tests for this? |
it doesn't matter for me if we have a new task or not |
Pro for adding tests now: we have tests to catch potential issues, we're more thorough |
@valyo Lets skip the tests now. When the tests have passed the current run I can merge and we can start prepping a release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@valyo If and when these checks pass, you can merge the PR. |
Before submitting this PR
dds project info display
What type of change(s) does the PR contain?
Checklist
master
branchActions / Scans
Run
black .
locally to execute formatting.Run
npx prettier --write .
locally to execute formatting.