Comments (2)
Of course :)
Example:
- I open a tab with contacts and click the first contact
- I open the another one and edit the same contact with a random change
- Back on the first tab, edit the contact
- A popup will appear stating a change have been detected on the server and you need to click a button to resync the updated contact and that what you did will be discarded (this is a nice ux behaviour, no data loss, clear explanation)
- we retrieved the etag on the last sync attempt (denied since etag obsolete) so we can manually update the cdav-contact object to specify the new etag manually and trigger a new fullFetch to update everything :)
from cdav-library.
@georgehrke is it clear? 🙈
If you need a precise example, this is exactly here:
https://github.com/nextcloud/contacts/blob/134527baa933af63400c285b362d9ed889abb001/src/store/contacts.js#L281
We then use this conflict saved etag to update the dav scope linked to the vcard and force a ful refresh :)
from cdav-library.
Related Issues (20)
- Allow us to provide custom props on findAllAndFilterBySimpleProperties HOT 1
- General-purpose WebDAV library HOT 6
- How to create Event? HOT 1
- Need Help in addressbookQuery HOT 2
- Use shared browserslist config
- add If-None-Match: * header for creating events / vcards
- Make requests cancellable
- [Enhancement] Documentation on use would be wonderfully useful HOT 2
- Make a proper module of it? HOT 2
- Cannot read property 'length' of undefined HOT 5
- Versioning and publishing HOT 4
- Allow to fetch user principal language
- Wrong Content-Type request header in PUT requests HOT 4
- `npm run build-doc` throws an error HOT 1
- Rename master branch to main HOT 2
- Installing this via npm broken by one of the newer commits HOT 2
- Migrate Request class to @nextcloud/axios
- npm package is outdated
- propfind assumes DAV header always exists and causes null exception when missing
- Migrate to renovate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdav-library.