Skip to content

Fix runner application deserialization#2704

Merged
nickfloyd merged 3 commits intooctokit:mainfrom
MatisseHack:runner-app-deserialization
May 9, 2023
Merged

Fix runner application deserialization#2704
nickfloyd merged 3 commits intooctokit:mainfrom
MatisseHack:runner-app-deserialization

Conversation

@MatisseHack
Copy link
Contributor

Resolves #2703


Behavior

Before the change?

  • Octokit throws a deserialization error when calling ListAllRunnerApplicationsForOrganization in the ActionsSelfHostedRunnersClient

After the change?

  • No error is thrown

Other information

I fixed the issue by removing the extra IReadOnlyList layer since ApiConnection.GetAll already returns an IReadOnlyList. I also made a few other updates to theRunnerApplication model:

  • Added a missing property in the model
  • Fixed a property that was always null because it had the wrong casing (didn't match the JSON payload).
  • Created a new RunnerLabel model since the Label model is for issue/PR labels and didn't match the properties in the JSON payload

Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • The casing for one property has been changed, which should be very low impact since the model was only added a few days ago.
  • The model for one property has been changed, which should also be very low impact since most properties on the old model would be null anyway.

Pull request type

Bugfix

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug
  • Feature/model/API additions: Type: Feature
  • Updates to docs or samples: Type: Documentation
  • Dependencies/code cleanup: Type: Maintenance

@nickfloyd nickfloyd added Priority: High Type: Breaking change Used to note any change that requires a major version bump Type: Bug Something isn't working as documented labels May 9, 2023
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

Hey @MatisseHack, this change looks good. Thank you for doing it ❤️. I will mark and ship this as a breaking change in light of the type change. Even though it's low risk, bumping major does not cost anything and is a signal in case consumers need to know.

@nickfloyd nickfloyd merged commit 9adcf16 into octokit:main May 9, 2023
Lulalaby referenced this pull request in Fortunevale/ProjectMakoto May 9, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [Octokit](https://togithub.com/octokit/octokit.net) | nuget | major |
`5.1.0` -> `6.0.0` |

---

### Release Notes

<details>
<summary>octokit/octokit.net</summary>

###
[`v6.0.0`](https://togithub.com/octokit/octokit.net/releases/tag/v6.0.0)

#### What's Changed

⚠️ Note this release contains a "low risk" breaking change; see this
[PR](https://togithub.com/octokit/octokit.net/pull/2704) for more
information.

##### Features

- Adds a method to get a single runner group by
[@&#8203;MatisseHack](https://togithub.com/MatisseHack) in
[https://github.com/octokit/octokit.net/pull/2706](https://togithub.com/octokit/octokit.net/pull/2706)
- Improve repo debugger display by
[@&#8203;martincostello](https://togithub.com/martincostello) in
[https://github.com/octokit/octokit.net/pull/2712](https://togithub.com/octokit/octokit.net/pull/2712)
- Adding in support for enterprise audit logs by
[@&#8203;gitasaurus](https://togithub.com/gitasaurus) in
[https://github.com/octokit/octokit.net/pull/2702](https://togithub.com/octokit/octokit.net/pull/2702)

##### Fixes

- \[BREAKING CHANGE] Fix runner application deserialization by
[@&#8203;MatisseHack](https://togithub.com/MatisseHack) in
[https://github.com/octokit/octokit.net/pull/2704](https://togithub.com/octokit/octokit.net/pull/2704)

**Full Changelog**:
https://github.com/octokit/octokit.net/compare/v5.1.0...v6.0.0[](url)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Fortunevale/ProjectMakoto).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43NC4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzQuMCIsInRhcmdldEJyYW5jaCI6ImRldiJ9-->
@MatisseHack MatisseHack deleted the runner-app-deserialization branch August 30, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Breaking change Used to note any change that requires a major version bump Type: Bug Something isn't working as documented

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG]: Error deserializing runner application response

2 participants