generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(componentInstance): add parentId support to ComponentInstance #743
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
Open
dustindemmerle
wants to merge
23
commits into
main
Choose a base branch
from
dustindemmerle/issue-693/new_component-instance_self-referencing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(componentInstance): add parentId support to ComponentInstance #743
dustindemmerle
wants to merge
23
commits into
main
from
dustindemmerle/issue-693/new_component-instance_self-referencing
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On-behalf-of: SAP Michal Krzyz <michal.krzyz@sap.com> Signed-off-by: Michal Krzyz <michalkrzyz@gmail.com>
michalkrzyz
reviewed
Jun 12, 2025
…date methods fix(database): update ResetSchema to accept dbName parameter and adjust related logic - changes from Michals branch chore(Makefile): reorder dependencies in build and run targets
e172f93
to
3fd8f58
Compare
michalkrzyz
reviewed
Jun 13, 2025
michalkrzyz
reviewed
Jun 13, 2025
fe8cbe5
to
b78671e
Compare
…d update validation for ParentId
michalkrzyz
requested changes
Jun 13, 2025
michalkrzyz
reviewed
Jun 13, 2025
…pdate ComponentInstance type and ParentId handling
41c13d3
to
6fe8d73
Compare
…nce_self-referencing
MR2011
reviewed
Jun 24, 2025
internal/database/mariadb/migrations/20250616123818_add_parent_id_and_types.up.sql
Outdated
Show resolved
Hide resolved
MR2011
reviewed
Jun 24, 2025
internal/database/mariadb/migrations/20250616123818_add_parent_id_and_types.up.sql
Outdated
Show resolved
Hide resolved
MR2011
reviewed
Jun 24, 2025
internal/database/mariadb/migrations/20250616123818_add_parent_id_and_types.down.sql
Outdated
Show resolved
Hide resolved
MR2011
reviewed
Jun 24, 2025
MR2011
reviewed
Jun 24, 2025
MR2011
reviewed
Jun 24, 2025
MR2011
reviewed
Jun 24, 2025
…tances and refactor related tests
* Fix heureka cmd migration On-behalf-of: SAP Michal Krzyz <michal.krzyz@sap.com> Signed-off-by: Michal Krzyz <michalkrzyz@gmail.com> * feat(user): add mail list as user type and add email to user table * Automatic application of license header * feat(user): changes to Makefile --------- Signed-off-by: Michal Krzyz <michalkrzyz@gmail.com> Co-authored-by: Michal Krzyz <michalkrzyz@gmail.com> Co-authored-by: I753677 <cesar.soto01@sap.com> Co-authored-by: License Bot <license_bot@github.com> Co-authored-by: Michael Reimsbach <MR201190@gmail.com>
* chore: setup semantic-release * feat: add semantic release dry run
* chore: setup semantic-release * feat: add semantic release dry run * chore: remove semantic-release dependencies
* chore: setup semantic-release * feat: add semantic release dry run * chore: remove semantic-release dependencies * chore: move image build to release workflow
* chore: setup semantic-release * feat: add semantic release dry run * chore: remove semantic-release dependencies * chore: move image build to release workflow * chore: use docker/metadata-action's builtin version handling
* chore: setup semantic-release * feat: add semantic release dry run * chore: remove semantic-release dependencies * chore: move image build to release workflow * chore: use docker/metadata-action's builtin version handling * chore: set initial version to 0.1.0
* chore: setup semantic-release * feat: add semantic release dry run * chore: remove semantic-release dependencies * chore: move image build to release workflow * chore: use docker/metadata-action's builtin version handling * chore: set initial version to 0.1.0 * chore: update version tagging
…nce_self-referencing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enforces business logic for the Component Instance entity: as of now a parent_id can only be set if the component_instance_type is either "DnsZone" or "User". Attempts to assign a parent_id to other types will now result in a error. This ensures data from the openstack scanner can be sent to Heureka
This PR also includes Michals bug fixes manually added
What type of PR is this? (check all applicable)
Related Tickets & Documents
Fixes #693
Added tests?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
DB, API & E2E test
Added to documentation?
Checklist