Skip to content

Commit

Permalink
Datahub comes up. Needs more UI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rtekal committed Jan 19, 2024
1 parent 6325729 commit d122996
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ public class GmsGraphQLEngine {
private final LineageService lineageService;
private final QueryService queryService;
private final DataProductService dataProductService;
private final ERModelRelationService eRModelRelationService;

private final FeatureFlags featureFlags;

Expand Down Expand Up @@ -445,7 +446,7 @@ public class GmsGraphQLEngine {
private final QueryType queryType;
private final DataProductType dataProductType;
private final OwnershipType ownershipType;
private final ERModelRelationService ermodelrelationService;


/**
* A list of GraphQL Plugins that extend the core engine
Expand Down Expand Up @@ -511,7 +512,7 @@ public GmsGraphQLEngine(final GmsGraphQLEngineArgs args) {
this.settingsService = args.settingsService;
this.lineageService = args.lineageService;
this.queryService = args.queryService;
this.ermodelrelationService = args.ermodelrelationService;
this.eRModelRelationService = args.eRModelRelationService;
this.dataProductService = args.dataProductService;

this.ingestionConfiguration = Objects.requireNonNull(args.ingestionConfiguration);
Expand Down Expand Up @@ -937,7 +938,7 @@ private void configureMutationResolvers(final RuntimeWiring.Builder builder) {
.dataFetcher("updateCorpUserProperties", new MutableTypeResolver<>(corpUserType))
.dataFetcher("updateCorpGroupProperties", new MutableTypeResolver<>(corpGroupType))
.dataFetcher("updateERModelRelation", new UpdateERModelRelationResolver(this.entityClient))
.dataFetcher("createERModelRelation", new CreateERModelRelationResolver(this.entityClient, this.ermodelrelationService))
.dataFetcher("createERModelRelation", new CreateERModelRelationResolver(this.entityClient, this.eRModelRelationService))
.dataFetcher("addTag", new AddTagResolver(entityService))
.dataFetcher("addTags", new AddTagsResolver(entityService))
.dataFetcher("batchAddTags", new BatchAddTagsResolver(entityService))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ public class GmsGraphQLEngineArgs {
QueryService queryService;
FeatureFlags featureFlags;
DataProductService dataProductService;
ERModelRelationService ermodelrelationService;
ERModelRelationService eRModelRelationService;
//any fork specific args should go below this line
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class CreateERModelRelationResolver implements DataFetcher<CompletableFuture<ERModelRelation>> {

private final EntityClient _entityClient;
private final ERModelRelationService _ermodelrelationService;
private final ERModelRelationService _eRModelRelationService;

@Override
public CompletableFuture<ERModelRelation> get(DataFetchingEnvironment environment) throws Exception {
Expand Down Expand Up @@ -79,7 +79,7 @@ public CompletableFuture<ERModelRelation> get(DataFetchingEnvironment environmen
} catch (RemoteInvocationException e) {
throw new RuntimeException("Failed to create ermodelrelation entity", e);
}
return ERModelRelationMapper.map(_ermodelrelationService.getERModelRelationResponse(Urn.createFromString(inputUrn.toString()), authentication));
return ERModelRelationMapper.map(_eRModelRelationService.getERModelRelationResponse(Urn.createFromString(inputUrn.toString()), authentication));
} catch (Exception e) {
log.error("Failed to create ERModelRelation to resource with input {}, {}", input, e.getMessage());
throw new RuntimeException(String.format("Failed to create ermodelrelation to resource with input %s", input), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.linkedin.common.CustomProperties
* Properties associated with a ERModelRelation
*/
@Aspect = {
"name": "ermodelrelationProperties"
"name": "eRModelRelationProperties"
}
record ERModelRelationProperties includes CustomProperties {

Expand Down
2 changes: 1 addition & 1 deletion metadata-models/src/main/resources/entity-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ entities:
doc: ER Model Relation of Dataset Fields
keyAspect: ermodelrelationKey
aspects:
- erModelRelationProperties
- eRModelRelationProperties
- editableERModelRelationProperties
- institutionalMemory
- ownership
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ERModelRelationServiceFactory {
@Qualifier("systemAuthentication")
private Authentication _authentication;

@Bean(name = "ermodelrelationService")
@Bean(name = "eRModelRelationService")
@Scope("singleton")
@Nonnull
protected ERModelRelationService getInstance() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public class GraphQLEngineFactory {
private QueryService _queryService;

@Autowired
@Qualifier("ermodelrelationService")
private ERModelRelationService _ermodelrelationService;
@Qualifier("eRModelRelationService")
private ERModelRelationService _eRModelRelationService;

@Autowired
@Qualifier("dataProductService")
Expand Down Expand Up @@ -214,7 +214,7 @@ protected GraphQLEngine getInstance() {
args.setSettingsService(_settingsService);
args.setLineageService(_lineageService);
args.setQueryService(_queryService);
args.setErmodelrelationService(_ermodelrelationService);
args.setERModelRelationService(_eRModelRelationService);
args.setFeatureFlags(_configProvider.getFeatureFlags());
args.setDataProductService(_dataProductService);
return new GmsGraphQLEngine(
Expand Down

0 comments on commit d122996

Please sign in to comment.