Skip to content

Posting a Rating Spec will create a location if it doesn't exist #1619

@Enovotny

Description

@Enovotny

Describe the bug
When creating a rating spec if the location does not exist one will be created with none of the required fields (lat/log ect.) it will only have the following fields.

Image

Beyond the ability for CDA to create rogue locations, This is an issue when copying data from databases to another such as cwbi-dev. When grabbing rating specs from CDA aliases are included. so if someone does a direct copy from get ratings/spec endpoint it will create locations for all of the aliases in the new database.

Expected behavior
It should error and say the location does not exist.

To Reproduce
create a template.

Then create a rating spec with a location that does not exist.

the rating spec will be created and a location will also be created with minimal data.

CDA Version (please complete the following information):
2026.03.04-develop

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershec-contract-approvedMarker used to indicate an appropriate vendor can bill against an HEC contract.priority:high

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions