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

fix: tree endpoint should calculate fields grouping by git_commit_hash #57

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

lfjnascimento
Copy link
Contributor

  • calculate build_status and test_status grouping by checkouts.git_commit_hash instead of checkouts.id
  • git_repository_branch and git_commit_name should come from config
  • remove fields from the front-end that are no longer related to the tree

- calculate build_status and test_status grouping by
  checkouts.git_commit_hash instead of checkouts.id
- `git_repository_branch` and `git_commit_name` should come from config
- remove fields from the front-end that are no longer related to the tree
@lfjnascimento lfjnascimento requested a review from mari1912 July 4, 2024 22:07
@lfjnascimento lfjnascimento self-assigned this Jul 4, 2024
@@ -75,7 +75,7 @@ const TreeListingPage = (): JSX.Element => {
return [];
} else {
return((data as Tree[]).map(tree => {
const fullHash = tree.git_commit_hash ?? tree.patchset_hash ?? '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we should remove this patchset_hash. In most of the cases this will be empty, however, in some cases, where a patchfile is sent instead of a commit, there should be a patchset_hash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed on our daily patchset_hash will not be used on this page.

Copy link
Collaborator

@mari1912 mari1912 left a comment

Choose a reason for hiding this comment

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

Looks good, just check the comment I left

@lfjnascimento lfjnascimento merged commit eaf09d5 into main Jul 5, 2024
4 checks passed
@lfjnascimento lfjnascimento deleted the fix/use_commit_hash branch July 5, 2024 13:46
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.

2 participants