Skip to content

feat: Handle empty update response and improve logging - #8100

Merged
nbolton merged 1 commit into
masterfrom
update-check-empty
Mar 25, 2025
Merged

feat: Handle empty update response and improve logging#8100
nbolton merged 1 commit into
masterfrom
update-check-empty

Conversation

@nbolton

@nbolton nbolton commented Jan 16, 2025

Copy link
Copy Markdown
Member
  • Shows warning when empty response back from update server.
  • Improved logging for when new version available/not available.

@nbolton
nbolton requested a review from sithlord48 January 16, 2025 17:49
@nbolton nbolton changed the title feat: Handle empty response from update server feat: Handle empty update response and improve logging Jan 16, 2025

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't put the strings in the () for qDebug() , qWarning, and qInfo() . Also this can be done better by using one string perhaps

auto string = QStringLiteral("current version %1").arg (kversion)
if outof date
string.append(QStringLiterla("is out of date") ...
etc.. before printing to the console.

Comment thread src/apps/deskflow-gui/VersionChecker.cpp Outdated
Comment thread src/apps/deskflow-gui/VersionChecker.cpp Outdated
Comment thread src/apps/deskflow-gui/VersionChecker.cpp Outdated
@nbolton

nbolton commented Jan 17, 2025

Copy link
Copy Markdown
Member Author

Thanks for the review, I'll set to draft until I can carve out some time to fix.

@nbolton
nbolton marked this pull request as draft January 17, 2025 10:38
@sithlord48

Copy link
Copy Markdown
Member

Is this still being worked on our should be close it ?

@nbolton

nbolton commented Mar 6, 2025

Copy link
Copy Markdown
Member Author

Needs finishing. Not very urgent but I will complete.

@nbolton
nbolton force-pushed the update-check-empty branch from 7646192 to f5bfc1a Compare March 14, 2025 14:20
@nbolton
nbolton requested a review from sithlord48 March 14, 2025 14:21
@nbolton
nbolton marked this pull request as ready for review March 14, 2025 14:21
@nbolton
nbolton force-pushed the update-check-empty branch from f5bfc1a to 0f46e1d Compare March 14, 2025 14:36
@nbolton
nbolton enabled auto-merge (rebase) March 14, 2025 14:41

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to log its out of date the gui will show this via the icon.

Comment thread src/apps/deskflow-gui/VersionChecker.cpp
@nbolton
nbolton requested a review from sithlord48 March 21, 2025 10:19
@nbolton
nbolton force-pushed the update-check-empty branch from 0f46e1d to 11f8e76 Compare March 21, 2025 10:24
@nbolton

nbolton commented Mar 21, 2025

Copy link
Copy Markdown
Member Author

Do we really need to log its out of date the gui will show this via the icon.

Think about this from a troubleshooting perspective. When a user sends us information, they often send us either a screenshot or a log but rarely both. If we receive only the log, having all the info there saves time for everyone.

Logs aren't just for the user, they're also for people helping the user.

@nbolton
nbolton force-pushed the update-check-empty branch from 11f8e76 to da9a2d9 Compare March 25, 2025 08:47
@nbolton

nbolton commented Mar 25, 2025

Copy link
Copy Markdown
Member Author

@sithlord48 Ready for your review. It would be nice to get this merged, as it has been open since Jan.

@nbolton
nbolton merged commit 378fdae into master Mar 25, 2025
@nbolton
nbolton deleted the update-check-empty branch March 25, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants