Skip to content

Commit

Permalink
Rename org, repo & packages
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfarla committed Jul 26, 2023
1 parent 69375c9 commit 5daf4f4
Show file tree
Hide file tree
Showing 200 changed files with 701 additions and 734 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023 DotWebStack
Copyright (c) 2023 IMX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Orchestrate
# IMX Orchestrate

![Build status](https://github.com/dotwebstack/orchestrate/actions/workflows/build.yml/badge.svg)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=org.dotwebstack.orchestrate%3Aorchestrate&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.dotwebstack.orchestrate%3Aorchestrate)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=org.dotwebstack.orchestrate%3Aorchestrate&metric=coverage)](https://sonarcloud.io/dashboard?id=org.dotwebstack.orchestrate%3Aorchestrate)
![Build status](https://github.com/imx-org/imx-orchestrate/actions/workflows/build.yml/badge.svg)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nl.geostandaarden.imx.orchestrate%3Aorchestrate&metric=alert_status)](https://sonarcloud.io/dashboard?id=nl.geostandaarden.imx.orchestrate%3Aorchestrate)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nl.geostandaarden.imx.orchestrate%3Aorchestrate&metric=coverage)](https://sonarcloud.io/dashboard?id=nl.geostandaarden.imx.orchestrate%3Aorchestrate)

## Documentation

The documentation can be found here: https://dotwebstack.org/orchestrate/
The documentation can be found here: https://imx-org.github.io/imx-orchestrate/

## License

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Orchestrate
# IMX Orchestrate

This library offers an open-source engine for model-driven orchestration.

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
window.$docsify = {
name: 'Orchestrate',
repo: 'https://github.com/dotwebstack/orchestrate',
repo: 'https://github.com/imx-nl/imx-orchestrate',
loadSidebar: true,
};
</script>
Expand Down
10 changes: 5 additions & 5 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.dotwebstack.orchestrate</groupId>
<groupId>nl.geostandaarden.imx.orchestrate</groupId>
<artifactId>orchestrate</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
Expand All @@ -14,12 +14,12 @@

<dependencies>
<dependency>
<groupId>org.dotwebstack.orchestrate</groupId>
<groupId>nl.geostandaarden.imx.orchestrate</groupId>
<artifactId>orchestrate-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.dotwebstack.orchestrate</groupId>
<groupId>nl.geostandaarden.imx.orchestrate</groupId>
<artifactId>orchestrate-source</artifactId>
<version>${project.version}</version>
</dependency>
Expand All @@ -37,13 +37,13 @@
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.dotwebstack.orchestrate</groupId>
<groupId>nl.geostandaarden.imx.orchestrate</groupId>
<artifactId>orchestrate-source-file</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.dotwebstack.orchestrate</groupId>
<groupId>nl.geostandaarden.imx.orchestrate</groupId>
<artifactId>orchestrate-parser-yaml</artifactId>
<version>${project.version}</version>
<scope>test</scope>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.dotwebstack.orchestrate.engine;
package nl.geostandaarden.imx.orchestrate.engine;

public final class OrchestrateException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.dotwebstack.orchestrate.engine;
package nl.geostandaarden.imx.orchestrate.engine;

import graphql.schema.GraphQLCodeRegistry;
import graphql.schema.idl.TypeDefinitionRegistry;
import org.dotwebstack.orchestrate.model.ComponentRegistry;
import org.dotwebstack.orchestrate.model.types.ValueTypeRegistry;
import nl.geostandaarden.imx.orchestrate.model.ComponentRegistry;
import nl.geostandaarden.imx.orchestrate.model.types.ValueTypeRegistry;

public interface OrchestrateExtension {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.dotwebstack.orchestrate.engine;
package nl.geostandaarden.imx.orchestrate.engine;

import java.util.Map;
import java.util.Set;
import lombok.Builder;
import lombok.Getter;
import lombok.Singular;
import org.dotwebstack.orchestrate.model.ModelMapping;
import org.dotwebstack.orchestrate.source.Source;
import nl.geostandaarden.imx.orchestrate.model.ModelMapping;
import nl.geostandaarden.imx.orchestrate.source.Source;

@Getter
@Builder(toBuilder = true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import java.util.List;
import java.util.Set;
import java.util.function.Function;
import lombok.Singular;
import lombok.experimental.SuperBuilder;
import org.dotwebstack.orchestrate.model.ObjectResult;
import org.dotwebstack.orchestrate.model.ObjectType;
import org.dotwebstack.orchestrate.source.SelectedProperty;
import org.dotwebstack.orchestrate.source.Source;
import nl.geostandaarden.imx.orchestrate.model.ObjectResult;
import nl.geostandaarden.imx.orchestrate.model.ObjectType;
import nl.geostandaarden.imx.orchestrate.source.SelectedProperty;
import nl.geostandaarden.imx.orchestrate.source.Source;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import java.util.List;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;
import org.dotwebstack.orchestrate.engine.OrchestrateException;
import org.dotwebstack.orchestrate.model.ObjectResult;
import org.dotwebstack.orchestrate.source.CollectionRequest;
import org.dotwebstack.orchestrate.model.filters.FilterDefinition;
import nl.geostandaarden.imx.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.model.ObjectResult;
import nl.geostandaarden.imx.orchestrate.source.CollectionRequest;
import nl.geostandaarden.imx.orchestrate.model.filters.FilterDefinition;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import java.util.Map;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import java.util.List;
import org.dotwebstack.orchestrate.model.ObjectResult;
import nl.geostandaarden.imx.orchestrate.model.ObjectResult;
import reactor.core.publisher.Flux;

interface FetchOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import static graphql.schema.GraphQLTypeUtil.isList;
import static graphql.schema.GraphQLTypeUtil.unwrapNonNull;
Expand All @@ -7,11 +7,11 @@
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.mapping;
import static java.util.stream.Collectors.toSet;
import static org.dotwebstack.orchestrate.engine.fetch.FetchUtils.castToMap;
import static org.dotwebstack.orchestrate.engine.fetch.FetchUtils.isReservedField;
import static org.dotwebstack.orchestrate.engine.schema.SchemaConstants.QUERY_FILTER_ARGUMENTS;
import static org.dotwebstack.orchestrate.model.ModelUtils.extractKey;
import static org.dotwebstack.orchestrate.model.ModelUtils.keyExtractor;
import static nl.geostandaarden.imx.orchestrate.engine.fetch.FetchUtils.castToMap;
import static nl.geostandaarden.imx.orchestrate.engine.fetch.FetchUtils.isReservedField;
import static nl.geostandaarden.imx.orchestrate.engine.schema.SchemaConstants.QUERY_FILTER_ARGUMENTS;
import static nl.geostandaarden.imx.orchestrate.model.ModelUtils.extractKey;
import static nl.geostandaarden.imx.orchestrate.model.ModelUtils.keyExtractor;

import graphql.schema.DataFetchingEnvironment;
import graphql.schema.DataFetchingFieldSelectionSet;
Expand All @@ -23,20 +23,20 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.RequiredArgsConstructor;
import org.dotwebstack.orchestrate.engine.OrchestrateException;
import org.dotwebstack.orchestrate.model.AbstractRelation;
import org.dotwebstack.orchestrate.model.Attribute;
import org.dotwebstack.orchestrate.model.InverseRelation;
import org.dotwebstack.orchestrate.model.ModelMapping;
import org.dotwebstack.orchestrate.model.ObjectType;
import org.dotwebstack.orchestrate.model.ObjectTypeRef;
import org.dotwebstack.orchestrate.model.Path;
import org.dotwebstack.orchestrate.model.PathMapping;
import org.dotwebstack.orchestrate.model.Property;
import org.dotwebstack.orchestrate.model.Relation;
import org.dotwebstack.orchestrate.model.filters.FilterDefinition;
import org.dotwebstack.orchestrate.source.SelectedProperty;
import org.dotwebstack.orchestrate.source.Source;
import nl.geostandaarden.imx.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.model.AbstractRelation;
import nl.geostandaarden.imx.orchestrate.model.Attribute;
import nl.geostandaarden.imx.orchestrate.model.InverseRelation;
import nl.geostandaarden.imx.orchestrate.model.ModelMapping;
import nl.geostandaarden.imx.orchestrate.model.ObjectType;
import nl.geostandaarden.imx.orchestrate.model.ObjectTypeRef;
import nl.geostandaarden.imx.orchestrate.model.Path;
import nl.geostandaarden.imx.orchestrate.model.PathMapping;
import nl.geostandaarden.imx.orchestrate.model.Property;
import nl.geostandaarden.imx.orchestrate.model.Relation;
import nl.geostandaarden.imx.orchestrate.model.filters.FilterDefinition;
import nl.geostandaarden.imx.orchestrate.source.SelectedProperty;
import nl.geostandaarden.imx.orchestrate.source.Source;
import org.reactivestreams.Publisher;

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import static graphql.introspection.Introspection.INTROSPECTION_SYSTEM_FIELDS;
import static org.dotwebstack.orchestrate.engine.schema.SchemaConstants.HAS_LINEAGE_FIELD;

import graphql.schema.SelectedField;
import java.util.Map;
import java.util.function.UnaryOperator;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.dotwebstack.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.engine.schema.SchemaConstants;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
final class FetchUtils {

public static boolean isReservedField(SelectedField selectedField, UnaryOperator<String> lineageRenamer) {
var fieldName = selectedField.getName();
return INTROSPECTION_SYSTEM_FIELDS.contains(fieldName) || lineageRenamer.apply(HAS_LINEAGE_FIELD).equals(fieldName);
return INTROSPECTION_SYSTEM_FIELDS.contains(fieldName) || lineageRenamer.apply(SchemaConstants.HAS_LINEAGE_FIELD).equals(fieldName);
}

@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import static graphql.schema.GraphQLTypeUtil.unwrapAll;

Expand All @@ -7,7 +7,7 @@
import graphql.schema.GraphQLObjectType;
import java.util.Map;
import lombok.RequiredArgsConstructor;
import org.dotwebstack.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.engine.OrchestrateException;
import org.reactivestreams.Publisher;

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import static java.util.function.Function.identity;
import static org.dotwebstack.orchestrate.engine.fetch.FetchUtils.cast;
import static org.dotwebstack.orchestrate.model.ModelUtils.extractKey;
import static nl.geostandaarden.imx.orchestrate.engine.fetch.FetchUtils.cast;
import static nl.geostandaarden.imx.orchestrate.model.ModelUtils.extractKey;

import java.util.List;
import java.util.Map;
import lombok.Builder;
import lombok.Getter;
import org.dataloader.DataLoader;
import org.dataloader.DataLoaderFactory;
import org.dotwebstack.orchestrate.model.CollectionResult;
import org.dotwebstack.orchestrate.model.ObjectResult;
import org.dotwebstack.orchestrate.model.Property;
import org.dotwebstack.orchestrate.model.Relation;
import nl.geostandaarden.imx.orchestrate.model.CollectionResult;
import nl.geostandaarden.imx.orchestrate.model.ObjectResult;
import nl.geostandaarden.imx.orchestrate.model.Property;
import nl.geostandaarden.imx.orchestrate.model.Relation;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import java.util.List;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;
import org.dotwebstack.orchestrate.model.ObjectResult;
import org.dotwebstack.orchestrate.source.BatchRequest;
import org.dotwebstack.orchestrate.source.ObjectRequest;
import nl.geostandaarden.imx.orchestrate.model.ObjectResult;
import nl.geostandaarden.imx.orchestrate.source.BatchRequest;
import nl.geostandaarden.imx.orchestrate.source.ObjectRequest;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.dotwebstack.orchestrate.engine.fetch;
package nl.geostandaarden.imx.orchestrate.engine.fetch;

import static org.dotwebstack.orchestrate.engine.fetch.FetchUtils.cast;
import static nl.geostandaarden.imx.orchestrate.engine.fetch.FetchUtils.cast;

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand All @@ -10,9 +10,9 @@
import java.util.Map;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.dotwebstack.orchestrate.engine.OrchestrateException;
import org.dotwebstack.orchestrate.engine.schema.SchemaConstants;
import org.dotwebstack.orchestrate.model.lineage.ObjectLineage;
import nl.geostandaarden.imx.orchestrate.engine.OrchestrateException;
import nl.geostandaarden.imx.orchestrate.engine.schema.SchemaConstants;
import nl.geostandaarden.imx.orchestrate.model.lineage.ObjectLineage;

@RequiredArgsConstructor
public class ObjectLineageFetcher implements DataFetcher<Map<String, Object>> {
Expand All @@ -28,7 +28,7 @@ public Map<String, Object> get(DataFetchingEnvironment environment) {
var hasLineageValue = source.get(SchemaConstants.HAS_LINEAGE_FIELD);

if (hasLineageValue instanceof ObjectLineage objectLineage) {
return renameKeys(cast(OBJECT_MAPPER.convertValue(objectLineage, Map.class)));
return renameKeys(FetchUtils.cast(OBJECT_MAPPER.convertValue(objectLineage, Map.class)));
}

throw new OrchestrateException("Could not fetch object lineage.");
Expand All @@ -42,14 +42,14 @@ private Map<String, Object> renameKeys(Map<String, Object> map) {
var value = entry.getValue();

if (value instanceof Map<?, ?> mapValue) {
return renameKeys(cast(mapValue));
return renameKeys(FetchUtils.cast(mapValue));
}

if (value instanceof List<?> listValue) {
return listValue.stream()
.map(item -> {
if (item instanceof Map<?, ?> mapItem) {
return renameKeys(cast(mapItem));
return renameKeys(FetchUtils.cast(mapItem));
}

return item;
Expand Down
Loading

0 comments on commit 5daf4f4

Please sign in to comment.