Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1312

Mark themes as deleted instead of actually deleting them

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Needs Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.3.0-B1
    • Component/s: Admin Interfaces
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      Changing theme name in UI or deleting and restoring it on disk no longer results in content block data loss.
    • Story Points:
      1
    • Sprint:
      In-Portal's First Sprint, In-Portal's 2nd Sprint, In-Portal's 3rd Sprint, In-Portal's 4th Sprint
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. Add "AddedOn" and DeletedOn" columns to theme and display them on grid/edit page.
      2. Add "Deleted" status (new option in existing Status field) to theme.
      3. If during theme scanning we've discovered theme theme record in DB no longer have corresponding folder on disk, then set "Status=Deleted" + "DeletedOn=NOW()" to theme DB record instead of deleting it & associated theme files.
      4. If during theme scanning we've discovered that folder on disk is matching a theme with "Deleted" status, then set "Status=Disabled" + "DeletedOn=NULL" + "AddedOn=NOW()".
      5. Remove "Delete" toolbar button on "Themes" grid.
      6. Remove "in-portal:configure_themes.delete" permission (from db & unit config).
      7. Make "Name" field of the theme read-only.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.4h
                  3.4h