Ticket #789 (closed Defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Deleting types when instances still exist

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.6
Component: DeepaMehta Standard Distribution Version: 4.5
Keywords: Cc: dgf, Malte, JuergeN
Complexity: 3 Area:
Module: deepamehta-core


The (API) user must not be able to delete types when instances of that type still exist. Instead an error message must be generated.

Currently it is possible e.g. in the Webclient to delete a type when instances still exist. The consequence is a non-consistent DB.

Change History

comment:1 Changed 9 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Jörg Richter <jri@…>

In 2d6fe77eeaa65d5f211bf1359391a509d9761e4a/deepamehta:

Core fix: deleting types when insts exist (#789).

A type can't be deleted if instances still exist.
If tried an exception is thrown.
Applies to topic types and association types.

Pending: reporting the error to the user.

See #789.

comment:3 Changed 9 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed

Meanwhile the error is reported to the user through #790

Note: See TracTickets for help on using tickets.