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

FIXES #14049 - Split test case resolution status from test case result #14204

Merged
merged 29 commits into from
Dec 5, 2023

Conversation

TeddyCr
Copy link
Contributor

@TeddyCr TeddyCr commented Dec 1, 2023

Describe your changes:

Fixes #14049

Context
Test case resolution has been linked to the test case result itself. In this PR we split the test case resolution from the test case result into its own timeseries entity -- test case results keep a reference to an open test case resolution on failure.

  • Implement CRUD operations for test case resolution
  • Implement logic to index and retrieve test case resolution entities
  • Implement logic to link test case failure with a test case resolution
  • Added sample test case resolution data

IMPORTANT
The UI changed have been made to keep the UI functioning though this is a temporary change. Currently the test case resolution is not implemented from a UI point of view cc @ShaileshParmar11.

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.

Improvement

  • I have added tests around the new logic.
  • For connector/ingestion changes: I updated the documentation.
  • I have added the tag Backward-Incompatible-Change.

@github-actions github-actions bot added UI UI specific issues Ingestion backend safe to test Add this label to run secure Github workflows on PRs labels Dec 1, 2023
@TeddyCr TeddyCr changed the title FIX #14049 - Split test case resolution status from test case result FIXES #14049 - Split test case resolution status from test case result Dec 1, 2023
Copy link
Contributor

github-actions bot commented Dec 1, 2023

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 48%
49% (24049/49079) 30.55% (9021/29524) 30.45% (2731/8968)

@ShaileshParmar11
Copy link
Contributor

cc @Ashish8689

@TeddyCr TeddyCr requested a review from harshach December 4, 2023 11:15
Copy link
Contributor

github-actions bot commented Dec 4, 2023

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

Copy link

sonarqubecloud bot commented Dec 4, 2023

[open-metadata-ui] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link

sonarqubecloud bot commented Dec 4, 2023

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

57.1% 57.1% Coverage
0.0% 0.0% Duplication

@TeddyCr TeddyCr enabled auto-merge (squash) December 4, 2023 17:10
@TeddyCr TeddyCr merged commit 3bbf55f into open-metadata:main Dec 5, 2023
21 checks passed
MrVinegar pushed a commit to MrVinegar/OpenMetadata that referenced this pull request Dec 15, 2023
…st case result (open-metadata#14204)

* refactor: entityFQN as ListFilter condition

* feat: implement resolution entity timeseries

* fix: rename to testCaseResolutionStatus

* ref: extracted ES query builder into private method

* ref: extract OS query builder in its own method

* ref: remove ingestion logic for test case resolution

* fix: reorganize json schemas to fix circular import in Python

* ref: object names in typescript code

* feat: added indexing of test case resolution

* feat: added test case resolution sample data

* fix: test case resolution api logic

* fix: audit logger for entityTimeSeriesInterface

* fix: DDL generation

* style: python linting

* fix: skip UI test case resolution tests

* fix: remove extension field

* fix: renamed testCaseFailureStatus to testCaseResolutionStatus

* fix: remove reviewer

* fix: rename sequenceId to stateId

* fix: re adjust search weights

* fix: removed InReview status

* style: ran python linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backward-Incompatible-Change Ingestion 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.

Separate status from test case result
3 participants