Closed brunopacheco1 closed 2 days ago
This pull request implements significant refactoring to modernize the codebase, primarily focusing on introducing MapStruct for object mapping, reorganizing filter-related functionality, and cleaning up unused code. The changes improve code maintainability and introduce new filter value retrieval capabilities.
classDiagram
class CkanDatasetsMapper {
+RetrievedDataset map(CkanPackage ckanPackage)
+ValueLabel map(CkanValueLabel ckanValueLabel)
+ValueLabel map(CkanTag ckanTag)
+RetrievedDistribution map(CkanResource ckanResource)
+List<SearchedDataset> map(PackagesSearchResult result)
}
class CkanFilterMapper {
+List<ValueLabel> map(PackagesSearchResponse packagesSearchResponse, String key)
+List<ValueLabel> map(Map<String, CkanFacet> ckanFacets, String key)
+List<ValueLabel> map(CkanFacet ckanFacet)
+List<ValueLabel> map(List<CkanValueLabel> items)
+ValueLabel map(CkanValueLabel valueLabel)
}
classDiagram
class RetrieveFiltersValuesQuery {
-FiltersRepository filtersRepository
+List<ValueLabel> execute(String key)
}
class CkanFiltersRepository {
-CkanQueryApi ckanQueryApi
-CkanFilterMapper ckanFilterMapper
+List<ValueLabel> getValuesForFilter(String key)
}
Change | Details | Files |
---|---|---|
Introduced MapStruct for object mapping |
|
src/main/java/io/github/genomicdatainfrastructure/discovery/datasets/infrastructure/ckan/mapper/CkanDatasetsMapper.java src/main/java/io/github/genomicdatainfrastructure/discovery/filters/infrastructure/mapper/CkanFilterMapper.java src/test/java/io/github/genomicdatainfrastructure/discovery/datasets/infrastructure/ckan/mapper/CkanDatasetsMapperTest.java src/test/java/io/github/genomicdatainfrastructure/discovery/filters/infrastructure/mapper/CkanFilterMapperTest.java |
Added new filter values retrieval functionality |
|
src/main/java/io/github/genomicdatainfrastructure/discovery/filters/application/ports/FiltersRepository.java src/main/java/io/github/genomicdatainfrastructure/discovery/filters/infrastructure/ckan/CkanFiltersRepository.java src/main/java/io/github/genomicdatainfrastructure/discovery/filters/application/usecases/RetrieveFiltersValuesQuery.java src/test/java/io/github/genomicdatainfrastructure/discovery/filters/infrastructure/quarkus/RetrieveFiltersValuesQueryTest.java |
Removed deprecated organization-related code |
|
src/main/java/io/github/genomicdatainfrastructure/discovery/api/OrganizationQueryApiImpl.java src/main/java/io/github/genomicdatainfrastructure/discovery/datasets/application/ports/OrganizationsRepository.java src/main/java/io/github/genomicdatainfrastructure/discovery/datasets/infrastructure/ckan/persistence/CkanOrganizationsRepository.java |
Updated infrastructure configuration |
|
infra/docker-compose.yml infra/start.sh infra/stop.sh .github/workflows/main.yml .github/workflows/release.yml .github/workflows/test.yml pom.xml |
Summary by Sourcery
Promote changes from the main branch, including refactoring CKAN-related components, updating dependencies, and enhancing the build and deployment setup. Add new tests and remove obsolete code related to organization queries.
Enhancements:
Build:
CI:
Deployment:
Tests:
Chores: