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

refactor(api): rework AssetScan General status #981

Merged
merged 9 commits into from
Dec 12, 2023

Conversation

adamtagscherer
Copy link
Contributor

@adamtagscherer adamtagscherer commented Nov 28, 2023

Description

This PR removes the AssetScan.Status.General property and moves it to AssetScan.Status one step higher.
Also it creates proper status states specific to the AssetScan API object and enforces it's state transitions when calling the API.

issue: #664

Type of Change

[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@adamtagscherer adamtagscherer changed the title refactor(status): rework AssetScan General status refactor(api): rework AssetScan General status Nov 29, 2023

This comment has been minimized.

@adamtagscherer adamtagscherer force-pushed the general-asset-scan-status-refactor branch from 37f4702 to bde5865 Compare December 6, 2023 13:41

This comment has been minimized.

@adamtagscherer adamtagscherer marked this pull request as ready for review December 6, 2023 14:02
@adamtagscherer adamtagscherer requested a review from a team as a code owner December 6, 2023 14:02
ramizpolic
ramizpolic previously approved these changes Dec 6, 2023
Copy link
Member

@ramizpolic ramizpolic left a comment

Choose a reason for hiding this comment

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

Well done on the overall design and implementation, looks great! 🚀

api/openapi.yaml Outdated Show resolved Hide resolved
api/models/assetscanstatus.go Show resolved Hide resolved

This comment has been minimized.

@adamtagscherer adamtagscherer force-pushed the general-asset-scan-status-refactor branch from e5beefe to 58b69e6 Compare December 12, 2023 11:56

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

Hey!

Your images are ready:

  • ghcr.io/openclarity/vmclarity-apiserver-dev:pr981-0b343870d6470361266f3e83312b7da9b9ddbdb7
  • ghcr.io/openclarity/vmclarity-orchestrator-dev:pr981-0b343870d6470361266f3e83312b7da9b9ddbdb7
  • ghcr.io/openclarity/vmclarity-ui-backend-dev:pr981-0b343870d6470361266f3e83312b7da9b9ddbdb7
  • ghcr.io/openclarity/vmclarity-ui-dev:pr981-0b343870d6470361266f3e83312b7da9b9ddbdb7
  • ghcr.io/openclarity/vmclarity-cli-dev:pr981-0b343870d6470361266f3e83312b7da9b9ddbdb7

Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@chrisgacsal chrisgacsal self-requested a review December 12, 2023 16:59
@adamtagscherer adamtagscherer added this pull request to the merge queue Dec 12, 2023
Merged via the queue into main with commit 5f5695b Dec 12, 2023
33 checks passed
@adamtagscherer adamtagscherer deleted the general-asset-scan-status-refactor branch December 12, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants