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

Issue412 #413

Merged
merged 13 commits into from
Jan 18, 2021
Merged

Issue412 #413

merged 13 commits into from
Jan 18, 2021

Conversation

salcio
Copy link
Contributor

@salcio salcio commented Jan 11, 2021

Fixes #412

Description of changes

Modified verifyTriggerWatchLocations to use glob.sync(trigger.watchPattern) instead of fs.readdirsync()

Checklist

If your change touches anything under src or the README.md file
these items must be done:

  • [ x] User-facing change description added to unreleased section of CHANGELOG.md

Copy link
Owner

@neilenns neilenns left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! A couple of general comments:

  1. There's a build failure that needs to be resolved
  2. Does this work with and without a glob pattern in watchFolder? I assume yes since you only changed dog, and not cat, detector in the sample.json file.

CHANGELOG.md Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@salcio
Copy link
Contributor Author

salcio commented Jan 11, 2021

Thanks for the PR! A couple of general comments:

  1. There's a build failure that needs to be resolved
  2. Does this work with and without a glob pattern in watchFolder? I assume yes since you only changed dog, and not cat, detector in the sample.json file.

yes it works with and without the glob in pattern.

I'm working on the build failure (something to do with package-lock).

Edit:

Just passed build.

Copy link
Owner

@neilenns neilenns left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the build failure! Looks like there are two build warnings now that need cleaning up in triggermanager.ts due to imports that are no longer used.

@neilenns
Copy link
Owner

Great thanks! I'll take another quick look at this tonight then merge it and produce a dev docker image for testing. Will run it locally a bit and ask you to try the dev build as well. If that all works out then I'll publish it as a release.

@salcio
Copy link
Contributor Author

salcio commented Jan 11, 2021

Thanks for fixing the build failure! Looks like there are two build warnings now that need cleaning up in triggermanager.ts due to imports that are no longer used.

Yeah you are right. I haven't seen the warnings. Now fixed.
You might want to consider settings lint to cause build failure when warnings like that happen - will save time :).

@neilenns
Copy link
Owner

Thanks for fixing the build failure! Looks like there are two build warnings now that need cleaning up in triggermanager.ts due to imports that are no longer used.

Yeah you are right. I haven't seen the warnings. Now fixed.
You might want to consider settings lint to cause build failure when warnings like that happen - will save time :).

Solid suggestion. Feel free to open a bug and a PR to get that change in 😂 At the very least open an issue to track it so I can get to it next time I'm touching code.

@salcio
Copy link
Contributor Author

salcio commented Jan 11, 2021

Thanks for fixing the build failure! Looks like there are two build warnings now that need cleaning up in triggermanager.ts due to imports that are no longer used.

Yeah you are right. I haven't seen the warnings. Now fixed.
You might want to consider settings lint to cause build failure when warnings like that happen - will save time :).

Solid suggestion. Feel free to open a bug and a PR to get that change in 😂 At the very least open an issue to track it so I can get to it next time I'm touching code.

Make sense. Issue created #414

@salcio salcio requested a review from neilenns January 11, 2021 17:24
Copy link
Owner

@neilenns neilenns left a comment

Choose a reason for hiding this comment

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

Code looks good. I'll re-work the text in the release notes when I push the release out.

One requested change: instead of aiinput/asdf as the sub-folder please change to a real folder name that matches what's inside. I suggest aiinput/dogcamera or similar.

@salcio
Copy link
Contributor Author

salcio commented Jan 12, 2021

Code looks good. I'll re-work the text in the release notes when I push the release out.

One requested change: instead of aiinput/asdf as the sub-folder please change to a real folder name that matches what's inside. I suggest aiinput/dogcamera or similar.

yeah I should have pay more attention before submitting PR. Done some testing and then you see :).
It's changed now.

@salcio
Copy link
Contributor Author

salcio commented Jan 12, 2021

@salcio Heads up it looks like you merged another branch into this one.

Note that if you are planning to open a future pull request to archive the input files I'm unlikely to take it. I don't believe this system should be responsible for managing files it didn't create.

uuu I didn't want to do that. I wanted to merge the other way. I'll revert that merge.

Makes sense with not touching the files that were created by someone else. I didn't plan to create PR for this as it was more for my setup (ease of adding functionality to existing app rather then creating completely new one)

@neilenns neilenns merged commit 765b1d5 into neilenns:main Jan 18, 2021
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.

Glob pattern in trigger.watchPattern doesn't work...
2 participants