-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Management: Mapping tags is broken #1330
Comments
I cannot reproduce this issue. For your information, the log file says:
|
Yes but as I said, I did NOT delete any mappings. The system automatically deleted it after I added another one. |
Could be a browser issue, possibly related to caching, can you try another browser? For example, Microsoft browsers IE and Edge are more aggressive about caching. |
Also, could you test it on the beta site as well? |
I believe I found the issue. The mappings page is only loading the first 1000 mappings. Mappings after that are lost after saving. The issue only started when the number of mappings exceeded 1000. Unfortunately there is no workaround, it has to be fixed before more mappings can be added. Good news is that it's really easy to fix. "1000 mappings should be enough for anybody" is probably what I was thinking. I think at this point the maximum number could be removed, although some kind of server side paging should also be implemented eventually, because at some point there will be problems because of too large requests. |
I think it is broken again, I noticed that my previous mappings are gone. |
@andreoda @kateabr Can you please make some experiments on the beta site and paste the request payload? Request URL: https://vocadb.net/api/tags/mappings |
Thank you! Can you please try to add some more tag mappings until some others are deleted (if reproducible) and paste the payload? |
payload3.txt This time I used two different tabs to alter mappings. Payload 3 (tab 1): deleted ~20 first mappings |
@kateabr Thank you! Note that this problem could also happen to other lists like external links when two people (or two tabs) are editing the same entry at the same time. As a workaround, make sure that the tag mappings on the "Manage tag mappings" page is latest and that only one user (or one tab) is managing tag mappings.
|
The same concurrent editing issue applies to almost all editing pages, but on normal editing pages you should see the "user X is already editing this entry" warning. Potentially the same warning could be added to other pages that can be managed by multiple users, such as this one. |
Additionally, can we have a way to see in the audit log which tag mappings were added and deleted? For now, I have no clue which accidentally got removed by the system. |
I think more details are already mentioned in syslog. |
How can I view the syslog? |
You should ask yca the details, I can't remember myself what permissions it requires. There's nothing stopping adding the same information to audit log too, except that audit log is intended for short messages only, and the list of modified tag mappings can be too verbose. Some sort of version history would be optimal (same as entry pages), but probably a lot of work to implement. |
You can't. It's stored in a log file on the server. vocadb/VocaDbModel/Database/Repositories/IAuditLogger.cs Lines 10 to 15 in 585136f
|
Um, that's not true. There is a page for viewing that. I never told you? |
Oh, I didn't know that. Then, @andreoda should be able to view that.
|
It would be nice if we could implement something like |
Website
VocaDB
Describe the bug
It occurred to me that for some tags, the system automatically deletes my added mapping when I add another one.
To Reproduce
Steps to reproduce the behavior (for me at least):
The audit log shows me this:
I did not delete any mapping. Only saved.
This problem also happened to me with another tag some time ago (I forgot which) but I just ignored it since I assumed it was some kind of temporary error. Maybe it is my fault, since it is not happening to every tag (I believe). Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: