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

ISSUE-15100: add tooltip for field Text type #15159

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

Alexandr-Nedomets
Copy link
Contributor

Describe your changes:

Fixes

Add tooltip for field "Test type". Text(value from field description) in tooltip will change depend choose Test type.
Sometime comfortably get tooltip for native language

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Copy link
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

Copy link
Contributor

@ShaileshParmar11 ShaileshParmar11 left a comment

Choose a reason for hiding this comment

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

Thanks @Alexandr-Nedomets for the PR, i have left a few comments please let me know if you need any help! also, it would be great if you attach a video of your changes in the description

@@ -74,6 +74,7 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({
const isColumnFqn = dashboardType === ProfilerDashboardType.COLUMN;
const [form] = Form.useForm();
const [testDefinitions, setTestDefinitions] = useState<TestDefinition[]>([]);
const [testDefinition, setTestDefinition] = useState<TestDefinition>({} as TestDefinition);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const [testDefinition, setTestDefinition] = useState<TestDefinition>({} as TestDefinition);
const [testDefinition, setTestDefinition] = useState<TestDefinition>();

Comment on lines +296 to +300
onChange={(value) => {
setTestDefinition(
testDefinitions.find((item) => item.fullyQualifiedName === value) as TestDefinition
);
}}>
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be great if we pull out the inline function to separate function in the code with below changes

Suggested change
onChange={(value) => {
setTestDefinition(
testDefinitions.find((item) => item.fullyQualifiedName === value) as TestDefinition
);
}}>
onChange={(value) => {
setTestDefinition(
testDefinitions.find((item) => item.fullyQualifiedName === value)
);
}}>

@ShaileshParmar11 ShaileshParmar11 added the safe to test Add this label to run secure Github workflows on PRs label Feb 13, 2024
Copy link
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 60%
61.24% (31252/51036) 40.37% (12471/30894) 40.69% (3841/9440)

Copy link

Quality Gate Passed Quality Gate passed for 'open-metadata-ui'

Issues
0 New issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@chirag-madlani chirag-madlani merged commit 79215d1 into open-metadata:main Feb 14, 2024
20 of 26 checks passed
@chirag-madlani chirag-madlani linked an issue Feb 14, 2024 that may be closed by this pull request
ShaileshParmar11 added a commit that referenced this pull request Feb 15, 2024
chirag-madlani pushed a commit that referenced this pull request Feb 15, 2024
* Minor: Addressing comments of #15159

* fixed failing unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Add this label to run secure Github workflows on PRs UI UI specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tooltip for field "Test type"
3 participants