dosubot[bot] commented on issue #8421:
URL: 
https://github.com/apache/incubator-devlake/issues/8421#issuecomment-2845573974

   <!-- Greeting -->
   Hello @jbsmith7741! I'm [Dosu](https://dosu.dev), your friendly bot here to 
help with bugs, answer questions, and guide you on your journey to becoming a 
contributor. I'm ready to assist while we wait for a human maintainer. Let's 
dive into this together! 🚀
   
   <!-- Answer -->
   The issue you're experiencing with the `is_draft` column not being populated 
correctly might be related to how the data is being processed and converted 
from the GitHub API. The `is_draft` column in the `_tool_github_pull_requests` 
table is supposed to be populated directly from the `IsDraft` field in the 
`models.GithubPullRequest` struct, which is derived from the raw GitHub API 
data 
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/github/tasks/pr_convertor.go)</sup>.
   
   To address this issue, you might want to check the `ConvertPullRequests` 
function in the `pr_convertor.go` file to ensure that the conversion logic is 
correctly mapping the `IsDraft` field from the raw data to the domain-specific 
format. Additionally, verify that the extraction and conversion tasks are 
correctly processing the draft status from the raw JSON data.
   
   If the conversion logic is correct, consider reviewing the data ingestion 
process to ensure that the draft status is being correctly captured and updated 
in the raw data tables before conversion. This might involve checking the 
extraction tasks and ensuring they are correctly handling updates to pull 
request statuses, such as changing from open to draft.
   
   If you are willing to submit a PR, you could focus on these areas to ensure 
the draft status is correctly processed and reflected in the relevant tables.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/00f70e4b-482d-40ec-bfca-de759c02b544?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to