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

OAuth2 Github client #7

Merged
merged 32 commits into from
Jan 23, 2024
Merged

OAuth2 Github client #7

merged 32 commits into from
Jan 23, 2024

Conversation

dukris
Copy link
Collaborator

@dukris dukris commented Jan 15, 2024

Closes #9


PR-Codex overview

This PR focuses on adding new files and making changes related to database configuration, licensing, and code comments.

Detailed summary

  • Added ANALYZE my_table to analyze.sql
  • Added db/changelog/2024 to db.changelog-master.yaml
  • Added database configuration to application-pgit.yaml and application.yaml
  • Updated LICENSE.txt and package-info.java files with .git extension
  • Added SQL insert statements to projects.sql
  • Updated port number in application.yaml
  • Added Docker Compose configuration in docker-compose.yml
  • Updated code comments in Java files

The following files were skipped due to too many changes: src/main/resources/sql/select-project-by-id.sql, src/test/java/git/tracehub/pmo/security/package-info.java, src/main/java/git/tracehub/pmo/controller/package-info.java, src/test/java/git/tracehub/pmo/platforms/package-info.java, src/main/java/git/tracehub/pmo/platforms/github/package-info.java, src/main/java/git/tracehub/pmo/project/Sql.java, src/main/java/git/tracehub/pmo/platforms/Action.java, src/main/resources/sql/insert-project.sql, src/main/resources/sql/select-projects-by-user-email.sql, src/main/java/git/tracehub/pmo/exception/ResourceNotFoundException.java, src/main/java/git/tracehub/pmo/project/DateOf.java, src/main/java/git/tracehub/pmo/platforms/RepoPath.java, src/main/java/git/tracehub/pmo/security/ClaimOf.java, src/test/java/git/tracehub/pmo/platforms/RepoPathTest.java, src/main/java/git/tracehub/pmo/project/Project.java, src/main/java/git/tracehub/pmo/project/Projects.java, src/test/java/git/tracehub/pmo/project/SqlStatementTest.java, src/main/java/git/tracehub/pmo/project/AdjustedText.java, src/main/java/git/tracehub/pmo/security/ExistsRole.java, src/main/java/git/tracehub/pmo/project/ProjectOf.java, src/test/java/git/tracehub/pmo/project/DateOfTest.java, src/test/java/git/tracehub/pmo/project/AdjustedTextTest.java, src/main/java/git/tracehub/pmo/project/SqlStatement.java, src/main/java/git/tracehub/pmo/platforms/github/InviteCollaborator.java, src/main/resources/db/changelog/2024/001-projects.sql, src/test/java/git/tracehub/pmo/security/ClaimOfTest.java, src/test/java/git/tracehub/pmo/security/ExistsRoleTest.java, src/test/java/it/KeycloakIntegration.java, src/test/java/it/PostgresIntegration.java, src/test/java/it/web/KeycloakToken.java, src/main/java/git/tracehub/pmo/security/IdpToken.java, src/test/java/git/tracehub/pmo/project/ProjectOfTest.java, src/main/java/git/tracehub/pmo/project/DefaultProjects.java, src/test/java/it/web/RetrieveProjectsByUserITCase.java, src/test/java/it/web/RetrieveProjectByIdITCase.java, src/main/java/git/tracehub/pmo/security/SecurityConfig.java, src/main/java/git/tracehub/pmo/controller/ProjectController.java, pom.xml, src/test/resources/data/realm.json, realm-export.json

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

codecov bot commented Jan 17, 2024

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@dukris dukris requested a review from h1alexbel January 19, 2024 12:56
Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich take a look, at my comments

pom.xml Outdated Show resolved Hide resolved
src/main/java/git/tracehub/pmo/agents/Action.java Outdated Show resolved Hide resolved
src/main/java/git/tracehub/pmo/security/ClaimOf.java Outdated Show resolved Hide resolved
src/main/resources/application.yaml Outdated Show resolved Hide resolved
@dukris dukris requested a review from h1alexbel January 22, 2024 13:16
Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich just a few small comments

src/test/java/it/web/Token.java Outdated Show resolved Hide resolved
@dukris dukris requested a review from h1alexbel January 23, 2024 08:23
Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich take a look at my comments, please

* SOFTWARE.
*/

package git.tracehub.pmo.agents;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this logic is related to agents, this name its very abstract, names
like github, gitlab, bitbucket will be more suitable here.

see the point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This logic related to all agents, that's why RepoPath is located here, but this package also includes such packages as github, gitlab, and bitbucket

Copy link
Collaborator

@h1alexbel h1alexbel Jan 23, 2024

Choose a reason for hiding this comment

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

@hizmailovich
My comment was related to problem that these objects are not agents, here you are making some actions with operators/target platforms like GitHub, GitLab and so on.
So I propose to stay with package naming that includes just a platform name. Its a good idea to group so-called agents, but agents are not the best name here, I believe.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed to platforms

src/test/java/it/web/AccessToken.java Outdated Show resolved Hide resolved
Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich one comment on real-export.json

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really need this?

I think if it some secret that must be present at application runtime, lets move it from this repo to secrets

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This file just contains of the information about realm without any sensitive data, moreover we need this file in such location to use it in docker-compose
what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@hizmailovich place it inside root then

@h1alexbel
Copy link
Collaborator

h1alexbel commented Jan 23, 2024

@hizmailovich sorry for double review here.
I missed realm-export.json file.

@dukris dukris requested a review from h1alexbel January 23, 2024 12:33
Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich commit look good, answered on your questions, see above

Copy link
Collaborator

@h1alexbel h1alexbel left a comment

Choose a reason for hiding this comment

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

@hizmailovich good one

@h1alexbel
Copy link
Collaborator

@rultor try to merge

@dukris
Copy link
Collaborator Author

dukris commented Jan 23, 2024

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor try to merge

@h1alexbel Thanks for your request; @hizmailovich please confirm this.

@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@hizmailovich OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit ebc419c into master Jan 23, 2024
8 checks passed
@rultor
Copy link
Collaborator

rultor commented Jan 23, 2024

@rultor merge

@hizmailovich Done! FYI, the full log is here (took me 5min)

@h1alexbel h1alexbel deleted the 1 branch January 23, 2024 14:31
@h1alexbel h1alexbel restored the 1 branch January 23, 2024 14:31
@dukris dukris deleted the 1 branch January 23, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invite @tracehubgit when project is registered
3 participants