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

Observability DA code getting extremly complex to follow #182

Open
ocofaigh opened this issue Oct 10, 2024 · 5 comments
Open

Observability DA code getting extremly complex to follow #182

ocofaigh opened this issue Oct 10, 2024 · 5 comments
Assignees

Comments

@ocofaigh
Copy link
Member

The code in https://github.com/terraform-ibm-modules/terraform-ibm-observability-da/tree/main/solutions/instances is getting far to hard to follow and maintain.
Can we do anything about it? For sure we can add better code comments anyway

@iamar7
Copy link
Member

iamar7 commented Oct 10, 2024

@ocofaigh if we remove the log_analysis content from the code then it will get slightly better. Also, we can move some parts from the local block and add some comments for better understanding.

@iamar7 iamar7 self-assigned this Oct 10, 2024
@ocofaigh
Copy link
Member Author

@iamar7 yes its coming (I have a local branch) - but its not a huge deal better tbh. More code comments needed anyway

@ocofaigh
Copy link
Member Author

@iamar7 please don't start work yet on this - we have a backlog of PRs to get in first

@iamar7
Copy link
Member

iamar7 commented Oct 10, 2024

@iamar7 please don't start work yet on this - we have a backlog of PRs to get in first

Yes, I have took it since I have some ideas for restructuring the module. I will start working on it when most of the backlog PR's get merged.

@ocofaigh
Copy link
Member Author

ocofaigh commented Oct 11, 2024

@iamar7 Another thing that will help is when we move to tf 1.9, we can remove all that validation logic and have it in the variables.tf file directly using the cross reference validation feature.
We could also try to start using the CRN parser module for the parsing we currently do with regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants