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

UI Common Build Fixes #13

Merged
merged 5 commits into from
Jun 2, 2022
Merged

Conversation

agiron123
Copy link
Contributor

Changes to fix build issues with aqueducthq/common. Also updates version number to 0.0.3.

Related to:
https://linear.app/aqueducthq/issue/ENG-1109/refactor-ui-enterprise-to-import-from-ui-components-package

import {theme} from "../../../styles/theme/theme";

type AqueductQuadraticProps = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are no longer needed and we can just use the built in EdgeProps type that comes with react-flow.


type AqueductBezierProps = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are no longer needed and we can just use the built in EdgeProps type that comes with react-flow.

import {theme} from "../../../styles/theme/theme";

type AqueductStraightProps = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are no longer needed and we can just use the built in EdgeProps type that comes with react-flow.

@@ -25,7 +25,6 @@ import {
RelationalDBExtractParams,
RelationalDBLoadParams
} from "../../../utils/operators";
import { CopyBlock } from "react-code-blocks";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CopyBlock is giving us some trouble with building, so removing it for now.

We should revisit and find another component to use for the code blocks/copying in another task.

@vsreekanti I noticed that there is a related PR here:
https://github.com/aqueducthq/enterprise/pull/521

Perhaps @Boyuan-Deng can take this on as some future work?

@@ -10,12 +10,6 @@ import AqueductQuadratic from "../components/workflows/edges/AqueductQuadratic";

const { httpProtocol, apiAddress } = useAqueductConsts();

export const INITIAL_DATABASE_NODE_ID = 'initial_database';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also no longer used, so yanked them out

@agiron123 agiron123 force-pushed the ENG-1109-use-ui-common-common-changes branch from d1efc82 to 5a85bd3 Compare June 1, 2022 23:47
@@ -1,9411 +0,0 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentionally removed @agiron123?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took this out to get fresh packages, but I expected it to be re-generated again for me. When installing via npm link apparently this does not get generated.

I will go ahead and publish the common package and re-generate this file before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there was some weirdness with the package-lock being regenerated properly and what not.

Instead there is another package to use, according to this github thread:
rogeriochaves/npm-force-resolutions#36

Things are now working properly and this package is now used in both common and app.

@agiron123 agiron123 merged commit 04b52ee into main Jun 2, 2022
@agiron123 agiron123 deleted the ENG-1109-use-ui-common-common-changes branch June 2, 2022 19:59
agiron123 added a commit that referenced this pull request Jun 8, 2022
Fixes build errors on ui-common and app. Bumps version of ui-common to latest version. (0.0.4 at time of writing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants