Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
6fd45b97
Commit
6fd45b97
authored
5 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
no need to check into excluded extensions if included extensions are provided
parent
d8129432
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/python/dm/common/processing/fileProcessingManager.py
+3
-4
3 additions, 4 deletions
src/python/dm/common/processing/fileProcessingManager.py
src/python/dm/daq_web_service/service/impl/fileSystemObserver.py
+1
-1
1 addition, 1 deletion
...hon/dm/daq_web_service/service/impl/fileSystemObserver.py
with
4 additions
and
5 deletions
src/python/dm/common/processing/fileProcessingManager.py
+
3
−
4
View file @
6fd45b97
...
...
@@ -117,16 +117,15 @@ class FileProcessingManager(threading.Thread,Singleton):
# Check file extensions for processing
def
checkFileExtensionsForProcessing
(
self
,
filePathsDict
,
uploadInfo
):
includeFileExtensions
=
uploadInfo
.
get
(
'
includeFileExtensions
'
,
[])
excludeFileExtensions
=
uploadInfo
.
get
(
'
excludeFileExtensions
'
,
[])
includeRegex
=
None
excludeRegex
=
None
if
includeFileExtensions
:
del
uploadInfo
[
'
includeFileExtensions
'
]
self
.
logger
.
debug
(
'
Will include the following extensions: %s
'
%
(
includeFileExtensions
))
includeFileExtensions
=
includeFileExtensions
.
split
(
'
,
'
)
includeRegex
=
RegexUtility
.
formRegexForListOfFileExtensions
(
includeFileExtensions
)
excludeFileExtensions
=
uploadInfo
.
get
(
'
excludeFileExtensions
'
,
[])
excludeRegex
=
None
if
excludeFileExtensions
:
elif
excludeFileExtensions
:
del
uploadInfo
[
'
excludeFileExtensions
'
]
self
.
logger
.
debug
(
'
Will exclude the following extensions: %s
'
%
(
excludeFileExtensions
))
excludeFileExtensions
=
excludeFileExtensions
.
split
(
'
,
'
)
...
...
This diff is collapsed.
Click to expand it.
src/python/dm/daq_web_service/service/impl/fileSystemObserver.py
+
1
−
1
View file @
6fd45b97
...
...
@@ -114,7 +114,7 @@ class FileSystemObserver(threading.Thread,Singleton):
# Check file extension
includeFileExtensions
=
daqInfo
.
get
(
'
includeFileExtensions
'
,
[])
excludeFileExtensions
=
upload
Info
.
get
(
'
excludeFileExtensions
'
,
[])
excludeFileExtensions
=
daq
Info
.
get
(
'
excludeFileExtensions
'
,
[])
if
includeFileExtensions
:
includeFileExtensions
=
includeFileExtensions
.
split
(
'
,
'
)
includeRegex
=
RegexUtility
.
formRegexForListOfFileExtensions
(
includeFileExtensions
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment