Reminder: Create & find trunk-related issues here. Legacy Trac tickets are still available. Problems? Workflow feedback? Need a module project? Open a support ticket.

OpenMRS Trunk

Concepts editing in sync: deletes fails and concept answers can't be removed

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Should Should
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: OpenMRS 1.5.0
  • Component/s: None
  • Severity:
    3
  • Keywords:
  • Description:
    Hide

    Concept editing on sync version of code seems to be broken:
    1. concept delete throws exception:
    Apr 22 22:54:29 openmrs jsvc.execrev:4822: ERROR - JDBCExceptionReporter.logExceptions(78) |2009-04-22 22:54:29,930| Cannot delete or update a parent row: a foreign key constraint fails (sync_parent/concept_name_tag_map, CONSTRAINT mapped_concept_name FOREIGN KEY (concept_name_id) REFERENCES concept_name (concept_name_id))

    1. removing concept answer does nothing. no errors reported but answers also not removed
    Show
    Concept editing on sync version of code seems to be broken: 1. concept delete throws exception: Apr 22 22:54:29 openmrs jsvc.execrev:4822: ERROR - JDBCExceptionReporter.logExceptions(78) |2009-04-22 22:54:29,930| Cannot delete or update a parent row: a foreign key constraint fails (sync_parent/concept_name_tag_map, CONSTRAINT mapped_concept_name FOREIGN KEY (concept_name_id) REFERENCES concept_name (concept_name_id))
    1. removing concept answer does nothing. no errors reported but answers also not removed

Activity

Hide
Ben Wolfe added a comment - 2009-09-01 21:40:15 EDT

Deletes do not fail in trunk anymore. Answers are not removed from concepts though.

Show
Ben Wolfe added a comment - 2009-09-01 21:40:15 EDT Deletes do not fail in trunk anymore. Answers are not removed from concepts though.
Hide
Ben Wolfe added a comment - 2009-09-02 18:55:28 EDT

Fixed the concept answers not deleting error in trunk in rev:10180. Fixed in 1.5.x in rev:10182.

This was happening because the Concept.answers/sets mapping now needs to be all-delete-orphan because ConceptAnswer and ConceptSet are in separate hbm files.

Show
Ben Wolfe added a comment - 2009-09-02 18:55:28 EDT Fixed the concept answers not deleting error in trunk in rev:10180. Fixed in 1.5.x in rev:10182. This was happening because the Concept.answers/sets mapping now needs to be all-delete-orphan because ConceptAnswer and ConceptSet are in separate hbm files.
Hide
Michael Downey added a comment - 2010-07-09 12:54:53 EDT

Ticket was closed/fixed without an assignee. Updating assignee for completeness.

Show
Michael Downey added a comment - 2010-07-09 12:54:53 EDT Ticket was closed/fixed without an assignee. Updating assignee for completeness.

People

Dates

  • Created:
    2009-04-23 15:13:24 EDT
    Updated:
    2010-07-09 12:54:53 EDT
    Resolved:
    2010-07-01 22:43:46 EDT