-
Notifications
You must be signed in to change notification settings - Fork 46
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
Only allow CI/CH within the DPY-MAS axis in LMR when the user have railway_undertaker role #10112
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10112 +/- ##
==========================================
+ Coverage 81.44% 81.51% +0.06%
==========================================
Files 1058 1059 +1
Lines 104286 104596 +310
Branches 722 722
==========================================
+ Hits 84940 85257 +317
+ Misses 19305 19298 -7
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
front/src/assets/operationStudies/ciChOperationalPointsOnDPYMAS.ts
Outdated
Show resolved
Hide resolved
9762cfc
to
10512cf
Compare
…ertaker profile Signed-off-by: nncluzu <[email protected]>
…heck Signed-off-by: nncluzu <[email protected]>
…the request Signed-off-by: nncluzu <[email protected]>
… with super user verification Signed-off-by: nncluzu <[email protected]>
10512cf
to
556db2a
Compare
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.
Code LGTM, I just need to test
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.
LGTM & tested
close #9582
To properly test the feature, follow these steps:
Objective
Steps to Switch User Profiles
Enable Authorization in Editoast:
Add the following environment variable to the
docker-compose.yml
file underOSRD_MQ_URL
:Rebuild the Docker Image:
Rebuild the Editoast Docker image and restart the service.
Apply SQL Scripts to Set User Profiles:
Railway Undertaking (Stdcm) Profile:
Run the following SQL script to set up the railway undertaking profile:
Superuser Profile:
To switch to the superuser profile, simply remove the EDITOAST_DISABLE_AUTHORIZATION: "false" line from the docker-compose.yml file and rebuild the Editoast container.
Validate the Behavior: