Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Add a field program_id to each program. It is a string auto generated with the format: PROG_{SEQ} #88

@jeremi

Description

@jeremi

Overview

Each program within the OpenSPP system needs to have a unique identification. This will be represented by the program_id field.

  • program_id is a string and should be auto-generated by the system.
  • The format of program_id should be PROG_{SEQ}.
    • PROG_ is a static prefix.
    • {SEQ} is a dynamically generated unique sequence number.
  • The sequence number {SEQ} should increment for each new program.

Program Referencing

  • Each program should be easily identifiable and searchable through its unique program_id. This implies that program_id should be indexed in the database to allow efficient searching and sorting.
  • The program_id should also serve as the XML ID of the record, facilitating easy referencing of the program in XML files and throughout the system.

Constraints

  • program_id should be unique. The system should not allow the creation of two programs with the same program_id.
  • program_id should not be editable by users once the program is created. This is to maintain the integrity of the program_id.

This detailed specification aims to improve the handling and identification of programs within the OpenSPP system. The unique program_id not only ensures the uniqueness of each program but also enhances the search and sorting capabilities, providing a better user experience.

Metadata

Metadata

Assignees

Labels

stalePR/Issue without recent activity, it'll be soon closed automatically.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions