Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15388752
D20900.id49816.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D20900.id49816.diff
View Options
diff --git a/src/applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php b/src/applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php
--- a/src/applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php
+++ b/src/applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php
@@ -123,8 +123,11 @@
}
public function fillObjectFromData(DoorkeeperExternalObject $obj, $result) {
- $id = $result['id'];
- $uri = "https://app.asana.com/0/{$id}/{$id}";
+ $gid = $result['gid'];
+ $uri = urisprintf(
+ 'https://app.asana.com/0/%s/%s',
+ $gid,
+ $gid);
$obj->setObjectURI($uri);
}
diff --git a/src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php b/src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
--- a/src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
+++ b/src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
@@ -102,7 +102,10 @@
pht('Workspace Name'));
$out[] = '| ------------ | -------------- |';
foreach ($workspaces as $workspace) {
- $out[] = sprintf('| `%s` | `%s` |', $workspace['id'], $workspace['name']);
+ $out[] = sprintf(
+ '| `%s` | `%s` |',
+ $workspace['gid'],
+ $workspace['name']);
}
$out = implode("\n", $out);
diff --git a/src/applications/doorkeeper/worker/DoorkeeperAsanaFeedWorker.php b/src/applications/doorkeeper/worker/DoorkeeperAsanaFeedWorker.php
--- a/src/applications/doorkeeper/worker/DoorkeeperAsanaFeedWorker.php
+++ b/src/applications/doorkeeper/worker/DoorkeeperAsanaFeedWorker.php
@@ -358,7 +358,7 @@
'POST',
$subtask_data + array(
'assignee' => $phid_aid_map[$user_phid],
- 'completed' => $is_completed,
+ 'completed' => (int)$is_completed,
'parent' => $parent_ref->getObjectID(),
));
@@ -393,7 +393,7 @@
'PUT',
$subtask_data + array(
'assignee' => $phid_aid_map[$user_phid],
- 'completed' => $is_completed,
+ 'completed' => (int)$is_completed,
));
}
@@ -484,7 +484,7 @@
return array(
'name' => $title,
'notes' => $notes,
- 'completed' => $is_completed,
+ 'completed' => (int)$is_completed,
);
}
@@ -632,7 +632,7 @@
->setApplicationType(DoorkeeperBridgeAsana::APPTYPE_ASANA)
->setApplicationDomain(DoorkeeperBridgeAsana::APPDOMAIN_ASANA)
->setObjectType($type)
- ->setObjectID($result['id'])
+ ->setObjectID($result['gid'])
->setIsVisible(true);
$xobj = $ref->newExternalObject();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 4:20 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384111
Default Alt Text
D20900.id49816.diff (2 KB)
Attached To
Mode
D20900: Update various Asana odds-and-ends for "gid" API changes
Attached
Detach File
Event Timeline
Log In to Comment