diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f47579..f95d9d13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bumped ingress timeout in Helm chart to reflect AWS gateway timeout - SDAP-399: Updated quickstart guide for standalone docker deployment of SDAP. - SDAP-399: Updated quickstart Jupyter notebook +- fix: enable tile_search endpoint + fix: Object of type is not JSON serializable ### Deprecated ### Removed - removed dropdown from matchup doms endpoint secondary param diff --git a/analysis/webservice/algorithms/TileSearch.py b/analysis/webservice/algorithms/TileSearch.py index 321d94fe..8c1ad332 100644 --- a/analysis/webservice/algorithms/TileSearch.py +++ b/analysis/webservice/algorithms/TileSearch.py @@ -14,11 +14,12 @@ # limitations under the License. +from webservice.NexusHandler import nexus_handler from webservice.algorithms.NexusCalcHandler import NexusCalcHandler from webservice.webmodel import NexusResults -# @nexus_handler +@nexus_handler class ChunkSearchCalcHandlerImpl(NexusCalcHandler): name = "Data Tile Search" path = "/tiles" diff --git a/data-access/nexustiles/model/nexusmodel.py b/data-access/nexustiles/model/nexusmodel.py index f5c9df64..82ea9f82 100644 --- a/data-access/nexustiles/model/nexusmodel.py +++ b/data-access/nexustiles/model/nexusmodel.py @@ -38,6 +38,15 @@ class TileVariable: variable_name: str = None standard_name: str = None + def __str__(self) -> str: + return str({ + 'variable_name': self.variable_name, + 'standard_name': self.standard_name, + }) + + def __repr__(self) -> str: + return self.__str__() + @dataclass class Tile(object):