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

Auto Subscribe #368

Merged
merged 3 commits into from
Oct 10, 2024
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
9 changes: 9 additions & 0 deletions api/lib/data-mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ export default class DataMission {
mission_token: mission.token || undefined
});

const conn = config.conns.get(data.connection);
if (conn) {
await api.Mission.subscribe(data.name, {
uid: conn.config.uid()
},{
token: mission.token || undefined
});
}

// The groups property isn't returned by Create
// Make this second call to get the groups - TODO Talk to Josh
mission = await api.Mission.get(data.name, {}, {
Expand Down
12 changes: 6 additions & 6 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/web/src/components/DataEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export default {
auto_transform: true,
mission_sync: true,
mission_groups: [],
mission_role: 'MISSION_SUBSCRIBER',
mission_diff: false,
mission_role: 'MISSION_READONLY_SUBSCRIBER',
mission_diff: true,
description: '',
}
}
Expand Down
11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@openaddresses/batch-alarms": "^4.0.0",
"@openaddresses/cloudfriend": "^7.0.0",
"@openaddresses/deploy": "^8.0.0"
"@openaddresses/deploy": "^9.0.0"
},
"devDependencies": {
"@types/xml2js": "^0.4.11",
Expand Down
Loading