mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-13 09:52:46 +00:00
chore: cleanup references to the old ember app (#5797)
Co-authored-by: Shirshanka Das <shirshanka@apache.org>
This commit is contained in:
parent
762bcbb168
commit
c44fd626d8
@ -118,7 +118,7 @@ ui.new.browse.dataset = true
|
|||||||
|
|
||||||
# React App Authentication
|
# React App Authentication
|
||||||
# ~~~~~
|
# ~~~~~
|
||||||
# React currently supports OIDC SSO + self-configured JAAS (same as Ember) for authentication. Below you can find the supported configurations for
|
# React currently supports OIDC SSO + self-configured JAAS for authentication. Below you can find the supported configurations for
|
||||||
# each mechanism.
|
# each mechanism.
|
||||||
#
|
#
|
||||||
# Required OIDC Configuration Values:
|
# Required OIDC Configuration Values:
|
||||||
|
|||||||
@ -13,11 +13,7 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
if (project.hasProperty('enableEmber') && project.getProperty('enableEmber').toBoolean()) {
|
|
||||||
assets project(path: ':datahub-web', configuration: 'assets')
|
|
||||||
} else {
|
|
||||||
assets project(path: ':datahub-web-react', configuration: 'assets')
|
assets project(path: ':datahub-web-react', configuration: 'assets')
|
||||||
}
|
|
||||||
|
|
||||||
constraints {
|
constraints {
|
||||||
play('org.springframework:spring-core:5.2.3.RELEASE')
|
play('org.springframework:spring-core:5.2.3.RELEASE')
|
||||||
|
|||||||
@ -5,15 +5,14 @@ title: "datahub-web-react"
|
|||||||
# DataHub React App
|
# DataHub React App
|
||||||
|
|
||||||
## About
|
## About
|
||||||
This module contains a React version of the DataHub UI. This is now the production version of the DataHub client experience.
|
This module contains a React application that serves as the DataHub UI.
|
||||||
Notice that this is a completely separate frontend experience from the legacy Ember app and will remain so as it evolves.
|
|
||||||
|
|
||||||
Feel free to take a look around, deploy, and contribute.
|
Feel free to take a look around, deploy, and contribute.
|
||||||
|
|
||||||
For details about the motivation please see [this RFC](../docs/rfc/active/2055-react-app/README.md).
|
For details about the motivation please see [this RFC](../docs/rfc/active/2055-react-app/README.md).
|
||||||
|
|
||||||
## Functional Goals
|
## Functional Goals
|
||||||
The initial milestone for the app was to achieve functional parity with the existing Ember app. This meant supporting
|
The initial milestone for the app was to achieve functional parity with the previous Ember app. This meant supporting
|
||||||
|
|
||||||
- Dataset Profiles, Search, Browse Experience
|
- Dataset Profiles, Search, Browse Experience
|
||||||
- User Profiles, Search
|
- User Profiles, Search
|
||||||
@ -22,7 +21,7 @@ The initial milestone for the app was to achieve functional parity with the exis
|
|||||||
This has since been achieved. The new set of functional goals are reflected in the latest version of the [DataHub Roadmap](../docs/roadmap.md).
|
This has since been achieved. The new set of functional goals are reflected in the latest version of the [DataHub Roadmap](../docs/roadmap.md).
|
||||||
|
|
||||||
## Design Goals
|
## Design Goals
|
||||||
In building out the client experience, we intend to leverage learnings from the Ember app and incorporate feedback gathered
|
In building out the client experience, we intend to leverage learnings from the previous Ember-based app and incorporate feedback gathered
|
||||||
from organizations operating DataHub. Two themes have emerged to serve as guideposts:
|
from organizations operating DataHub. Two themes have emerged to serve as guideposts:
|
||||||
|
|
||||||
1. **Configurability**: The client experience should be configurable, such that deploying organizations can tailor certain
|
1. **Configurability**: The client experience should be configurable, such that deploying organizations can tailor certain
|
||||||
|
|||||||
@ -15,14 +15,13 @@ FROM --platform=$BUILDPLATFORM node:16.13.0-alpine3.14 AS prod-build
|
|||||||
RUN apk --no-cache --update-cache --available upgrade \
|
RUN apk --no-cache --update-cache --available upgrade \
|
||||||
&& apk --no-cache add perl openjdk8
|
&& apk --no-cache add perl openjdk8
|
||||||
|
|
||||||
ARG ENABLE_EMBER="false"
|
|
||||||
ARG USE_SYSTEM_NODE="true"
|
ARG USE_SYSTEM_NODE="true"
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
ENV GRADLE_OPTS="-Xms256m -Xmx512m"
|
ENV GRADLE_OPTS="-Xms256m -Xmx512m"
|
||||||
COPY . datahub-src
|
COPY . datahub-src
|
||||||
RUN cd datahub-src \
|
RUN cd datahub-src \
|
||||||
&& ./gradlew :datahub-web-react:build -x test -x yarnTest -x yarnLint \
|
&& ./gradlew :datahub-web-react:build -x test -x yarnTest -x yarnLint \
|
||||||
&& ./gradlew :datahub-frontend:dist -PenableEmber=${ENABLE_EMBER} -PuseSystemNode=${USE_SYSTEM_NODE} -x test -x yarnTest -x yarnLint \
|
&& ./gradlew :datahub-frontend:dist -PuseSystemNode=${USE_SYSTEM_NODE} -x test -x yarnTest -x yarnLint \
|
||||||
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
|
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
|
||||||
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip
|
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip
|
||||||
|
|
||||||
|
|||||||
@ -14,11 +14,6 @@ If using React app:
|
|||||||
http://localhost:9002
|
http://localhost:9002
|
||||||
```
|
```
|
||||||
|
|
||||||
If using legacy Ember app:
|
|
||||||
```
|
|
||||||
http://localhost:9001
|
|
||||||
```
|
|
||||||
|
|
||||||
You can sign in with `datahub` as username and password.
|
You can sign in with `datahub` as username and password.
|
||||||
|
|
||||||
## Build instructions
|
## Build instructions
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Quickstarts an Ember-serving variant of DataHub by pulling all images from dockerhub and then running the containers locally.
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
||||||
export DATAHUB_VERSION=${DATAHUB_VERSION:-head}
|
|
||||||
cd $DIR && docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.ember.yml pull && docker-compose -p datahub \
|
|
||||||
-f docker-compose.yml \
|
|
||||||
-f docker-compose.override.yml \
|
|
||||||
-f docker-compose.ember.yml \
|
|
||||||
up \
|
|
||||||
--scale datahub-frontend-react=0
|
|
||||||
Loading…
x
Reference in New Issue
Block a user