Skip to content

Conversation

@jsvgoncalves
Copy link
Member

* Creating the concepts needs to be decouple from creating the
  concept_schemes, as concepts might need to be added to existing
  concept_schemes.

Signed-off-by: João Gonçalves <[email protected]>
Copy link

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.

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


# Configuration
API_URL = "http://localhost:8000"
API_TOKEN = "missing"
Copy link

Copilot AI Apr 5, 2025

Choose a reason for hiding this comment

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

Using a hard-coded API token may lead to security issues; consider retrieving the token from an environment variable instead.

Suggested change
API_TOKEN = "missing"
import os
API_TOKEN = os.getenv("API_TOKEN", "missing")

Copilot uses AI. Check for mistakes.
await create_schemes()

if args.concepts:
if not args.scheme_id:
Copy link

Copilot AI Apr 5, 2025

Choose a reason for hiding this comment

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

When '--scheme-id' is missing while creating concepts, consider exiting with a non-zero status code (e.g., using sys.exit(1)) rather than only printing an error message, to properly signal the failure.

Copilot uses AI. Check for mistakes.
@cmutel
Copy link
Contributor

cmutel commented May 7, 2025

Not needed now as we have useful data but maybe useful in the future...

@cmutel cmutel closed this May 7, 2025
@cmutel cmutel reopened this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants