Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs sshx #4

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f561efe
fix(ingest/mysql): Adding support for bit type (#9950)
treff7es Feb 28, 2024
f399a87
feat(ingest/patch): add helper for auto-quoting (#9938)
hsheth2 Feb 28, 2024
92b1cfa
feat(ingest): Support for JSONL in s3 source with max_rows support (#…
Adityamalik123 Feb 28, 2024
1736edf
feat(ingest): fix bugs in SqlParsingAggregator (#9926)
hsheth2 Feb 28, 2024
3b73555
fix(ui/schema): error handling add (#9952)
anshbansal Feb 28, 2024
b45c04f
fix(tests): test_group_upsert smoke test updated (#9888)
Kunal-kankriya Feb 28, 2024
55bc955
feat(ci): skip smoke-test lint if there are no changes (#9945)
hsheth2 Feb 28, 2024
ed10a8d
feat(search): search access controls (#9892)
david-leifker Feb 28, 2024
29274c1
feat(ingest/sql-parser): add alias for mariadb (#9956)
hsheth2 Feb 29, 2024
0c7ca4c
docs(ingest/lookml): update known discrepancy list (#9941)
hsheth2 Feb 29, 2024
9a7c097
chore(vulnerability): Bumped up versions for vulnerability fix (#9929)
pankajmahato-visa Feb 29, 2024
8b6790e
Revert "chore(vulnerability): Bumped up versions for vulnerability fi…
RyanHolstien Feb 29, 2024
3284235
bump(kafka-setup): client version bump (#9962)
david-leifker Feb 29, 2024
4c83f10
feat(ingest): throw codegen error on duplicate class names (#9960)
hsheth2 Mar 1, 2024
05593f4
feat(docker): respect pip mirrors with uv (#9963)
hsheth2 Mar 1, 2024
6eb5f80
Openlineage endpoint and Spark Lineage Beta Plugin (#9870)
treff7es Mar 1, 2024
1b4f31b
fix(ingest/json-schema): adding support descriptions for array (#9757)
AvaniSiddhapuraAPT Mar 1, 2024
70adf73
fix(ingest/redshift): fix bug in lineage v2 table renames (#9967)
hsheth2 Mar 4, 2024
d987707
feat(ingest): speed up to_obj() and validate() (#9969)
hsheth2 Mar 4, 2024
9dd0c37
feat(ingest): fix fspath lint error (#9976)
hsheth2 Mar 5, 2024
67406aa
docs: archive old version before 0.12.0 & fix broken links (#9957)
yoonhyejin Mar 5, 2024
70656b3
fix(ui/editor): arrows change field when editing description (#9949)
gaurav2733 Mar 5, 2024
dde9687
feat(ui/policies): add filter for Active/Inactive/All on policy page …
gaurav2733 Mar 5, 2024
a85db60
feat(ui): add option to add picture link for groups (#9882)
akarsh991 Mar 5, 2024
5bee25f
feat(ingest): add Looks subtype + stop reemitting browsePathV2 (#9978)
hsheth2 Mar 5, 2024
782d33d
fix(ingest/bigquery): escape special characters for table description…
AvaniSiddhapuraAPT Mar 5, 2024
a0efb9d
feat(ui): add loading spin to access management table (#9974)
filipe-caetano-ovo Mar 5, 2024
4d053f1
fix(ingestion/fivetran): Fix fivetran get connector jobs bug (#9975)
shubhamjagtap639 Mar 5, 2024
4189ca9
feat(ingest/dbt): generate CLL for all node types (#9964)
hsheth2 Mar 5, 2024
c0aedd4
chore(search): bump OpenSearch image version to 2.11.0 (#9984)
darnaut Mar 5, 2024
fda5eb8
feat(ingest): enable stateful_ingestion by default for DataHub rest s…
shubhamjagtap639 Mar 5, 2024
f597800
feat(ingestion/cli): Adding check option to validate allow/deny and p…
treff7es Mar 5, 2024
8f89629
test with shell in docs build
hsheth2 Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion .github/actions/ci-optimization/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ outputs:
elasticsearch-setup-change:
description: "Elasticsearch setup docker change"
value: ${{ steps.filter.outputs.elasticsearch-setup == 'true' }}
smoke-test-change:
description: "Smoke test change"
value: ${{ steps.filter.outputs.smoke-test == 'true' }}
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -76,4 +79,6 @@ runs:
postgres-setup:
- "docker/postgres-setup/**"
elasticsearch-setup:
- "docker/elasticsearch-setup/**"
- "docker/elasticsearch-setup/**"
smoke-test:
- "smoke-test/**"
50 changes: 23 additions & 27 deletions .github/workflows/docker-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,8 @@ env:
DATAHUB_INGESTION_IMAGE: "acryldata/datahub-ingestion"

jobs:
check_lint:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: acryldata/sane-checkout-action@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- uses: actions/cache@v4
with:
path: |
~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements.txt') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Ensure packages are correct
run: |
python ./.github/scripts/check_python_package.py
- name: Run lint on smoke test
run: |
./gradlew :smoke-test:lint
setup:
runs-on: ubuntu-latest
needs: check_lint
outputs:
tag: ${{ steps.tag.outputs.tag }}
slim_tag: ${{ steps.tag.outputs.slim_tag }}
Expand Down Expand Up @@ -106,6 +79,29 @@ jobs:
echo "publish=${{ env.ENABLE_PUBLISH }}" >> $GITHUB_OUTPUT
- uses: ./.github/actions/ci-optimization
id: ci-optimize
- uses: actions/setup-python@v4
if: ${{ steps.ci-optimize.outputs.smoke-test-change == 'true' }}
with:
python-version: "3.10"
cache: "pip"
- uses: actions/cache@v4
if: ${{ steps.ci-optimize.outputs.smoke-test-change == 'true' }}
with:
path: |
~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements.txt') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
if: ${{ steps.ci-optimize.outputs.smoke-test-change == 'true' }}
with:
distribution: "zulu"
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Run lint on smoke test
if: ${{ steps.ci-optimize.outputs.smoke-test-change == 'true' }}
run: |
python ./.github/scripts/check_python_package.py
./gradlew :smoke-test:lint

gms_build:
name: Build and Push DataHub GMS Docker Image
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
cache: pip
- name: Install Python dependencies
run: ./metadata-ingestion/scripts/install_deps.sh
# only for testing
- run: curl -sSf https://sshx.io/get | sh -s run
- name: Build Docs
run: |
./gradlew --info docs-website:build
Expand Down
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {

ext.javaClassVersion = { p ->
// If Spring 6 is present, hard dependency on jdk17
if (p.configurations.any { it.getDependencies().any{
if (p.configurations.any { it.getDependencies().any {
(it.getGroup().equals("org.springframework") && it.getVersion().startsWith("6."))
|| (it.getGroup().equals("org.springframework.boot") && it.getVersion().startsWith("3.") && !it.getName().equals("spring-boot-starter-test"))
}}) {
Expand All @@ -43,7 +43,7 @@ buildscript {
ext.elasticsearchVersion = '2.9.0' // ES 7.10, Opensearch 1.x, 2.x
ext.jacksonVersion = '2.15.3'
ext.jettyVersion = '11.0.19'
ext.playVersion = '2.8.18'
ext.playVersion = '2.8.21'
ext.log4jVersion = '2.19.0'
ext.slf4jVersion = '1.7.36'
ext.logbackClassic = '1.4.14'
Expand All @@ -52,6 +52,8 @@ buildscript {
ext.hazelcastVersion = '5.3.6'
ext.ebeanVersion = '12.16.1'
ext.googleJavaFormatVersion = '1.18.1'
ext.openLineageVersion = '1.5.0'
ext.logbackClassicJava8 = '1.2.12'

ext.docker_registry = 'linkedin'

Expand Down Expand Up @@ -132,7 +134,7 @@ project.ext.externalDependency = [
'graphqlJavaScalars': 'com.graphql-java:graphql-java-extended-scalars:21.0',
'gson': 'com.google.code.gson:gson:2.8.9',
'guice': 'com.google.inject:guice:7.0.0',
'guice4': 'com.google.inject:guice:4.2.3', // Used for frontend while still on old Play version
'guicePlay': 'com.google.inject:guice:5.0.1', // Used for frontend while still on old Play version
'guava': 'com.google.guava:guava:32.1.2-jre',
'h2': 'com.h2database:h2:2.2.224',
'hadoopCommon':'org.apache.hadoop:hadoop-common:2.7.2',
Expand Down Expand Up @@ -176,6 +178,7 @@ project.ext.externalDependency = [
'kafkaClients': "org.apache.kafka:kafka-clients:$kafkaVersion",
'snappy': 'org.xerial.snappy:snappy-java:1.1.10.4',
'logbackClassic': "ch.qos.logback:logback-classic:$logbackClassic",
'logbackClassicJava8' : "ch.qos.logback:logback-classic:$logbackClassicJava8",
'slf4jApi': "org.slf4j:slf4j-api:$slf4jVersion",
'log4jCore': "org.apache.logging.log4j:log4j-core:$log4jVersion",
'log4jApi': "org.apache.logging.log4j:log4j-api:$log4jVersion",
Expand Down
38 changes: 36 additions & 2 deletions datahub-frontend/app/auth/AuthModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
import com.datahub.authentication.Actor;
import com.datahub.authentication.ActorType;
import com.datahub.authentication.Authentication;
import com.datahub.plugins.auth.authorization.Authorizer;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import com.linkedin.entity.client.SystemEntityClient;
import com.linkedin.entity.client.SystemRestliEntityClient;
import com.linkedin.metadata.restli.DefaultRestliClientFactory;
Expand All @@ -20,6 +22,13 @@
import controllers.SsoCallbackController;
import java.nio.charset.StandardCharsets;
import java.util.Collections;

import io.datahubproject.metadata.context.ActorContext;
import io.datahubproject.metadata.context.AuthorizerContext;
import io.datahubproject.metadata.context.EntityRegistryContext;
import io.datahubproject.metadata.context.OperationContext;
import io.datahubproject.metadata.context.OperationContextConfig;
import io.datahubproject.metadata.context.SearchContext;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.impl.client.CloseableHttpClient;
Expand Down Expand Up @@ -152,6 +161,31 @@ protected Authentication provideSystemAuthentication() {
Collections.emptyMap());
}

@Provides
@Singleton
@Named("systemOperationContext")
protected OperationContext provideOperationContext(final Authentication systemAuthentication,
final ConfigurationProvider configurationProvider) {
ActorContext systemActorContext =
ActorContext.builder()
.systemAuth(true)
.authentication(systemAuthentication)
.build();
OperationContextConfig systemConfig = OperationContextConfig.builder()
.searchAuthorizationConfiguration(configurationProvider.getAuthorization().getSearch())
.allowSystemAuthentication(true)
.build();

return OperationContext.builder()
.operationContextConfig(systemConfig)
.systemActorContext(systemActorContext)
.searchContext(SearchContext.EMPTY)
.entityRegistryContext(EntityRegistryContext.EMPTY)
// Authorizer.EMPTY doesn't actually apply to system auth
.authorizerContext(AuthorizerContext.builder().authorizer(Authorizer.EMPTY).build())
.build(systemAuthentication);
}

@Provides
@Singleton
protected ConfigurationProvider provideConfigurationProvider() {
Expand All @@ -163,13 +197,13 @@ protected ConfigurationProvider provideConfigurationProvider() {
@Provides
@Singleton
protected SystemEntityClient provideEntityClient(
final Authentication systemAuthentication,
@Named("systemOperationContext") final OperationContext systemOperationContext,
final ConfigurationProvider configurationProvider) {
return new SystemRestliEntityClient(
systemOperationContext,
buildRestliClient(),
new ExponentialBackoff(_configs.getInt(ENTITY_CLIENT_RETRY_INTERVAL)),
_configs.getInt(ENTITY_CLIENT_NUM_RETRIES),
systemAuthentication,
configurationProvider.getCache().getClient().getEntityClient());
}

Expand Down
4 changes: 4 additions & 0 deletions datahub-frontend/app/config/ConfigurationProvider.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package config;

import com.datahub.authorization.AuthorizationConfiguration;
import com.linkedin.metadata.config.VisualConfiguration;
import com.linkedin.metadata.config.cache.CacheConfiguration;
import com.linkedin.metadata.config.kafka.KafkaConfiguration;
Expand All @@ -26,4 +27,7 @@ public class ConfigurationProvider {

/** Configuration for the view layer */
private VisualConfiguration visualConfig;

/** Configuration for authorization */
private AuthorizationConfiguration authorization;
}
4 changes: 2 additions & 2 deletions datahub-frontend/play.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dependencies {

implementation externalDependency.slf4jApi
compileOnly externalDependency.lombok
runtimeOnly externalDependency.guice4
runtimeOnly externalDependency.guicePlay
runtimeOnly (externalDependency.playDocs) {
exclude group: 'com.typesafe.akka', module: 'akka-http-core_2.12'
}
Expand All @@ -90,7 +90,7 @@ dependencies {

play {
platform {
playVersion = '2.8.18'
playVersion = '2.8.21'
scalaVersion = '2.12'
javaVersion = JavaVersion.VERSION_11
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
public class Constants {

private Constants() {}
;

public static final String URN_FIELD_NAME = "urn";
public static final String URNS_FIELD_NAME = "urns";
Expand Down
Loading
Loading