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

🎨 Study dispatcher messages improvements #4229

Merged

Conversation

elisabettai
Copy link
Collaborator

@elisabettai elisabettai commented May 11, 2023

What do these changes do?

When a non-logged in user try to access a template shared with everyone (but requiring log in) will now see a clearer and shorter message.
The login button has been made more prominent by giving it the "strong color" and by moving it to the first position (left-most button).
image

Related issue/s

How to test

In a local deploy, publish a template and share it with Everyone, then try to access it without being logged in.
Note: in the .env file, WEBSERVER_STUDIES_ACCESS_ENABLED needs to be 1

Notes

Also small frontend change at @odeimaiz.

DevOps Checklist

elisabettai and others added 23 commits September 22, 2022 17:16
…ntication_popup

Elisabettai traefik routes authentication popup
@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Merging #4229 (6de66c4) into master (57bba7e) will decrease coverage by 4.1%.
The diff coverage is 100.0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4229      +/-   ##
=========================================
- Coverage    83.8%   79.8%    -4.1%     
=========================================
  Files         976     399     -577     
  Lines       41981   20700   -21281     
  Branches      965     173     -792     
=========================================
- Hits        35221   16524   -18697     
+ Misses       6539    4127    -2412     
+ Partials      221      49     -172     
Flag Coverage Δ
integrationtests 63.7% <36.3%> (-5.2%) ⬇️
unittests 84.4% <100.0%> (+2.3%) ⬆️

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

Impacted Files Coverage Δ
...erver/src/simcore_service_webserver/projects/db.py 96.6% <ø> (+0.3%) ⬆️
...service_webserver/studies_dispatcher/_constants.py 100.0% <ø> (ø)
...rc/simcore_service_webserver/projects/_db_utils.py 97.0% <100.0%> (+<0.1%) ⬆️
...ce_webserver/studies_dispatcher/_studies_access.py 91.1% <100.0%> (+0.4%) ⬆️

... and 634 files with indirect coverage changes

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

I can give you more details tomorrow :-)

@pcrespov pcrespov added this to the Pastel de Nata milestone May 11, 2023
@elisabettai
Copy link
Collaborator Author

elisabettai commented May 16, 2023

@pcrespov, the tests of the study_dispatcher need to be updated, it is clear to me why the CI is failing, see here.

For test_access_to_forbidden_study it makes sense that to change the test, since now we expect a different error code, but I'm not sure this change is good for test_access_to_invalid_study.

@pcrespov
Copy link
Member

test_access_to_invalid_study

@elisabettai Let's check that tomorrow together

Copy link
Member

@odeimaiz odeimaiz left a comment

Choose a reason for hiding this comment

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

JS part lgtm

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

Nice

@elisabettai elisabettai force-pushed the study_dispatcher_messages branch from 35d9948 to 549bc81 Compare May 24, 2023 09:05
@elisabettai elisabettai reopened this May 26, 2023
@elisabettai elisabettai enabled auto-merge (squash) May 30, 2023 15:12
@codeclimate
Copy link

codeclimate bot commented May 30, 2023

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

View more on Code Climate.

@sonarqubecloud
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.0% 0.0% Duplication

@elisabettai elisabettai merged commit 46d1ecb into ITISFoundation:master May 30, 2023
@elisabettai elisabettai deleted the study_dispatcher_messages branch June 1, 2023 13:51
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 14, 2023
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:doc documentation, reporting, admin tasks a:frontend issue affecting the front-end (area group) a:webserver issue related to the webserver service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message when trying to open a non published template as anonymous user
7 participants