PurpleTurtleCreative / completionist

Asana integration plugin for WordPress.
https://purpleturtlecreative.com/completionist/
GNU General Public License v3.0
1 stars 0 forks source link

Include links to Asana user's profile #179

Closed MichelleBlanchette closed 4 months ago

MichelleBlanchette commented 1 year ago

Some users are sharing "fake" Asana identities across multiple WordPress users to simplify data in Asana and reduce seat costs.

Let's start displaying links to view an Asana user's profile so it's clear which WordPress user corresponds to which Asana identity. I believe this "profile" page replaces the old "user task lists" feature in Asana. It follows this format:

https://app.asana.com/0/profile/{user_gid}
MichelleBlanchette commented 4 months ago

That format isn't correct because neither user can view the other user's profile, apparently. I see this: Screenshot 2024-04-20 at 10 14 02 PM

MichelleBlanchette commented 4 months ago

Oh, I see... I can access the other user's profile screen, but that apparently isn't the user's GID. I'm not sure what it is... Screenshot 2024-04-20 at 10 18 10 PM

The working URL is: https://app.asana.com/0/profile/1159292400905351

The same user's GID gives: https://app.asana.com/0/profile/1159292400140241

MichelleBlanchette commented 4 months ago

Yeah, as mentioned in v3.4.0's changelog entry, the user task list is only permitted for the current user. It was removed back then, and I don't see anything in the API docs that hints at what this "profile" URL is using. Oh, well!

https://github.com/PurpleTurtleCreative/completionist/commit/ac1a9159b2bdfc8086cad59eb0e2d2e515fb41ec#diff-e870f46a34c9902532cb7f7d3dfa8bd960d5bd5a631fbf6282b5c364fb192d25L313-L316