dpc-sdp / tide

Tide is an API first, headless content management system custom built on Drupal to suit government needs.
https://github.com/dpc-sdp/tide#about
GNU General Public License v2.0
9 stars 5 forks source link

[SDPAP-6350] Added code to remove default unused views. #175

Closed MdNadimHossain closed 2 years ago

MdNadimHossain commented 2 years ago

JIRA

https://digital-vic.atlassian.net/browse/SDPAP-6350

Issue

  1. the 'content' and 'moderated_content' view is replaced by 'summary_contents_filters' and 'tide_site_moderated_content_filters' view but it still gets enabled during fresh install
  2. These two views can not be disabled from other tide modules as the time those modules are installed, these default view wasn't set properly to be disabled.

Changes

Added in the tide profile install hook. Because Install hooks in profiles were so far only called when a site was installed and after all the listed modules were installed and all the configuration was imported. (reference)

Related PRs

tide_core - https://github.com/dpc-sdp/tide_core/pull/330 tide_site_restriction - https://github.com/dpc-sdp/tide_site_restriction/pull/38