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

Allow the cloud instance to create project and submit PR #10599

Open
pascalgrimaud opened this issue Aug 18, 2024 · 3 comments
Open

Allow the cloud instance to create project and submit PR #10599

pascalgrimaud opened this issue Aug 18, 2024 · 3 comments

Comments

@pascalgrimaud
Copy link
Member

pascalgrimaud commented Aug 18, 2024

It's a global ticket here, which must be splitted into smaller ones

The idea is:
image

  • The user must be logged into GitHub
  • he/she can:
    • create a new one
    • select an existing projects or in his organization
    • JHLite will clone the project and display the existing modules already applied
  • when apply new, JHLite will
    • create a new branch
    • apply the module(s)
    • submit a pull request

It's similar to what JHipster Online provides, we should keep the idea, but not the code

@pascalgrimaud pascalgrimaud pinned this issue Aug 18, 2024
@pascalgrimaud pascalgrimaud changed the title Allow the cloud version to create project and submit PR Allow the cloud instance to create project and submit PR Aug 19, 2024
@renanfranca renanfranca self-assigned this Oct 30, 2024
@renanfranca
Copy link
Contributor

Hello,

I'm currently working on this issue and decided to start with a small feature on the backend:

  • Enable generating a token using GitHub login and return that token.

As I was developing, I noticed that the spring-boot-oauth2 module in jhipster-lite already has a pretty robust implementation for OAuth2 authentication.
However, the goal with GitHub here is just to fetch repository information and make changes on GitHub. The aim isn't to enforce a security layer across the entire jhipster-lite app, where access to certain endpoints depends on whether you're logged in with GitHub or not.

So, I'm moving forward without using the spring-boot-oauth2 module and instead creating a github module in src/main/java/tech/jhipster/lite/shared/github.

What do you all think? Does my approach make sense, or should I reconsider using the spring-boot-oauth2 module?
image

@pascalgrimaud
Copy link
Member Author

This ticket is a really big feature.
I'm not sure we should implement it now, we should discuss about it first and estimate the real value to have it.
So for now we should focus on other small features...

@renanfranca
Copy link
Contributor

This ticket is a really big feature. I'm not sure we should implement it now, we should discuss about it first and estimate the real value to have it.

@pascalgrimaud : I agree 100% that it is indeed a big feature. I haven't created any pull requests because I took a step back and I am deeply studying OAuth2 while developing a prototype to demonstrate the possible workflow I am considering implementing. This way, we can talk about whether it's worth pursuing or not.

So for now we should focus on other small features...

This discussion Code coverage 100% for front-end generated apps is pending resolution and it is blocking other issues, for example:

I can work both in backend and frontend now at jhipster-lite project. Can you suggest which issue do you like me to work on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants