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

Can't save form when logged-in as admin #186

Closed
LaChope opened this issue Jan 9, 2024 · 2 comments · Fixed by #189
Closed

Can't save form when logged-in as admin #186

LaChope opened this issue Jan 9, 2024 · 2 comments · Fixed by #189
Assignees

Comments

@LaChope
Copy link
Collaborator

LaChope commented Jan 9, 2024

We would like to show message e.g. "Unable to save record due to the user not being assigned to an institution."

A/C:

  • backend method checks for existence of relation to institution and if it is not there a proper message is shown in frontend
@LaChope
Copy link
Collaborator Author

LaChope commented Jan 9, 2024

When logged in as admin, it is not possible to save form (see screenshot below):

image

The manifestation of the error is strange as it says that "requiredUniqueNonEmptyLocalName constraint failed", but it is caused by the user (in this case admin) not being assigned to the organization.

@blcham
Copy link

blcham commented Jan 9, 2024

Related to #72

@blcham blcham closed this as completed Jan 9, 2024
@blcham blcham reopened this Apr 14, 2024
@blcham blcham transferred this issue from kbss-cvut/record-manager Jul 17, 2024
palagdan added a commit that referenced this issue Jul 19, 2024
palagdan added a commit that referenced this issue Jul 19, 2024
blcham pushed a commit that referenced this issue Jul 20, 2024
blcham pushed a commit that referenced this issue Jul 20, 2024
blcham pushed a commit that referenced this issue Jul 21, 2024
blcham pushed a commit that referenced this issue Jul 21, 2024
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
…er for checking if the user is assigned to any institution
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
…dle a situation when User is not assigned to any institutuion
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
…not have any institution BAD_REQUEST -> CONFLICT
palagdan added a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
palagdan added a commit that referenced this issue Jul 22, 2024
blcham pushed a commit to kbss-cvut/record-manager that referenced this issue Jul 22, 2024
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 a pull request may close this issue.

3 participants