Implement async manual CSV ingest, unified UI pagination/filters, and serial placeholder strategy
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
type EntityType string
|
||||
|
||||
const (
|
||||
Project EntityType = "project"
|
||||
Asset EntityType = "machine" // Renamed from asset
|
||||
Component EntityType = "part" // Renamed from component
|
||||
Installation EntityType = "installation"
|
||||
@@ -22,7 +21,6 @@ const (
|
||||
|
||||
// Prefix mapping for each entity type
|
||||
var prefixMap = map[EntityType]string{
|
||||
Project: "PJ",
|
||||
Asset: "ME", // Machine
|
||||
Component: "PT", // Part
|
||||
Installation: "IN",
|
||||
|
||||
@@ -25,11 +25,11 @@ func TestParseIDInvalid(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetPrefix(t *testing.T) {
|
||||
prefix, err := GetPrefix(Project)
|
||||
prefix, err := GetPrefix(Asset)
|
||||
if err != nil {
|
||||
t.Fatalf("GetPrefix() error = %v", err)
|
||||
}
|
||||
if prefix != "PJ" {
|
||||
if prefix != "ME" {
|
||||
t.Fatalf("GetPrefix() = %s", prefix)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user