Skip to content

Organisation Catalogues removal

Intro

This documentation outlines the removal of Organisation Catalogues.

Progress conversion

Convert the following organisation_catalogue columns to catalogue_id in these tables:

  • field_progress y
  • element_progress y
  • catalogue_progress y
  • element_optts y
  • element_uploads y
  • element_archives y
  • element_feedback y

Adjust model relationships

Adjust the model relationships of the following models to link directly to catalgoues

  • Element y
  • Field y
  • FieldProgress y
  • ElementProgress y
  • ElementFeedback y
  • CatalogueProgress y

  • ElementProgressObserver y

  • FieldProgressObserver y

Services adjustment

  • BrowsershotService y
  • CatalogueProgressService u // References need Organisation set
  • GraphicService u // References need Organisation set
  • ElementFeedbackFactory y
  • CatalogueService u // Convert getUserOrganisationCatalogues to getUserCatalogues

Actions

  • BuildLicenseOrganisationCatalogues y // remove references to BuildLicenseOrganisationCatalogues
  • BuildOrganisationElementsFromTemplate y

Request adjustment

  • StoreObjectiveRequest y
  • StoreProjectRequest y
  • StoreTargetRequest y
  • StoreTaskRequest y

Controller adjustment

  • ApiElementFieldController y
  • TaskController y
  • TargetController y
  • ProjectController y
  • ObjectiveController y
  • ElementTabFieldController y
  • CatalogueElementUploadController y
  • CatalogueElementController y
  • CatalogueElementFieldProgressController y
  • ElementExportController y
  • ElementGraphicDownloadController y
  • SettingsCatalogueController y
  • OrganisationCatalogueController y

Job adjustment

  • UpdateCatalogueProgressJob y
  • UpdateElementProgressJob y

routes

  • api.php y
  • web.php y

Front-end changes

  • Adjust with controllers