-
Notifications
You must be signed in to change notification settings - Fork 227
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
Change "Central Server" to "Directory Server" in variables and settings #2079
Change "Central Server" to "Directory Server" in variables and settings #2079
Conversation
e5ca3a4
to
201fd0d
Compare
b8ffb8b
to
14c9c46
Compare
Consider this still in draft. I know I've some more names I want to change having done this... |
14c9c46
to
b54b1b8
Compare
is this still the case? You could click on |
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.
Well it compiles for me ok. Changes look good.
One missed name: a grep finds SRR_CENTRAL_SVR_FULL
in src/util.h
, used in src/serverlist.cpp
.
src/settings.cpp
Outdated
// TODO compatibility to old version (< 3.8.2) | ||
QString strCurAddr = GetIniSetting ( IniXMLDocument, "client", QString ( "centralservaddr%1" ).arg ( iIdx ), "" ); | ||
// clang-format on | ||
strCurAddr = GetIniSetting ( IniXMLDocument, "client", QString ( "directoryserveraddress%1" ).arg ( iIdx ), strCurAddr ); |
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.
Not critical, but I would prefer to check for directoryserveraddress%1
first, and only look for centralservaddr%1
if that wasn't found. Also in three places further down.
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.
That needs more conditional logic to be written. This I get for free with the defaults doing their thing.
eDirectoryType = static_cast<EDirectoryType> ( iValue ); | ||
} | ||
// clang-format on | ||
else if ( GetNumericIniSet ( IniXMLDocument, "client", "directorytype", 0, static_cast<int> ( AT_CUSTOM ), iValue ) ) |
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.
Order of checking, as above
pServer->SetDirectoryType ( static_cast<EDirectoryType> ( iValue ) ); | ||
} | ||
// clang-format on | ||
else if ( GetNumericIniSet ( IniXMLDocument, "server", "directorytype", 0, static_cast<int> ( AT_CUSTOM ), iValue ) ) |
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.
Order of checking, as above.
src/settings.cpp
Outdated
// TODO compatibility to old version | ||
QString directoryServerAddress = GetIniSetting ( IniXMLDocument, "server", "centralservaddr", "" ); | ||
// clang-format on | ||
directoryServerAddress = GetIniSetting ( IniXMLDocument, "server", "directoryserveraddress", directoryServerAddress ); |
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.
Order of checking, as above.
I just tried running it, and it successfully picked up my custom directories from the old I then ran my standard 3.8.1 client, and it had (of course) forgotten its custom directory servers, because they had been saved into Most people will only move from an older release to a newer one, but this means anyone testing a post-3.8.1 dev version will lose their custom directory servers if they go back to a 3.8.1 release or earlier. I think the only ways to overcome that are:
|
We never do that.
We don't need to do that.
Like I said in the PR:
It's always been the case (since before server registration existed, indeed) that the inifile is not forwards compatible, but is backwards compatible. |
I would if I could see how to. |
It’s a small link just below reviewers and above assignees. |
ah yes, I should have read more carefully ;) |
No wonder I couldn't find it - I thought that section was about reviewers, not changing the state of the PR to draft ... 🙄 |
9ceddbf
to
9ea13f0
Compare
Sorry for the messing around on this one... My generally mildly chaotic approach seemed to get the better of me and I'd got changes being made in later branches that should be here... Some things probably still don't make sense -- like I now have "DirectoryAddress" consistently in variables but the UI shows "Directory Server Address". As to what's in comments... That's not a big issue, though. I now try to think of it like this:
If a server uses a Whether it's "public" or "private" is down to whether the directory it registers with is "public" or "private". All the built in ones are public. Custom directories can choose but there's nothing to indicate this choice. |
9ea13f0
to
38d8518
Compare
Anyway, this has been stable for a while (at least 24 hours...) and I don't plan further changes. Yet to come (I wish it was easy on Github to say "diff this against that")
All broken into nice small commits currently, so the individual commit can be looked at. These are still sort of work in progress but I'm now pretty happy with them. |
Eek, missed you mentioning that. Done. |
Ok, will re-review and approve today. |
b4bbd35
to
6d6bbd0
Compare
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.
Further suggestions:
src/connectdlg.cpp:48
- change "Use the List dropdown" to "Use the Directory dropdown".
src/connectdlg.cpp:74-75
- reword to use "directory" terminology.
src/serverdlgbase.ui:73
- change "Register My Server in the Server List" to "Register My Server in the chosen Directory" or something.
src/serverdlgbase.ui:82
- change "List" to "Directory", to match the client's connect dialog.
OK... Connect Dialog done on Server Dialog done on |
@jamulussoftware/maindevelopers Anyone else able to review? |
6d6bbd0
to
2d2b0ae
Compare
Short description of changes
Nothing changes! At least, nothing should visibly change -- this is the follow-up to my UI changes from "Central Server" to "Directory Server/Server List" (still in flux). I've also got rid of "slave server" references, replacing with "registered server".
Context: Fixes an issue?
Jamulus isn't centralised any more.
Does this change need documentation? What needs to be documented and how?
No documentation changes required.
It's probably worth highlighting that settings files must be backed up before upgrading Jamulus, because we don't have forwards compatibilty (i.e. we don't write the old versions as well as the new versions).
Status of this Pull Request
Ready to merge after 3.8.1 release - ideally straight away so everything (else...) can break and have time to be fixed.
What is missing until this pull request can be merged?
Careful code review. Ideally someone else to confirm it works for them. Checking the settings code is particularly important.
Release 3.8.1 needs to go out.
Checklist