client,daemon,snappy,systemd: %s/\<ServiceName\>/AppName/g #601

Merged
merged 1 commit into from Mar 8, 2016

Conversation

Projects
None yet
3 participants
Contributor

zyga commented Mar 8, 2016

This patch changes service name into application name. This was
requested by Gustavo yesterday during a code review. I chose not to
change JSON serialization settings yet to minimize the affected code (so
on-the-wire protocol remains the same).

Wire changes will probably need some more work anyway (dashes-everywhere
initiative plus plenty of legacy terms in various places).

Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com

client,daemon,snappy,systemd: %s/\<ServiceName\>/AppName/g
This patch changes service name into application name. This was
requested by Gustavo yesterday during a code review. I chose not to
change JSON serialization settings yet to minimize the affected code (so
on-the-wire protocol remains the same).

Wire changes will probably need some more work anyway (dashes-everywhere
initiative plus plenty of legacy terms in various places).

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
@@ -60,7 +60,7 @@ type ServiceStatus struct {
SubState string `json:"sub_state"`
UnitFileState string `json:"unit_file_state"`
SnapName string `json:"snap_name"`
- ServiceName string `json:"service_name"`
+ AppName string `json:"service_name"`
@mvo5

mvo5 Mar 8, 2016

Collaborator

Hm, if this is renamed, should the json change as well?

@zyga

zyga Mar 8, 2016

Contributor

As mentioned in the commit message, I'd like to do this separately to have smaller impact of each change. We will have to look at the REST API to see how many things are affected there.

Collaborator

mvo5 commented Mar 8, 2016

One question, but personally I think this is not as important as the other renames because the app happens to be a service so its not that confusing (but maybe that is just me :)

Contributor

fgimenez commented Mar 8, 2016

👍

@zyga zyga closed this Mar 8, 2016

@zyga zyga reopened this Mar 8, 2016

zyga added a commit that referenced this pull request Mar 8, 2016

Merge pull request #601 from zyga/launcher-cleanup
client,daemon,snappy,systemd: %s/\<ServiceName\>/AppName/g

@zyga zyga merged commit b32eaf9 into snapcore:master Mar 8, 2016

1 of 2 checks passed

Integration tests 65 tests run, 0 skipped, 3 failed.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment