-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use BasePackage for search output data (#529)
So far the `/search` output was manually built. This had the risk that the format of the package output and search output diverge but they should not. To prevent this, a BasePackage is introduced. The package is composed out of this BasePackage with additional fields. This change does not affect the output, only the order of the output.
- Loading branch information
Showing
15 changed files
with
273 additions
and
269 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
[ | ||
{ | ||
"description": "Package with data sources", | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"name": "datasources", | ||
"path": "/package/datasources/1.0.0", | ||
"title": "Default datasource Integration", | ||
"version": "1.0.0", | ||
"description": "Package with data sources", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"path": "/package/datasources/1.0.0" | ||
}, | ||
{ | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"name": "default_pipeline", | ||
"path": "/package/default_pipeline/0.0.2", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.2", | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"type": "integration", | ||
"version": "0.0.2" | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"path": "/package/default_pipeline/0.0.2" | ||
}, | ||
{ | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"name": "ecs_style_dataset", | ||
"path": "/package/ecs_style_dataset/0.0.1", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.1", | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"path": "/package/ecs_style_dataset/0.0.1" | ||
}, | ||
{ | ||
"description": "This is the example integration.", | ||
"download": "/epr/example/example-0.0.2.tar.gz", | ||
"name": "example", | ||
"path": "/package/example/0.0.2", | ||
"title": "Example", | ||
"version": "0.0.2", | ||
"description": "This is the example integration.", | ||
"type": "integration", | ||
"version": "0.0.2" | ||
"download": "/epr/example/example-0.0.2.tar.gz", | ||
"path": "/package/example/0.0.2" | ||
}, | ||
{ | ||
"description": "This is the example integration", | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"name": "example", | ||
"path": "/package/example/1.0.0", | ||
"title": "Example Integration", | ||
"version": "1.0.0", | ||
"description": "This is the example integration", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"path": "/package/example/1.0.0" | ||
}, | ||
{ | ||
"description": "This is the foo integration", | ||
"download": "/epr/foo/foo-1.0.0.tar.gz", | ||
"name": "foo", | ||
"path": "/package/foo/1.0.0", | ||
"title": "Foo", | ||
"version": "1.0.0", | ||
"description": "This is the foo integration", | ||
"type": "solution", | ||
"version": "1.0.0" | ||
"download": "/epr/foo/foo-1.0.0.tar.gz", | ||
"path": "/package/foo/1.0.0" | ||
}, | ||
{ | ||
"description": "Tests that multiple can be set to false", | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"name": "multiple_false", | ||
"path": "/package/multiple_false/0.0.1", | ||
"title": "Multiple false", | ||
"version": "0.0.1", | ||
"description": "Tests that multiple can be set to false", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"path": "/package/multiple_false/0.0.1" | ||
}, | ||
{ | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"name": "no_stream_configs", | ||
"path": "/package/no_stream_configs/1.0.0", | ||
"title": "No Stream configs", | ||
"version": "1.0.0", | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"path": "/package/no_stream_configs/1.0.0" | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
[ | ||
{ | ||
"description": "Package with data sources", | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"name": "datasources", | ||
"path": "/package/datasources/1.0.0", | ||
"title": "Default datasource Integration", | ||
"version": "1.0.0", | ||
"description": "Package with data sources", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"path": "/package/datasources/1.0.0" | ||
}, | ||
{ | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"name": "default_pipeline", | ||
"path": "/package/default_pipeline/0.0.2", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.2", | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"type": "integration", | ||
"version": "0.0.2" | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"path": "/package/default_pipeline/0.0.2" | ||
}, | ||
{ | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"name": "ecs_style_dataset", | ||
"path": "/package/ecs_style_dataset/0.0.1", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.1", | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"path": "/package/ecs_style_dataset/0.0.1" | ||
}, | ||
{ | ||
"description": "This is the example integration", | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"name": "example", | ||
"path": "/package/example/1.0.0", | ||
"title": "Example Integration", | ||
"version": "1.0.0", | ||
"description": "This is the example integration", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"path": "/package/example/1.0.0" | ||
}, | ||
{ | ||
"description": "Tests that multiple can be set to false", | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"name": "multiple_false", | ||
"path": "/package/multiple_false/0.0.1", | ||
"title": "Multiple false", | ||
"version": "0.0.1", | ||
"description": "Tests that multiple can be set to false", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"path": "/package/multiple_false/0.0.1" | ||
}, | ||
{ | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"name": "no_stream_configs", | ||
"path": "/package/no_stream_configs/1.0.0", | ||
"title": "No Stream configs", | ||
"version": "1.0.0", | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"path": "/package/no_stream_configs/1.0.0" | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
[ | ||
{ | ||
"description": "This is the example integration", | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"name": "example", | ||
"path": "/package/example/1.0.0", | ||
"title": "Example Integration", | ||
"version": "1.0.0", | ||
"description": "This is the example integration", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
"path": "/package/example/1.0.0" | ||
}, | ||
{ | ||
"description": "This is the foo integration", | ||
"download": "/epr/foo/foo-1.0.0.tar.gz", | ||
"name": "foo", | ||
"path": "/package/foo/1.0.0", | ||
"title": "Foo", | ||
"version": "1.0.0", | ||
"description": "This is the foo integration", | ||
"type": "solution", | ||
"version": "1.0.0" | ||
"download": "/epr/foo/foo-1.0.0.tar.gz", | ||
"path": "/package/foo/1.0.0" | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
[ | ||
{ | ||
"description": "Package with data sources", | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"name": "datasources", | ||
"path": "/package/datasources/1.0.0", | ||
"title": "Default datasource Integration", | ||
"version": "1.0.0", | ||
"description": "Package with data sources", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/datasources/datasources-1.0.0.tar.gz", | ||
"path": "/package/datasources/1.0.0" | ||
}, | ||
{ | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"name": "default_pipeline", | ||
"path": "/package/default_pipeline/0.0.2", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.2", | ||
"description": "Tests if no pipeline is set, it defaults to the default one", | ||
"type": "integration", | ||
"version": "0.0.2" | ||
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz", | ||
"path": "/package/default_pipeline/0.0.2" | ||
}, | ||
{ | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"name": "ecs_style_dataset", | ||
"path": "/package/ecs_style_dataset/0.0.1", | ||
"title": "Default pipeline Integration", | ||
"version": "0.0.1", | ||
"description": "Tests the registry validations works for dataset fields using the ecs style format", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz", | ||
"path": "/package/ecs_style_dataset/0.0.1" | ||
}, | ||
{ | ||
"description": "This is the example integration.", | ||
"download": "/epr/example/example-0.0.2.tar.gz", | ||
"name": "example", | ||
"path": "/package/example/0.0.2", | ||
"title": "Example", | ||
"version": "0.0.2", | ||
"description": "This is the example integration.", | ||
"type": "integration", | ||
"version": "0.0.2" | ||
"download": "/epr/example/example-0.0.2.tar.gz", | ||
"path": "/package/example/0.0.2" | ||
}, | ||
{ | ||
"description": "Tests that multiple can be set to false", | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"name": "multiple_false", | ||
"path": "/package/multiple_false/0.0.1", | ||
"title": "Multiple false", | ||
"version": "0.0.1", | ||
"description": "Tests that multiple can be set to false", | ||
"type": "integration", | ||
"version": "0.0.1" | ||
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz", | ||
"path": "/package/multiple_false/0.0.1" | ||
}, | ||
{ | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"name": "no_stream_configs", | ||
"path": "/package/no_stream_configs/1.0.0", | ||
"title": "No Stream configs", | ||
"version": "1.0.0", | ||
"description": "This package does contain a dataset but not stream configs.\n", | ||
"type": "integration", | ||
"version": "1.0.0" | ||
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz", | ||
"path": "/package/no_stream_configs/1.0.0" | ||
} | ||
] |
Oops, something went wrong.