Skip to content

discovery catalog import#7

Merged
HmbleCreator merged 5 commits into
mainfrom
codex/discovery-catalog-import
Apr 21, 2026
Merged

discovery catalog import#7
HmbleCreator merged 5 commits into
mainfrom
codex/discovery-catalog-import

Conversation

@HmbleCreator

Copy link
Copy Markdown
Owner

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@gitguardian

gitguardian Bot commented Apr 21, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 3 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
29889716 Triggered Generic Password 4a185bb deploy/helm/taarya/values.yaml View secret
29889716 Triggered Generic Password 4a185bb docker-compose.yml View secret
29889716 Triggered Generic Password 4a185bb docker-compose.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9fbea0002

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agent/tools.py
radius_deg=radius_deg,
star_count=inserted,
ingested_at=datetime.utcnow(),
ingested_at=datetime.datetime.now(datetime.timezone.utc),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Fix broken datetime call in region ingestion

This line will always raise AttributeError because the function imports datetime as a class (from datetime import datetime) and then calls datetime.datetime.now(...). In request_region_ingestion, that exception is caught and returned as an error string, so region ingestion cannot complete and the transaction is rolled back whenever this path runs.

Useful? React with 👍 / 👎.

Comment thread src/models.py
radius_deg = Column(Float, nullable=False)
star_count = Column(Integer, default=0)
ingested_at = Column(DateTime, default=datetime.utcnow)
ingested_at = Column(DateTime, default=lambda: datetime.datetime.now(datetime.timezone.utc))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Correct Region.ingested_at default timestamp expression

The new default callable uses datetime.datetime.now(...) even though this module imports datetime via from datetime import datetime, so inserts that rely on the column default will fail at runtime with AttributeError. Any code path creating a Region without explicitly setting ingested_at will hit this and fail to persist the row.

Useful? React with 👍 / 👎.

@HmbleCreator HmbleCreator merged commit 5a60622 into main Apr 21, 2026
2 of 3 checks passed
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.

1 participant