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

Expose saving a field in a contact or a paper for inline menu #249

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

zatteo
Copy link

@zatteo zatteo commented Sep 6, 2024

No description provided.

const cipher = this.inlineMenuCiphers.get(inlineMenuCipherId);

const { data: contact } = (await client.query(Q(CONTACTS_DOCTYPE).getById(cipher.id), {
executeFromStore: true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the executeFromStore here. Maybe we should get the fresh data no ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove because of the _rev

@zatteo zatteo force-pushed the feat/save-field-to-cozy-data branch 2 times, most recently from 01e58d7 to bb82b49 Compare September 10, 2024 12:09
We use more and more lodash to manage data with path. It is working until now because it is present as a sub deps from Angular.

Let's add it as an explicit deps to avoid future issues if they remove it.
Comment on lines +163 to +170
// Add contact
// const fileCollection = client.collection('io.cozy.files')
// const references = [{
// _id: contact._id,
// _type: 'io.cozy.contacts'
// }]

// await fileCollection.addReferencedBy(fileCreated, references)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je suppose pour la suite ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactement, il y a encore quelques questionnements sur cette partie, mais "le reste marche"

@zatteo zatteo changed the title POC: Expose saving a field in a contact for inline menu Expose saving a field in a contact or a paper for inline menu Sep 11, 2024
@zatteo zatteo merged commit 4565017 into feat/stream2-part3 Sep 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants