-
Notifications
You must be signed in to change notification settings - Fork 179
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
Editing nearly impossible - spinning wheel and "The contact you were trying to edit has changed" messages" #842
Comments
@Bodenseematze Hey! What kind of hardware are you using for nextcloud? |
This comment has been minimized.
This comment has been minimized.
@nick-denry I created a dedicated issue for yours since this is different :) |
I some times have the same issue. I am using a synology DiskStation DS218+ (Intel Celeron J3355, 64bit, Dual Core 2.0 burst up to 2.5 GHz). Honestly I do not think this is hardware related. Why not update the state on blur instead of using a debouncing mechanism with a relatively short time offset? |
@devlux I think we need both to be honest. But yes, this is not directly a hardware issue, but low power system tends to have some requests taking longer than others and therefore some are finishing before the previous one, generating a 412. Though I need to find something for that! cc @raimund-schluessler @georgehrke any idea? Cancel the queue? Cancle only unfired requests? |
@skjnldsv Maybe you could create a queue for editing using |
I agree it doesn’t make sense to send a follow up request when the first one hasn’t finished. So p-limit seems appropriate. But we need some kind of caching to preserve all changes made wile the initial request is still running. |
This could be not only slow hardware issue but also network issue too if async queries used. The "first one" request could ends later than other requests, so if order of requests is matter it's better to use sync requests instead. |
Anyway, editing go wrong if typos fixed or even slow or fast typing. I've install test nextcloud with contacts app to create a screencast. As you could see it's display "reload" button every time when I try to edit before the previous request is complete. So it's possible to create contact and wait before every request is complete, but editing is worst and changes dropped. |
@nick-denry thank you so much for the details info! This really helps! :) Also, yes, we need to prioritise the queue, then I guess this won't happens anymore 🤔 |
Same behavior as @nick-denry and @Bodenseematze : NC 15.0.2 Ubuntu 16.04 Shall I follow this issue here or that: |
I don't know which hardware is used - the NC instance is installed at a shared hoster's web space. Inbetween my hoster moved my web space to another server - which seems to be a bit faster than the old one. So I think the problem is only noticeably on servers with slow reaction / communication... But why has every key press be transferred to the server? |
I will work on this this week and provide a patch. |
If I can - sure! |
Sorry, can't reproduce for now with several attempts. I'll create new issue if it'll happens somewhen. |
Strange: Now it's working for ~ 98%. I deactivated 1 of 3 address books. After that no more errors. Now activated all 3 address books again and have the 98%. :'( Difficult ..... will investigate. |
I see this behavior on NC v15.0.2, Contacts v3.0.1, running native Docker image on a 2GHz J1900 system connected via 5Ghz Wifi, having just one address book. It has only been seen for a little while, though the setup has been running for many years. Can't tell whether it started with the v15 upgrade. |
Same problem here (running Nextcloud 15 in a docker container on a machine with Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz and 32GB RAM. The contacts app is unusable in this state. There are 700 Addresses in the addressbook. |
Same here: Only one contact in the address book: |
I'm experiencing the same thing. I have to be patient and wait for the loading icon to stop spinning after every change. To prevent issues I first prep all my data in Notepad before I create a new contact. |
@skjnldsv: yes, this is a network issue and network calls should be minimized as much as possible. I would suggest to have a look at the lazy modifier of vuejs. IMHO this is a much better user experience. |
On it today :) |
@skjnldsv-bot release 3.0.3 😉 |
Does this mean the fix will be in 3.0.3? Or is it already in 3.0.2? I can see some behaviour change in 3.0.2 - it works better, but still not good. And if I do a lot of changes in a field, I still can see the "The contact you were trying to edit has changed" message. |
3.0.3 |
which is currently not released / available in the app store ;-) BTW, it seems that the "nightly builds" no longer work - the latest is from 2018-06-15... |
@Bodenseematze Yes, you need to wait for 3.0.3 |
Bug already exists with this version, @skjnldsv :-( |
Hello, I am using contact 3.0.3 and I have this bug making me mad. Best regards |
Please update to 3.0.5. There were some fixes for similar problems in 3.0.4. |
It is much better now, thank you |
I still have this issue with 3.1.1. It's almost impossible to add a new contact. Even when I think it's been added, a quick refresh shows me half of the entries are missing. NC 15.0.2.0 |
hello i have the same problem |
@pwepwe973 same answer. Open your own ticket and fill the required informations please :) |
Describe the bug
Editing of fields in the mask lead to "changed" messages and the edited text will be discarded
To Reproduce
When adding a new contact or editing an existing one, I go into any of the editing fields and try to enter some text there.
A soon as I'm "slow" in editing, the spinner wheel in the top right corner of the mask appears, I assume to show me that it tries to sync the entered data with the data.
When I continue typing and don't wait until the spinning wheel disappears - the message "The contact you were trying to edit has changed. Please manually refresh the contact. Any further edits will be discarded" appears.
When I then click on that button to refresh the data one of the two following things happen:
Expected behavior
Editing of text in the fields should be kept back until the input field will be changed - and then the spinning wheel may appear and transfer the changed text to the server.
Actual behavior
The spinning wheel occurs when the typing is not "fast" enough - it seems that it takes some time to transfer the data to the server; when typing / more changes occur in that time the message seems to occur...
Server configuration
The mentioned Issue Template app is not available for Nextcloud 15...
Operating system:
Server: Linux (Debian, Shared Hoster)
Client: Windows 10
Web server: Apache
Database: MariaDB 5.5.31
PHP version: 7.1.2
Nextcloud version: 15.0
Contacts version: 3.0.1
Updated from an older Nextcloud or fresh install: Update from latest V14
Signing status:
List of activated apps:
` - activity: 2.8.2
Nextcloud configuration:
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "activity_expire_days": "60", "datadirectory": "***REMOVED SENSITIVE VALUE***", "filelocking.debug": false, "filelocking.enabled": true, "filelocking.ttl": 1800, "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "version": "15.0.0.10", "installed": true, "dbtype": "mysql", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "default_language": "de", "defaultapp": "files", "integrity.check.disabled": true, "knowledgebaseenabled": true, "enable_avatars": true, "allow_user_to_change_display_name": true, "theme": "", "secret": "***REMOVED SENSITIVE VALUE***", "loglevel": 3, "logdateformat": "Y-m-d H:i:s", "logtimezone": "Europe\/Berlin", "log_rotate_size": 20971520, "skeletondirectory": "\/home\/www\/nextcloud_data\/skeleton", "updatechecker": true, "trashbin_retention_obligation": "auto", "versions_retention_obligation": "disabled", "appstoreenabled": true, "appstore.experimental.enabled": true, "singleuser": false, "maintenance": false, "htaccess.RewriteBase": "\/", "mail_smtpmode": "smtp", "updater.release.channel": "stable", "mail_smtpsecure": "ssl", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "updater.secret": "***REMOVED SENSITIVE VALUE***", }
Client configuration
Browser: Firefox 64.0, 64-Bit
Operating system:
Windows 10 - Pro
CardDAV-clients:
Logs
Web server error log
Nextcloud log
data/nextcloud.log
Browser log
Console Log:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: