-
Notifications
You must be signed in to change notification settings - Fork 0
Fix missing fields and unset fields #22
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
Merged
Merged
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
- Added BuildDxccInfo() function in utils/dxcc_lookup.go as single source of truth - Added toUcWord() helper in utils for title case conversion - Created internal buildDxccInfo() in backend/dxcc/client.go with applyTitleCase parameter - Updated GetPrefix() and GetException() to use buildDxccInfo() with flag population - Updated buildDxccInfoFromPrefix() and buildDxccInfoFromEntity() to use buildDxccInfo() - Added comprehensive tests to verify flag field is populated in all scenarios - All existing tests pass without regressions Co-authored-by: user00265 <8064+user00265@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create centralized function for DxccInfo object creation
Centralize DXCC info building to fix missing flag field
Dec 30, 2025
- Correct `lotw_user` output to display days since last update instead of hard-coded "2" - Added `ituz` to output to go alongside `cqz` - Added `mode`, `submode`, and `band` to cluster spots (for unified format) - Added `mode` and `submode` to POTA spots (for unified format) This should compliment the `flag` output and start some refactoring of repeated functions
Owner
|
Making this a partial refactor and correction of other fields found that were not outputting or included at all from the original after looking at the code from my dev computer. This should work. WIP. |
Owner
|
This corrects and closes issue #21 |
user00265
approved these changes
Jan 2, 2026
Owner
user00265
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go.
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.
The
flagfield was missing from JSON output when DXCC lookups usedGetPrefix()orGetException()code paths, while other paths likebuildDxccInfoFromPrefix()correctly populated it. This inconsistency stemmed from four different functions buildingDxccInfoobjects independently.Changes
Created single source of truth for DXCC output formatting:
utils.BuildDxccInfo()- public function that constructs completeDxccInfowith flag lookup viaFlagEmojis[adif]backend/dxcc.buildDxccInfo()- internal helper withapplyTitleCaseparameter for flexibilityutils.toUcWord()- title case helper for consistent entity name formattingUpdated all four builders to use centralized function:
GetPrefix()- now callsbuildDxccInfo()with flag populationGetException()- now callsbuildDxccInfo()with flag populationbuildDxccInfoFromPrefix()- refactored to usebuildDxccInfo()buildDxccInfoFromEntity()- refactored to usebuildDxccInfo()Before:
After:
All four code paths now consistently return complete
DxccInfoobjects with flags.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.clublog.org/tmp/go-build2074946279/b001/utils.test /tmp/go-build2074946279/b001/utils.test -test.testlogfile=/tmp/go-build2074946279/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true g_.a(dns block)/tmp/go-build3717207601/b001/utils.test /tmp/go-build3717207601/b001/utils.test -test.testlogfile=/tmp/go-build3717207601/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true cgo(dns block)/tmp/go-build2621242724/b407/utils.test /tmp/go-build2621242724/b407/utils.test -test.testlogfile=/tmp/go-build2621242724/b407/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true x64/src/runtime/cgo CzK_-vitg ux_amd64/compile(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.