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

LIMS-1590: Dont allow name editing for lab contacts when login is set #887

Conversation

ndg63276
Copy link
Collaborator

@ndg63276 ndg63276 commented Jan 2, 2025

JIRA ticket: LIMS-1590

Summary:

The synchronisation scripts from UAS to ISPyB will overwrite any changes to Lab Contact names where the login or externalId fields are set, so we should disable changing them.

Changes:

  • Get and display the current value for login, or use "External" if the externalId is set.
  • Don't set the name fields to be editables if the login or externalId is not null
  • Fix some whitespace and indentation

To test:

  • Go to proposal mx23694, then go to /contacts/cid/11278, check the login is displayed, and the given name and family name fields are not editable
  • Go to /contacts/cid/5988, check the login field is blank, and the given name and family name fields are editable
  • Run this command update Person set externalId=1 where personId=267393;, then go to /contacts/cid/10731, check the login field says "External" and the name fields are not editable

@ndg63276 ndg63276 changed the base branch from master to pre-release/2025-R1.2 January 28, 2025 09:48
@ndg63276 ndg63276 merged commit 5fc0e78 into pre-release/2025-R1.2 Jan 28, 2025
2 checks passed
@ndg63276 ndg63276 deleted the improvement/LIMS-1590/make-name-uneditable-when-has-login branch January 28, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants