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

Improvements to the start up logging for the server list filter #2647

Merged

Conversation

pljones
Copy link
Collaborator

@pljones pljones commented Jun 14, 2022

Short description of changes
Improvements to the start up logging for the server list filter.

Context: Fixes an issue?
No.

Does this change need documentation? What needs to be documented and how?
No.

Status of this Pull Request
Could do with testing from people who use the server list part of the feature - I've been running with the version filter logging for months without issue.

What is missing until this pull request can be merged?
Review. I'm not sure who now uses the server list filter (I don't think @sthenos does any more). EDIT: Apparently they do.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@pljones pljones requested review from a team and hoffie and removed request for a team June 14, 2022 16:19
Copy link
Member

@hoffie hoffie left a comment

Choose a reason for hiding this comment

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

Looks good to me.

CHANGELOG?

}

// assume directoryType will get set to AT_CUSTOM
if ( !strDirectoryAddress.compare ( "localhost", Qt::CaseInsensitive ) || !strDirectoryAddress.compare ( "127.0.0.1" ) )
Copy link
Member

Choose a reason for hiding this comment

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

Just a gut feeling and nothing blocking for this PR: It feels like those "are we a directory" checks are repeated in many places and might benefit from being moved to a helper function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's a method for it -- but it does an extra check on the directoryType. Because we're not really a directory unless directoryType is set to AT_CUSTOM. Here, however, we explicitly do not care about directoryType - but do care about the address.

@hoffie hoffie added this to the Release 3.9.0 milestone Jun 14, 2022
@pljones pljones force-pushed the patch/server-listfilter-logging branch from 2580942 to 6cb7174 Compare June 16, 2022 16:55
@pljones
Copy link
Collaborator Author

pljones commented Jun 18, 2022

CHANGELOG?

Improvements to the start up logging for the server list filter.

That gets picked up automatically, doesn't it, if there's no replacement given?

@pljones pljones force-pushed the patch/server-listfilter-logging branch from 6cb7174 to 06b49f8 Compare June 18, 2022 13:40
Copy link
Member

@ann0see ann0see left a comment

Choose a reason for hiding this comment

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

Tested and works as expected on linux headless

@pljones pljones merged commit 1646e90 into jamulussoftware:master Jun 18, 2022
@pljones pljones deleted the patch/server-listfilter-logging branch June 18, 2022 20:43
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.

3 participants