Skip to content

feat: add setting for max_abstract_length - #1851

Open
zacharyjhankin wants to merge 3 commits into
developfrom
edit-basis-template
Open

zacharyjhankin wants to merge 3 commits into
developfrom
edit-basis-template

Conversation

@zacharyjhankin

@zacharyjhankin zacharyjhankin commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This adds a new setting that sets the max abstract length, it will be set to 1500 by default for everyone.

Motivation and Context

At diamond we have a max of 900 characters for our abstract length in our old system, as the UOS is 1500 that causes incompatibility between our two systems. I chose not to let it be configurable via the template because then each proposal template would have different places to set it, when we want one value for the entire system that will rarely/never change.

How Has This Been Tested

Fixes

Changes

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@zacharyjhankin
zacharyjhankin requested a review from a team as a code owner October 1, 2026 14:32
@zacharyjhankin
zacharyjhankin requested review from SourangshuSTFC, jkramya and joeshannon and removed request for a team October 1, 2026 14:32
const MAX_TITLE_LEN = 175;
const MAX_ABSTRACT_LEN = 1500;

export const generalInfoUpdateValidationSchema = Yup.object().shape({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it worth keeping this extra validation, just for safety?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

My understanding is that this isn't used anywhere, and if it was started to be used then it would potentially be wrong if the settings were changed. But I could be missing something if it is used by something?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't get this function to update to be accurate with the settings either because the validation doesn't have access to the context. Unless you pass it in, but that just seems excessive for a function that isn't used

This branch has not been deployed

No deployments
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.

3 participants