Skip to content

Conversation

@Benjosh95
Copy link
Contributor

@Benjosh95 Benjosh95 commented Sep 25, 2025

Description

This change implements validation checks for the project ID, project existence, and user access rights. It also simplifies the project label retrieval logic by reducing boilerplate code.

Jira-Ticket: https://jira.schwarz/browse/STACKITCLI-61

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

return err
}

// Validate project ID (exists and user has access)
Copy link
Member

Choose a reason for hiding this comment

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

Didn't we agree in the refinement that we want to reduce boilerplate code within the implementation of this story? Instead we'll now have even more of it with your current approach.

@rubenhoenle rubenhoenle added the needs-work PR needs work from author. label Sep 25, 2025
@Benjosh95 Benjosh95 closed this Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-work PR needs work from author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants