Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

fix: application settings marshalling #1825

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

steve-mt
Copy link

What

Update Settings.PerformanceBarAllowedGroupID to be an int instead string

Why

The API returns an int because it's a group ID:

curl -s --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.example.com/api/v4/application/settings" | jq -r '.performance_bar_allowed_group_id'
1234

The documentation specifies that it's an int, and it's also stored as an int in the database.

@steve-mt steve-mt force-pushed the fix/application-settings branch from 75f1af5 to 3b2e060 Compare October 20, 2023 12:12
@steve-mt steve-mt changed the title fix: application settings marshaling fix: application settings marshalling Oct 20, 2023

Verified

This commit was signed with the committer’s verified signature.
eddumelendez Eddú Meléndez Gonzales
What
---
Update `Settings.PerformanceBarAllowedGroupID` to be an `int` instead
`string`

Why
---
The API returns an int because it's a group ID:

```
curl -s --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.example.com/api/v4/application/settings" | jq -r '.performance_bar_allowed_group_id'
1234
```

The
[documentation](https://gitlab.com/gitlab-org/gitlab/-/blob/784401ac8b5bf5ae3056cc84a95fb2be37c83934/doc/api/settings.md#L92)
specifies that it's an `int`, and it's also stored as an int in the
[database](https://gitlab.com/gitlab-org/gitlab/-/blob/784401ac8b5bf5ae3056cc84a95fb2be37c83934/db/structure.sql#L11472).

Signed-off-by: Steve Xuereb <sxuereb@gitlab.com>
@steve-mt steve-mt force-pushed the fix/application-settings branch from 3b2e060 to ddc846c Compare October 20, 2023 12:16
Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

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

Thanks @stevexuereb 👍🏻

@svanharmelen svanharmelen merged commit e78abac into xanzy:main Oct 22, 2023
@steve-mt steve-mt deleted the fix/application-settings branch October 22, 2023 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants