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

Trace info for #145, #152, #155, #177, Users cannot be assigned to projects #181

Open
cfgardiner opened this issue Jun 27, 2022 · 1 comment

Comments

@cfgardiner
Copy link

cfgardiner commented Jun 27, 2022

The bug reported e.g. in issues #145, #152, #155, #177, "Users cannot be assigned to projects" which is really a show stopper, still seems to be hanging in there.

The issue seems to start when creating a new project and would appear to be triggered by an issue with indices in the oc_timetracker_user_to_project table "an exception occurred while executing a query: SQLSTATE[23505]: Unique violation.7 ERROR: duplicate key value violates unique constraint". See line 336 in timetracker_err_make_project.txt.

Log file extract and sample tables are contained in the links below. Additional comments made under issue #177.

Repeated here for increased visibility.

timetracker_err_make_project.txt
timetracker_err_tables.txt

@cfgardiner cfgardiner changed the title Trace info for #145, #152, #177, Users cannot be assigned to projects Trace info for #145, #152, #155, #177, Users cannot be assigned to projects Jun 27, 2022
@cfgardiner
Copy link
Author

I took the risk and updated all indices in the table oc_timetracker_user_to_project. Looks like something upset themat some stage. Creating a project now works. However, editing an existing project to add a user still doesn't.

As soon as I try to edit the project all assigned users, including the user who created the project, are deleted. The entry for the creating user is also removed from oc_timetracker_user_to_project. The record is dropped from the database.

Strangely, I can see the users being queried in the nextcloud log file but none appear in the "Edit Project" window, just the message "The results could not be loaded" as shown e.g. in #177

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

No branches or pull requests

1 participant