-
Notifications
You must be signed in to change notification settings - Fork 15
Fix pointer handling issues across codebase for better Go idioms #805
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
Conversation
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
@copilot you forgot to use changie to describe changes made in the pr |
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
Added changie entry to document the pointer handling fixes in the changelog. The entry was processed and included in the 3.8.0 release notes. (ef02f8d) Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…eature Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
… entry Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
@copilot Resolve merge conflicts. |
Co-authored-by: eduardodfmex <15805460+eduardodfmex@users.noreply.github.com>
@copilot this branch continue with merge conflicts, solve merge conflicts, github mention that the conflict is in this file: "internal/helpers/config.go" <<<<<<< copilot/fix-804
|
@copilot this branch continues with merge conflicts, solve merge conflicts, github mention that the conflict is in this file: "internal/helpers/config.go" solve the conflict. |
... The merge conflicts in
The merge conflicts in |
This PR addresses 9 pointer handling issues identified in the codebase to improve Go code quality, maintainability, and adherence to idiomatic Go patterns.
Issues Fixed
1. Admin Management Application API
2. Analytics Data Export API
GetAnalyticsDataExport
return type from*[]AnalyticsDataDto
to[]AnalyticsDataDto
3. Solution Checker Rules Client
NewSolutionCheckerRulesClient
and return typeclient
to*Client
for better API designRuleDto
type toRuleDto
for consistent public API4. Environment Datasource Schema
&
operators onschema.StringAttribute
instances5. Tenant Settings Conversions
getBoolPointer
helper function to eliminate repetitive boilerplate!value.IsNull() && !value.IsUnknown()
pattern6. Connection Resource Plan/State Variables
var plan *ResourceModel
tovar plan ResourceModel
7. Data Record Resource Plan/State Variables
var state *DataRecordResourceModel
tovar state DataRecordResourceModel
8. UUID Custom Types Documentation
Quality Assurance
The codebase now follows better Go idioms while preserving all existing functionality.
Fixes #804.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
http://168.63.129.16:80/machine/
/usr/bin/python3 -u bin/WALinuxAgent-2.13.1.1-py3.9.egg -collect-logs
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.