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
Feature/autofill projectdetails #1876
Feature/autofill projectdetails #1876
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1876 +/- ##
============================================
Coverage 100.00% 100.00%
- Complexity 1874 2180 +306
============================================
Files 397 454 +57
Lines 7023 7935 +912
Branches 160 182 +22
============================================
+ Hits 7023 7935 +912
Continue to review full report at Codecov.
|
@@ -1,5 +1,6 @@ | |||
import { Project } from '@/springboot/domain/Project'; | |||
import { DocumentFile } from '@/common/domain/DocumentFile'; | |||
import { RestProject } from '../secondary/RestProject'; |
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.
as we are in domain, we should not import a secondary
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.
Fixed in 727b697
@@ -12,4 +13,5 @@ export interface ProjectService { | |||
download(project: Project): Promise<DocumentFile>; | |||
addCodespacesSetup(project: Project): Promise<void>; | |||
addGitpodSetup(project: Project): Promise<void>; | |||
getProjectDetails(folder: string): Promise<RestProject>; |
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.
maybe return a Promise instead ?
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.
Do you mean Promise<void>
instead of Promise<RestProject>?
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, or Promise
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.
Sure, as return type generic is not required for the feature, I have made it Promise<void>
for generic required in promise.
Plus this removes the import as well
bounty claimed at https://opencollective.com/generator-jhipster/expenses/81769 |
@swarajsaaj : approved :) |
Fix #1858