Adisorn-Watt opened a new issue, #8339:
URL: https://github.com/apache/incubator-devlake/issues/8339

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When editing a GitHub connection that `enableGraphql = true` via the config 
UI, and saving the changes (such as updating the token). Even though the config 
UI does not send any of `enableGraphql` value via the payload, the PATCH API 
response returns `enableGraphql` as `false`. Resulting in the inability to sync 
GitHub workflow/deployments data which is only available via GitHub Graphql 
plugin.
   
   
![Image](https://github.com/user-attachments/assets/187683fb-acec-4a02-b94a-7d5fc9ec7d28)
   
   
![Image](https://github.com/user-attachments/assets/003753a4-8491-406d-a101-f63c5f415181)
   
   ### What do you expect to happen
   
   The `enableGraphql` value should remain its original value (`true`) after 
editing and saving the connection. It should not automatically change to 
`false`.
   
   ### How to reproduce
   
   1. Select any GitHub connection with `enableGraphql = true` (verify via 
inspect GET connections API).
   2. Edit the connection (e.g., change the token).
   3. Save the changes.
   4. Observe that the PATCH API response returns `enableGraphq`l as `false`.
   
   ### Anything else
   
   No additional information
   
   ### Version
   
   v1.0.1
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to