Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Freva Ingest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
freva
Freva Ingest
Commits
e4a95506
Commit
e4a95506
authored
3 years ago
by
Brian Lewis
Browse files
Options
Downloads
Patches
Plain Diff
Add doc comment for ingest_structure
parent
ffd51250
No related branches found
Branches containing commit
Tags
0.5.0
Tags containing commit
2 merge requests
!2
Ingest different DRS formats
,
!1
Ingest
Pipeline
#16353
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
freva/src/drs/ingest.rs
+6
-0
6 additions, 0 deletions
freva/src/drs/ingest.rs
with
6 additions
and
0 deletions
freva/src/drs/ingest.rs
+
6
−
0
View file @
e4a95506
...
...
@@ -100,6 +100,12 @@ pub async fn ingest<P: AsRef<Path>>(
})
}
/// Ingests a single structure from the DRS config.
///
/// This handles crawling the structure's `root_dir` and ingesting any files it finds there are valid for the structure.
/// This inserts the files it finds into both files and latest collection within solr.
///
/// Invalid files, whatever the reason they're invalid, will be skipped.
async
fn
ingest_structure
(
solr
:
Solr
,
structure
:
Structure
,
...
...
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