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

DPL-890-2 Add a new UI and the endpoint to allow the creation of new prefixes #471

Open
4 tasks
Sangeetha-Bheeman opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request Size: M Medium - medium effort & risk Value: 3 Value to the insitute is average

Comments

@Sangeetha-Bheeman
Copy link
Contributor

Sangeetha-Bheeman commented Feb 14, 2024

User story
As PSD developer I want to be able to add prefixes in UI to be stored in Postgresql database instead of a config file so I don't have to redeploy baracoda every time a new prefix is needed.

Who are the primary contacts for this story
Sangeetha, Steve

Who is the nominated tester for UAT
Sangeetha

Acceptance criteria
To be considered successful the solution must allow:

  • users to create a new prefix from UI.
  • the prefixes must be stored in and retrieved from a postgresql database.
  • remove the need to redeploy baracoda for adding prefixes.
  • the application should continue to work as expected without any loss of service to the users.

Dependencies

Additional context
Add any other context or screenshots about the feature request here.

@Sangeetha-Bheeman Sangeetha-Bheeman added enhancement New feature or request Size: M Medium - medium effort & risk Value: 3 Value to the insitute is average labels Feb 14, 2024
@Sangeetha-Bheeman
Copy link
Contributor Author

Sangeetha-Bheeman commented Feb 14, 2024

Tasks:

  • Create a new UI to add a new prefix

Pasted Graphic 2

  • Create a HTML template that includes:
    • Text box to add a new prefix,
    • Dropdown to select the barcode format(three existing barcode formats to choose from):
      - Heron COG UK Id format - <Prefix>-<Hexadecimal><Checksum>
      - Generic Barcode Format - <Prefix>-<Number>
      - Sequencescape 22 Format - <Prefix>-<Number>-<Checksum>
    • Dropdown to choose from the existing sequence names to use(heron,pam,csm etc) or
      - create a new sequence by providing a sequence name and a starting number for the sequence.
    • Dropdown to enable children creation(True/False)
    • Create button
  • Add the required styles.
  • Add the javascript functionality to post the prefix details to the new endpoint.
  • Add a button Create new prefix in the index.html to navigate to the new page.
  • Add an endpoint to handle the POST request to create a new prefix
    • Add the required validations like avoiding creation of duplicate prefixes, etc.
    • Add error handling.
  • Add the flexibility to create new postgresql sequence for a prefix or to use the existing sequence number based on the post request data.
  • Modify the existing code to fetch prefixes from the database instead of config/defaults.py during barcode creation.
  • Add the required tests
  • Run and pass all the tests and CI
  • Make sure the application works as expected by testing all the existing endpoints and the new endpoint for creating prefixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Size: M Medium - medium effort & risk Value: 3 Value to the insitute is average
Projects
None yet
Development

No branches or pull requests

1 participant