-
-
Notifications
You must be signed in to change notification settings - Fork 782
Allow user to include arbitrary data files when creating a new action using the API #1785
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1a83ffa
Allow user to specify "data_files" attribute when creating an action …
Kami 5208f22
Add tests for get_pack_resource_file_abs_path function.
Kami d08e2af
Return written file paths so we can cleanup on exception.
Kami 03ff7cc
Dispatch an internal trigger for each written action data file.
Kami 961352d
Remove unused method - we allow users to override runner parameters a…
Kami 86fba6d
When writing pack data file create requested pack sub-directory if it…
Kami 96867c6
Update __all__.
Kami 82ed2e4
Don't throw if data_files is not provided.
Kami eb1a454
Fix potential security issue in get_entry_point_abs_path and
Kami cb2b818
Don't throw if directory doesn't exist, this check should be performe…
Kami 64049f0
Throw inside the controller if the pack directory doesn't exist.
Kami 135daf2
Update affected tests, fix typo.
Kami 94f36cc
Add new packs views controller which allows users to retrieve content…
Kami 2e3568d
Set packs_base_paths for tests to the fixtures directory.
Kami ce5c762
Also allow user to pass "exclude_fields" argument to the getter metho…
Kami 7910db5
Update chanhelog.
Kami ce7936e
Update affected tetts so they don't violate entry_point constraint.
Kami dee947f
Merge branch 'master' into create_action_include_data_files
Kami 389e539
Add get_file_list utility functions.
Kami 05fe089
Store a list of files inside a pack on the PackDB model.
Kami e4253d0
Add tests for get_file_list function.
Kami e3b9e5f
Add new get_pack_file_abs_path function which is a superset of
Kami 7924904
Update pack files view endpoint - allow user to retrieve a list of fi…
Kami 1937a41
Return 404 if user passes an invalid number of arguments aka requests…
Kami 08c271b
Also allow user to include files when updating an action.
Kami 292f40a
Don't allow users to create actions in system packs using the API.
Kami b8abf25
Remove now unnecessary try / except - exception is now translated to …
Kami 16f52a1
Merge branch 'master' into create_action_include_data_files
Kami 8843418
Refactor _handle_data_files, also dispatch trigger when updating an a…
Kami 751ec35
Only return 404 if TypeError refers to the controller method and not …
Kami d47b2b4
Add valid pack.yaml to packs inside the fixtures directory so they ca…
Kami 5ffb8b2
Register all the packs inside the fixtures directory in the
Kami 80e4719
Add some tests for including files on action create.
Kami 349fcc5
Make sure we store relative paths.
Kami f4f11ec
Also verify file has been created.
Kami 962f33b
Fix broken test, only register packs with test_actions controller tes…
Kami 8db076a
Merge branch 'master' into create_action_include_data_files
Kami File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shouldn't advertise it beyond using it in the UI yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a big deal putting it in changelog (we usually write a release announcement blog post where we more prominently announce new features so as long we don't put it there we are fine), but if you think otherwise I'm also fine with removing it.