Skip to content

Conversation

@javuto
Copy link
Collaborator

@javuto javuto commented Dec 28, 2025

  • Better summary using emojis in api_tester.py
  • Fix for the login function of the osctrl-api
  • Adding the url parameter to osctrl-cli when logging with the API

@javuto javuto requested a review from Copilot December 28, 2025 14:41
@javuto javuto added osctrl-api osctrl-api related changes osctrl-cli osctrl-cli related changes 🛠️ tools Tools related issues labels Dec 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements multiple fixes in the osctrl-cli and osctrl-api, primarily addressing authentication flow issues and improving test output readability.

  • Fixes the API login endpoint to properly handle unauthenticated requests
  • Adds URL parameter support to osctrl-cli for API login configuration
  • Enhances API tester output with emoji-based test summary formatting

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tools/api_tester.py Enhanced test summary with emoji formatting and added 404 as expected status for query endpoints
cmd/cli/main.go Added URL flag parameter and fixed API initialization timing in login flow
cmd/api/main.go Removed authentication middleware from login endpoint to allow unauthenticated access

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@javuto javuto merged commit 6328e5d into main Dec 28, 2025
55 checks passed
@javuto javuto deleted the fix-api-cli-misc branch December 28, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

osctrl-api osctrl-api related changes osctrl-cli osctrl-cli related changes 🛠️ tools Tools related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants