Skip to content

[LIMS-1535] Lock out edits for pre session information 24h before session#11

Merged
gfrn merged 4 commits intomasterfrom
feature/lims-1535/session-lock
Jul 10, 2025
Merged

[LIMS-1535] Lock out edits for pre session information 24h before session#11
gfrn merged 4 commits intomasterfrom
feature/lims-1535/session-lock

Conversation

@gfrn
Copy link
Collaborator

@gfrn gfrn commented Jul 8, 2025

JIRA ticket: LIMS-1535

Requires DiamondLightSource/scaup-backend#7

Summary:

Since modifying experimental parameters shortly before the session may confuse local contacts, it would be preferable to lock these out for regular users, and force them to email staff to make any further amendments.

Changes:

  • Disable "edit/create pre-session information" button 24h before session

To test:
Either log in as a non-staff user, or comment line 90 in src/scaup/utils/session.py. Either way, these are tested in unit tests.

@gfrn gfrn requested review from MattPrit, RichB-DLS and ndg63276 July 8, 2025 09:20
@gfrn gfrn self-assigned this Jul 8, 2025
@gfrn gfrn added the enhancement New feature or request label Jul 8, 2025
Copy link
Collaborator

@ndg63276 ndg63276 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gfrn gfrn merged commit b4ad76e into master Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants