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

Expose components retrieval by id #2992

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Sep 17, 2024

Description

This PR exposes a by_id function for Hosts, Clusters, Databases and SapSystems returning the required item regardless of whether it is registered or not.

These kind of query will be necessary when enriching activity log metadata with a friendlier name of the component/entity.

See #2951

Note: I have considered the alternative of keeping the Repo.get(...) function calls inside metadata enricher, without exposing them from the different entities' contexts, but it just felt the right thing adding them there. Open for feedback.

How was this tested?

Automated tests added.

@nelsonkopliku nelsonkopliku self-assigned this Sep 17, 2024
@nelsonkopliku nelsonkopliku added enhancement New feature or request user story elixir Pull requests that update Elixir code labels Sep 17, 2024
@nelsonkopliku nelsonkopliku changed the title Expose components retrieval by Expose components retrieval by id Sep 17, 2024
@nelsonkopliku nelsonkopliku merged commit ce63e33 into main Sep 20, 2024
114 checks passed
@nelsonkopliku nelsonkopliku deleted the expose-components-retrieval-by-id branch September 20, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elixir Pull requests that update Elixir code enhancement New feature or request user story
Development

Successfully merging this pull request may close these issues.

3 participants