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

feat(ingestion): Adds more advanced configurations for runtime debugging #8998

Merged
merged 13 commits into from
Oct 21, 2023

Conversation

pedro93
Copy link
Collaborator

@pedro93 pedro93 commented Oct 12, 2023

Checklist

Adds advanced configurations for specifying environment variables, DataHub plugins and pip packages at runtime for managed ingestion.

This feature is specific to managed ingestion as it uses logic in datahub actions.
Tested manually.
Here is a screenshot of how it looks:

Screenshot 2023-10-11 at 23 16 36
  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added ingestion PR or Issue related to the ingestion of metadata docs Issues and Improvements to docs product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Oct 12, 2023
Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

looking good! I have some suggestions but nothing major on my end

docker/build.gradle Show resolved Hide resolved
Comment on lines +207 to +239
<Form.Item label={<Typography.Text strong>Extra Enviroment Variables</Typography.Text>}>
<Typography.Paragraph>
Advanced: Set extra environment variables to an ingestion execution
</Typography.Paragraph>
<Input
data-testid="extra-args-input"
placeholder='{"MY_CUSTOM_ENV": "my_custom_value2"}'
value={retrieveExtraEnvs()}
onChange={(event) => setExtraEnvs(event.target.value)}
/>
</Form.Item>
<Form.Item label={<Typography.Text strong>Extra DataHub plugins</Typography.Text>}>
<Typography.Paragraph>
Advanced: Set extra DataHub plugins for an ingestion execution
</Typography.Paragraph>
<Input
data-testid="extra-pip-plugin-input"
placeholder='["debug"]'
value={retrieveExtraDataHubPlugins()}
onChange={(event) => setExtraDataHubPlugins(event.target.value)}
/>
</Form.Item>
<Form.Item label={<Typography.Text strong>Extra Pip Libraries</Typography.Text>}>
<Typography.Paragraph>
Advanced: Add extra pip libraries for an ingestion execution
</Typography.Paragraph>
<Input
data-testid="extra-pip-reqs-input"
placeholder='["sqlparse==0.4.3"]'
value={retrieveExtraReqs()}
onChange={(event) => setExtraReqs(event.target.value)}
/>
</Form.Item>
Copy link
Collaborator

Choose a reason for hiding this comment

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

so im trying to get better at enforcing small component because that keeps the frontend so much cleaner and easier to reason about. I'd move each of these inputs into their own new small file and component where in each of those the getter and setter logic can live. ie. retrieveExtraReqs and setExtraReqs can live in its own component where you render the input for Extra Pip Libraries

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

cool beans

@pedro93 pedro93 merged commit 86e0023 into datahub-project:master Oct 21, 2023
58 checks passed
@pedro93 pedro93 deleted the ps-advanced-ingestion branch October 21, 2023 15:21
@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops PR or Issue related to DataHub backend & deployment docs Issues and Improvements to docs hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX release-0.12.0 PRs targeted for Release 0.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants