Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add image search actions #277

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

anish-mudaraddi
Copy link
Collaborator

written by @Neonbluestoplight

Description:

Special Notes:


Submitter:

Have you (where applicable):

  • Added unit tests?
  • Checked the latest commit runs on Dev?
  • Updated the example config file(s) and README?

Reviewer

Does this PR:

  • Place non-StackStorm code into the lib directory?
  • Have unit tests for the action/sensor and lib layers?
  • Have clear and obvious action parameter names and descriptions?

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.15%. Comparing base (f506490) to head (325d1ed).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #277   +/-   ##
=======================================
  Coverage   98.15%   98.15%           
=======================================
  Files         230      230           
  Lines        8581     8581           
  Branches      518      518           
=======================================
  Hits         8423     8423           
  Misses        137      137           
  Partials       21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

actions/image.search.by.regex.yaml Outdated Show resolved Hide resolved
actions/image.search.by.regex.yaml Outdated Show resolved Hide resolved
actions/image.search.by.expression.yaml Show resolved Hide resolved
actions/image.search.by.regex.yaml Show resolved Hide resolved
actions/image.search.by.property.yaml Show resolved Hide resolved
actions/image.search.by.property.yaml Outdated Show resolved Hide resolved
Comment on lines +107 to +116
from_projects:
description: "(Optional) comma-spaced list of projects id/names to limit query to, if not provided, runs against all projects"
type: array
default: null
required: false
all_projects:
type: boolean
description: "tick to search in all projects - default True"
required: true
default: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

@anish-mudaraddi Is all_projects needed if when from_projects is not provided it runs against all projects?

Copy link
Collaborator

Choose a reason for hiding this comment

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

On this if from_projects and all_projects are false the it will default to searching the admin project

Might be worth changing the from_projects description to something along the lines of: (Optional) comma-spaced list of projects id/names to limit query to, if not provided, runs against all projects when all_projects is true

actions/image.search.by.datetime.yaml Outdated Show resolved Hide resolved
actions/image.search.by.expression.yaml Outdated Show resolved Hide resolved
actions/image.search.by.expression.yaml Outdated Show resolved Hide resolved
actions/image.search.by.regex.yaml Outdated Show resolved Hide resolved
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.

3 participants