Skip to content

Validate the presence of all API functions before calling them#802

Merged
mcalmer merged 1 commit into
uyuni-project:mainfrom
marv7000:nice-api-errors
Jun 9, 2026
Merged

Validate the presence of all API functions before calling them#802
mcalmer merged 1 commit into
uyuni-project:mainfrom
marv7000:nice-api-errors

Conversation

@marv7000

@marv7000 marv7000 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

What does this PR change?

This PR adds new API functions that also validate the existence of the respective namespace on the server, instead of blindly assuming they exist. This lets us return a clean and easy to understand error message.

Codespace

Check if you already have a running container clicking on Running CodeSpace

Create CodeSpace About billing for Github Codespaces CodeSpace Billing Summary CodeSpace Limit

Test coverage

  • Unit tests were added

  • DONE

Links

Issue(s): #

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

@marv7000
marv7000 requested review from aaannz and cbosdo June 1, 2026 13:40
@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

Comment thread shared/api/org/getDetails.go
@mcalmer mcalmer added the 5.2.0 label Jun 9, 2026
@mcalmer
mcalmer merged commit 464fb47 into uyuni-project:main Jun 9, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants