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-880-1 Add a new postgresql table for storing the prefixes instead of a config file to avoid deployment of baracoda for adding a prefix #470

Open
3 tasks
Sangeetha-Bheeman opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request Size: S Small - low 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 create a new postgresql table for storing the prefixes instead of a config file to avoid deployment of baracoda for adding a prefix.

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:

  • to store the prefixes in a postgresql table
  • to be able to read/write to the database to retrieve existing prefixes and create new 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 the enhancement New feature or request label Feb 14, 2024
@Sangeetha-Bheeman
Copy link
Contributor Author

Sangeetha-Bheeman commented Feb 14, 2024

Tasks:

  • Create a new table named prefixes with the following fields:
Column name Type Description
Id SERIAL  
prefix VARCHAR(32) NOT NULL The prefix to be created
barcode_format VARCHAR(255) NOT NULL Format for the barcode like -. Example: ASDF-A34ADA
sequence_name VARCHAR(32) NOT NULL The sequence name to use like heron, pam, csm etc to maintain the sequence number
enable_children_creation BOOLEAN NOT NULL True/False to allow child barcode creation
is_active BOOLEAN NOT NULL True/False to maintain list of active/inactive prefixes
created_at TIMESTAMP NOT NULL Creation timestamp
modified_at TIMESTAMP Modified timestamp
  • Add a migration to create the table.
  • Write script to seed the existing prefixes from the config/defaults to the new table.

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: S Small - low effort & risk Value: 3 Value to the insitute is average
Projects
None yet
Development

No branches or pull requests

1 participant