incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

fix: Consider first comment to be of type Review

Open tcarac opened this issue 1 year ago • 5 comments

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • [X] I have read through the Contributing Documentation.
  • [] I have added relevant tests.
  • [X] I have added relevant documentation.
  • [X] I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

Takes into a account Pr Type to determine if it should be considered as the first Pr in pickup time

Does this close any open issues?

https://github.com/apache/incubator-devlake/discussions/8317

Screenshots

Include any relevant screenshots here.

Other Information

Any other information that is important to this PR.

tcarac avatar Mar 11 '25 12:03 tcarac

Don't see any specific related tests to this function or classes. Are these to be considered part of the csv testing within dataflow ?

tcarac avatar Mar 11 '25 12:03 tcarac

It seems that only the Github plugin respects this type field, which means this patch may not work as expected on other plugins. I think this issue could be addressed in the following ways:

  1. Update all other plugins to fill in this field.
  2. Accept both REVIEW and an empty string for the type column.

klesh avatar Mar 14 '25 03:03 klesh

Hi, @tcarac e2e tests is failing, I think the csv files located in https://github.com/apache/incubator-devlake/tree/main/backend/plugins/dora/e2e/change_lead_time need to be updated, try adding type column to pull_request_comments.csv?

klesh avatar Mar 19 '25 01:03 klesh

Hi, @tcarac e2e tests is failing, I think the csv files located in https://github.com/apache/incubator-devlake/tree/main/backend/plugins/dora/e2e/change_lead_time need to be updated, try adding type column to pull_request_comments.csv?

@klesh This is done. Please lmk if we need anything else and TY for your support in this.

tcarac avatar Apr 14 '25 13:04 tcarac

Thanks for updating the files. and seems like the e2e-tests are still failing on PG database, not sure why though, maybe the column is NULL instead of empty?

klesh avatar Apr 15 '25 03:04 klesh

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Aug 28 '25 00:08 github-actions[bot]

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

github-actions[bot] avatar Sep 05 '25 00:09 github-actions[bot]