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

Os trove rename #1909

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions app/src/os/services/ship/trove.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
}
async UIUpdates() {
return APIConnection.getInstance().conduit.watch({
app: 'trove',
app: 'os-trove',
path: '/ui',
onEvent: (data: any) => {
//send update to the IPC update handler in app.store
Expand Down Expand Up @@ -56,7 +56,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: newFile,
});
Expand All @@ -83,7 +83,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: editFile,
});
Expand All @@ -105,7 +105,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: newTrove,
});
Expand All @@ -122,7 +122,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: editTrove,
});
Expand All @@ -139,7 +139,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: remTrove,
});
Expand All @@ -156,7 +156,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: reperTrove,
});
Expand All @@ -177,7 +177,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: newFolder,
});
Expand All @@ -195,7 +195,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
};

return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: removeFolder,
});
Expand All @@ -218,7 +218,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: removeFile,
});
Expand All @@ -242,7 +242,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
};

return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: moveFolder,
});
Expand All @@ -267,20 +267,20 @@ class TroveService extends AbstractService<TroveUpdateType> {
},
};
return APIConnection.getInstance().conduit.poke({
app: 'trove',
app: 'os-trove',
mark: 'trove-action',
json: moveNode,
});
}
async getTroves(space: string) {
return APIConnection.getInstance().conduit.scry({
app: 'trove',
app: 'os-trove',
path: '/troves/' + space,
});
}
async getFullState() {
return APIConnection.getInstance().conduit.scry({
app: 'trove',
app: 'os-trove',
path: '/state',
});
}
Expand All @@ -298,7 +298,7 @@ class TroveService extends AbstractService<TroveUpdateType> {
}
async getSpaces() {
return APIConnection.getInstance().conduit.scry({
app: 'trove',
app: 'os-trove',
path: '/hosts',
});
}
Expand Down
8 changes: 4 additions & 4 deletions desks/realm/app/trove.hoon → desks/realm/app/os-trove.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@
?+ -.sign (on-agent:def wire sign)
%watch-ack
?~ p.sign
=/ tang [leaf+"%trove: subscribed to /updates from %spaces."]~
=/ tang [leaf+"%os-trove: subscribed to /updates from %spaces."]~
((slog tang) `this)
=/ tang
:_ u.p.sign
leaf+"%trove: failed to subscribe to /updates from %spaces."
leaf+"%os-trove: failed to subscribe to /updates from %spaces."
((slog tang) `this)
::
%kick
Expand Down Expand Up @@ -161,11 +161,11 @@
%. `this
%- slog
:_ ~
leaf+"%trove-client: joining {(spud wire)} succeeded!"
leaf+"%os-trove: joining {(spud wire)} succeeded!"
%. `this
%- slog
:_ u.p.sign
leaf+"%trove-client: joining {(spud wire)} failed!"
leaf+"%os-trove: joining {(spud wire)} failed!"
::
%kick
~& "{<dap.bowl>}: got kick from {(spud wire)}, resubscribing..."
Expand Down
2 changes: 1 addition & 1 deletion desks/realm/desk.bill
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%spaces-chat
%notif-db
%chat-db
%trove
%os-trove
%bedrock
%api-store
==