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

🐛 getters for user_role and email fixed #5041

Merged
merged 23 commits into from
Nov 21, 2023

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Nov 17, 2023

What do these changes do?

Fixed OSPARC_VARIABLE_USER_EMAIL and OSPARC_VARIABLE_USER_ROLE. Coroutines were not awaited.

  • fixed returned types form getter functions, now str type is enforced.
  • added tests for future regressions

Related issue/s

How to test

Dev Checklist

DevOps Checklist

@GitHK GitHK self-assigned this Nov 17, 2023
@GitHK GitHK added the a:director-v2 issue related with the director-v2 service label Nov 17, 2023
@GitHK GitHK added this to the 7peaks milestone Nov 17, 2023
@GitHK GitHK force-pushed the pr-osparc-fix-broken.coroutine branch from b3321b2 to 9a4beeb Compare November 17, 2023 07:10
…arc-simcore-forked into pr-osparc-fix-broken.coroutine
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #5041 (d9dd8d9) into master (3e3a25c) will increase coverage by 2.1%.
The diff coverage is 93.3%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #5041     +/-   ##
========================================
+ Coverage    85.8%   87.9%   +2.1%     
========================================
  Files        1254    1108    -146     
  Lines       51596   46699   -4897     
  Branches     1088     572    -516     
========================================
- Hits        44309   41089   -3220     
+ Misses       7047    5481   -1566     
+ Partials      240     129    -111     
Flag Coverage Δ
integrationtests 64.9% <71.4%> (-1.0%) ⬇️
unittests 85.5% <93.3%> (+1.8%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...2/modules/db/repositories/services_environments.py 100.0% <ø> (+37.5%) ⬆️
...rvice_director_v2/modules/db/repositories/users.py 100.0% <100.0%> (ø)
...ector_v2/modules/osparc_variables_substitutions.py 76.9% <100.0%> (+16.0%) ⬆️
...abase/src/simcore_postgres_database/utils_users.py 90.9% <77.7%> (+2.0%) ⬆️

... and 194 files with indirect coverage changes

@GitHK GitHK marked this pull request as ready for review November 17, 2023 08:16
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

Please check the linters. it says when you are not awaiting

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

Please change back the types in utils_users.py or explain why returning Any is a good idea.

@GitHK GitHK requested a review from sanderegg November 20, 2023 09:08
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

I still do not agree

@GitHK GitHK requested a review from sanderegg November 20, 2023 12:58
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

all good!

Copy link

codeclimate bot commented Nov 21, 2023

Code Climate has analyzed commit d9dd8d9 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@GitHK GitHK enabled auto-merge (squash) November 21, 2023 08:20
@GitHK GitHK merged commit d410cf7 into ITISFoundation:master Nov 21, 2023
55 checks passed
@GitHK GitHK deleted the pr-osparc-fix-broken.coroutine branch November 23, 2023 10:29
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Nov 23, 2023
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:director-v2 issue related with the director-v2 service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants