-
Notifications
You must be signed in to change notification settings - Fork 64
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
RepoCreatorService: Create custom operators for permissions request #671
RepoCreatorService: Create custom operators for permissions request #671
Conversation
Subject seems too long (?) and the body width seems too narrow https://se-education.org/guides/conventions/git.html |
Thanks Prof @damithc for the link. I have rectified the subject of the PR and the commit message as followed. |
Codecov Report
@@ Coverage Diff @@
## master #671 +/- ##
==========================================
+ Coverage 68.38% 68.67% +0.29%
==========================================
Files 75 75
Lines 2274 2276 +2
Branches 208 207 -1
==========================================
+ Hits 1555 1563 +8
+ Misses 675 668 -7
- Partials 44 45 +1
Continue to review full report at Codecov.
|
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 mostly good to me 👍 Just some minor queries regarding the test description but great job otherwise 👍
Co-authored-by: ptvrajsk <39243082+ptvrajsk@users.noreply.github.com>
* @return Observable<boolean> - Representing user's permission grant. | ||
*/ | ||
private openSessionFixConfirmation(phaseRepo: string): Observable<boolean> { | ||
const dialogRef: MatDialogRef<SessionFixConfirmationComponent> = |
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.
Let's rename the SessionFixConfirmationComponent
--> RepoCreationConfirmationComponent
too.
In my view, "RepoCreation" has a more obvious meaning than "SessionFix".
What do you think?
This renaming can be done separately in another PR.
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.
Yes it would be better to do so!
I think we can do this in a separate PR as well 😄
Co-authored-by: Anubhav <35621759+anubh-v@users.noreply.github.com>
Co-authored-by: Anubhav <35621759+anubh-v@users.noreply.github.com>
Summary
This PR fixes #549 by completing the last task of the issue. which abstracts the repo creation permissions request step of
sessionSetup()
inPhaseService
to a single, readable custom operator inRepoCreatorService
.Description
This PR does the following:
requestRepoCreationPermissions()
takes in two arguments,currentPhase
andphaseRepo
and checks for the following:a. if
isSessionAvailable
is false and if thecurrentPhase
isPhase.phaseBugReporting
, it suggests that there is a need for request of repo creation permissionsb. Else, no request for permissions is needed.
Suggested Commit Message