Skip to content

[GSK-1552] Fix test suite not being listed on Testing tab#1333

Merged
henchaves merged 14 commits intomainfrom
feature/gsk-1552-test-suite-isnt-listed-if-it-doesnt-contain-a-name
Aug 30, 2023
Merged

[GSK-1552] Fix test suite not being listed on Testing tab#1333
henchaves merged 14 commits intomainfrom
feature/gsk-1552-test-suite-isnt-listed-if-it-doesnt-contain-a-name

Conversation

@henchaves
Copy link
Copy Markdown
Member

Description

This PR aims to fix the error generated when a Test Suite without a name is uploaded. To solve that, basically we add a default name to Suite python class if there is no name before uploading it.

Related Issue

GSK-1552 (available on Linear)

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

@henchaves henchaves added the Python Pull requests that update Python code label Aug 24, 2023
@henchaves henchaves self-assigned this Aug 24, 2023
Copy link
Copy Markdown
Member

@kevinmessiaen kevinmessiaen left a comment

Choose a reason for hiding this comment

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

I think that we should add some check in the backend to throw an error when trying to save a suite with a blank name

Copy link
Copy Markdown
Member

@kevinmessiaen kevinmessiaen left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment thread backend/src/main/java/ai/giskard/service/TestSuiteService.java Outdated
@sonarqubecloud
Copy link
Copy Markdown

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

@henchaves henchaves merged commit 1ca47fc into main Aug 30, 2023
@Hartorn Hartorn deleted the feature/gsk-1552-test-suite-isnt-listed-if-it-doesnt-contain-a-name branch September 13, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Python Pull requests that update Python code

Development

Successfully merging this pull request may close these issues.

2 participants