Sysmo DB
  1. Sysmo DB
  2. SYSMO-78

Authorization module. Implement a helper to check that nothing is linked to a resource and it wasn't recently used to allow 'destroying' it.

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      • Checking that a resource wasn't recently used is relatively easy - just compare difference between current date and "last_used_at" in Asset (or Resource as the value will be identical) with a determined threshold (e.g. 6 months).
      • Algorithm to check that nothing is linked to a resource is more complicated and cannot be implemented at the moment. This will have to use 'based on' relationship that we discussed before - e.g. if the current resource is 'based on' some existing one, then it can be deleted (but not another way round). Possibly, some other checks to determine that nothing is linked to the current resource will also be required.

      (These missing checks are marked with TODO labels in the Authorization module code - line numbers (approx) 125 - 150).

        Activity

        Hide
        Sergejs Aleksejevs added a comment -

        Duplicates issue SYSMO-47; comments from this issue copied to the original one.

        Show
        Sergejs Aleksejevs added a comment - Duplicates issue SYSMO-47 ; comments from this issue copied to the original one.

          People

          • Assignee:
            Stuart Owen
            Reporter:
            Sergejs Aleksejevs
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: