cozy / cozy-doctypes

The doctypes used in cozy-stack
https://docs.cozy.io/en/cozy-doctypes/docs/
GNU Affero General Public License v3.0
2 stars 29 forks source link

docs: Add Bitwarden sharing related doctypes #180

Closed Ldoppea closed 2 years ago

Ldoppea commented 3 years ago

Those doctypes are used to manage organization and share ciphers with other users :

Also com.bitwarden.ciphers has been completed with organization related attributes

Thanks for contributing to this documentation. If you added a doctype, please be sure that it is present

Ldoppea commented 3 years ago

The com.bitwarden.folders is not used for now as it has been merged/replaced with com.bitwarden.organizations. Should I mark the doc as deprecated? Or delete it ? (not that it is still referenced in some translations and icons from the store)

Ldoppea commented 3 years ago

Why do we have added "foreignKey" instead of using relationships here?

This is a question for @nono :)

I think this is because the original structure of the bitwarden entities is based on foreignkeys, so even if we use relationships then we still need to remap those attributes on the stack side before returning the request result.

Also we don't have any doctype for collections so we cannot use a relationship here although we could just use a single relationship to the organization as there is a 1-1 as the organization contains the collection in our implementation.

nono commented 2 years ago

Ping @Ldoppea