Skip to content

Move generateImage to adb to allow generalized usage - #719

Merged
luisremis merged 10 commits into
developfrom
fix/issue-267
May 23, 2026
Merged

Move generateImage to adb to allow generalized usage#719
luisremis merged 10 commits into
developfrom
fix/issue-267

Conversation

@ad-claw000

Copy link
Copy Markdown
Contributor

Summary

Moved generateImages.py from test/ to aperturedb/cli/generate_images.py and exposed it via adb utils generate-images. This allows the script to be used as a generalized tool within the CLI.

Verification

  • python -m aperturedb.cli.adb utils generate-images --help displays the correct options.
  • Existing usages in test/generateInput.py continue to function as expected via updated imports.

Fixes #267.

Copilot AI review requested due to automatic review settings May 20, 2026 11:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 relocates the image placeholder generation script from test/ into the aperturedb CLI package and exposes it as a new CLI utility command (adb utils generate-images), aiming to make the generator generally usable beyond tests.

Changes:

  • Updated test/generateInput.py to import ImageGenerator from aperturedb.cli.generate_images.
  • Added a new adb utils generate-images Typer command wired into aperturedb/cli/utilities.py.
  • Introduced aperturedb/cli/generate_images.py containing the moved image generation implementation.

Reviewed changes

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

File Description
test/generateInput.py Updates import path to the relocated ImageGenerator.
aperturedb/cli/utilities.py Adds the generate-images CLI command entry point.
aperturedb/cli/generate_images.py Provides the image generation implementation now used by tests and CLI.

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

Comment thread aperturedb/cli/utilities.py
Copilot AI review requested due to automatic review settings May 21, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread test/run_test_container.sh Outdated
Comment thread aperturedb/cli/utilities.py
Copilot AI review requested due to automatic review settings May 21, 2026 02:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment thread aperturedb/cli/utilities.py Outdated
@ad-claw000
ad-claw000 force-pushed the fix/issue-267 branch 2 times, most recently from 6e8010b to 6a94e11 Compare May 21, 2026 04:39
Copilot AI review requested due to automatic review settings May 21, 2026 04:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment thread aperturedb/cli/utilities.py Outdated
Comment thread test/run_test_container.sh Outdated
Copilot AI review requested due to automatic review settings May 23, 2026 04:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@luisremis
luisremis merged commit 3bbc9a8 into develop May 23, 2026
2 checks passed
@luisremis
luisremis deleted the fix/issue-267 branch May 23, 2026 17:03
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.

Move generateImage to adb to allow generalized usage

3 participants