PurpleTurtleCreative / completionist

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

Asana resource meta data model and CRUD framework #208

Open MichelleBlanchette opened 8 months ago

MichelleBlanchette commented 8 months ago

No immediate initiative in Completionist Free, but the Pro version will use this data for its new features. See https://github.com/PurpleTurtleCreative/completionist-pro/issues/1

Data should literally be like wp_postmeta which has the columns:

_We could also add Asana's resource_type field, but that doesn't really help anything outside of debugging._

Table name probably just {prefix}asana_resource_meta or simply {prefix}asana_meta. The kicker is that this is for storing local metadata to WordPress in relation to remote Asana resources.

Also, how do we purge meta records? Here's some immediate thoughts:

The Asana authentication user's permissions can change which resources are actually accessible, but typically the Frontend Authentication User is going to be responsible for displaying the data. However, that setting may change, the Asana user's permissions may change, etc. which means nothing can really be inferred from the data's current accessibility.

Is there a way, regardless of the user's permissions, to tell if a resource has been permanently deleted? Are those recoverable? I imagine that's the difference between a regular Delete and a Permanently Delete action, but... maybe Asana Business users have a different experience..? Screenshot 2024-01-07 at 9 45 28 PM