-
Notifications
You must be signed in to change notification settings - Fork 4
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
monitor containers for modified entities #51
Merged
Merged
Changes from 14 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
95f9329
fix parameter names and formatting to cli
hhunterzinck 9d94a32
monitor contents of a container
hhunterzinck a3aaf37
remove test for unimplemented function
hhunterzinck 4e38847
remove print statement
hhunterzinck f9eec2c
add tests for modified containers
hhunterzinck abc17f5
remove unused modules
hhunterzinck 254a5dc
update help messages in cli
hhunterzinck dd141fd
lint using black
hhunterzinck 013836f
patch all function calls in modified container function
hhunterzinck 34dd50b
refactor _traverse
hhunterzinck 057c768
Update synapsemonitor/monitor.py
hhunterzinck dbae3a4
rewrite boolean for traverse and extend
hhunterzinck 9bbb4fa
lint with black
hhunterzinck 90d186a
fix filtering by type at end of traverse
hhunterzinck 917dcca
only traverse containers to limit recursive calls
hhunterzinck 5c57b35
lint with black
hhunterzinck ae142cf
check entity type before adding if not traversing
hhunterzinck 336f82c
add tests for traverse on folder and project
hhunterzinck cda348a
correct id versus parentId specification of synapse entity objects
hhunterzinck de717e6
remove unnecessary syn.get
hhunterzinck 5511064
add test for traverse folder with file child
hhunterzinck 07bcd2f
lint with black
hhunterzinck 01f0076
change default include types in traverse function
hhunterzinck a280afc
remove check for child of type project
hhunterzinck ed6dbd5
create wrapper function for traverse
hhunterzinck fcad2db
update tests for new wrapper function
hhunterzinck fd26fa2
lint with black
hhunterzinck 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 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 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 just remembered, in Python there is a max recursion limit - limit of calling a function recursively ~1000 times. So you may get into trouble here because if you do a getChildren on a folder with 1000 files, you're actually calling
_traverse
1000 times. We may want to do something similar assynapseutils.walk
where we only call_traverse
when it is a container.Then again - for those cases, we should encourage the use of file views...
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.
Added a check for the entity type of the children to limit recursive calls. Now, if a child entity is neither a folder nor a project, the child entity type is added directly to the descendant list after checking that it is a requested entity type.