EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Data Handling
core
Commits
6f27b12f
Commit
6f27b12f
authored
3 years ago
by
Nikola Jankovic
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix_product_type_found' into 'main'
Hotfix product type found See merge request
!6
parents
31cc99da
6ae6dcb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Hotfix product type found
Pipeline
#20424
passed
3 years ago
Stage: test
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
registrar/backend/eoxserver.py
+5
-2
5 additions, 2 deletions
registrar/backend/eoxserver.py
with
6 additions
and
3 deletions
Dockerfile
+
1
−
1
View file @
6f27b12f
...
...
@@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------
# NOTE: using dev release for now to include browse registration implementation
FROM
eoxa/eoxserver:release-1.1.1-dev
4
FROM
eoxa/eoxserver:release-1.1.1-dev
5
ARG
DEBUG="false"
...
...
This diff is collapsed.
Click to expand it.
registrar/backend/eoxserver.py
+
5
−
2
View file @
6f27b12f
...
...
@@ -252,7 +252,7 @@ class EOxServerBackend(ItemBackend):
# TODO: find better way of dealing with missing mappings
# ideally EOxServer figures it out by itself, even when no
# eo:bands are set
coverage_mapping
=
coverage_mapping
coverage_mapping
=
coverage_mapping
,
)
elif
product_type
is
not
None
:
created
=
False
...
...
@@ -327,6 +327,7 @@ class EOxServerBackend(ItemBackend):
product_type_found
=
True
break
else
:
product_type_found
=
True
break
if
product_type_found
:
...
...
@@ -339,7 +340,9 @@ class EOxServerBackend(ItemBackend):
collection
=
models
.
Collection
.
objects
.
get
(
identifier
=
collection_id
)
models
.
collection_insert_eo_object
(
collection
,
product
)
elif
self
.
auto_create_product_types
:
product
=
self
.
_register_with_stac
(
source
,
item
,
replace
,
storage
,
None
,
True
)
product
=
self
.
_register_with_stac
(
source
,
item
,
replace
,
storage
,
None
,
True
)
else
:
raise
RegistrationError
(
f
"
{
item
}
not matched to any product_type
"
)
...
...
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