Skip to content
Closed
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
2 changes: 1 addition & 1 deletion backend/utils/tw/set_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func SetTaskwarriorConfig(tempDir, encryptionSecret, origin, UUID string) error {
configCmds := [][]string{
{"task", "config", "sync.encryption_secret", encryptionSecret, "rc.confirmation=off"},
{"task", "config", "sync.server.origin", origin, "rc.confirmation=off"},
{"task", "config", "sync.server.url", origin, "rc.confirmation=off"},
{"task", "config", "sync.server.client_id", UUID, "rc.confirmation=off"},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ export const SetupGuide = (props: Props) => {
commands one block at a time
</div>
<CopyableCode
text={`task config sync.server.origin ${url.containerOrigin}`}
copyText={`task config sync.server.origin ${url.containerOrigin}`}
text={`task config sync.server.url ${url.containerOrigin}`}
copyText={`task config sync.server.url ${url.containerOrigin}`}
/>
<div className="text-sm text-muted-foreground mt-2 mb-2">
(Note: <code>sync.server.origin</code> is deprecated but
synonymous with <code>sync.server.url</code>)
</div>
<CopyableCode
text={`task config sync.server.client_id ${props.uuid}`}
copyText={`task config sync.server.client_id ${props.uuid}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('SetupGuide', () => {
).toBeInTheDocument();

expect(
screen.getByText('task config sync.server.origin https://test-container')
screen.getByText('task config sync.server.url https://test-container')
).toBeInTheDocument();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('exportConfigSetup', () => {
);

expect(result).toContain(
`task config sync.server.origin ${url.containerOrigin}`
`task config sync.server.url ${url.containerOrigin}`
);

expect(result).toContain(`task config sync.server.client_id ${props.uuid}`);
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/HomeComponents/SetupGuide/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export function exportConfigSetup(props: Props): string {
return [
'Configure Taskwarrior with these commands, run these commands one block at a time',
`task config sync.encryption_secret ${props.encryption_secret}`,
`task config sync.server.origin ${url.containerOrigin}`,
`task config sync.server.url ${url.containerOrigin}`,
'(Note: sync.server.origin is deprecated but synonymous with sync.server.url)',
`task config sync.server.client_id ${props.uuid}`,
'For more information about how this works, refer to the task-sync(5) manpage for details on how to configure the new sync implementation.',
].join('\n');
Expand Down