Project

General

Profile

Support #22438

Simplification and reduction of the code related to how directories are being managed

Added by Lorena Lobato Pardavila over 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
04/24/2019
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

I saw we can reduce the code with the removal of clientDirSupport and chmodDirSupport and replace it by the classes from cWDictFile: simpleDirSupport and chmodDirSupport, respectively. This is because since we no longer need the user for privilege separation and, after removing not needed code, we can call the parent class directly. Here, an overview:

class clientDirSupport(cWDictFile.simpleDirSupport)
         • Inherits from cWDictFile.simpleDirSupport
         • It’s being passed by parameter to chmodClientDirSupport and being instantiated there.

class chmodCLientDirSupport(clientDirSupport)
        • Receives clientDirSupport (it can be replaced by simpleDirSupport)
         • It will be passed to clientProxiesDirSupport


To do: Remove the unnecessary classes and update clientLogDirSupport and clientProxiesDirSupport with the new classes

To keep in mind: already baseClientDirSupport and clientSymLink are inhering from the respectively classes in cWDictFile (cWDictFile.multiSimpleDirSupport). BUT, the problem here is in baseClientDirSupport, which will create the user base directory, using the function that I’d like to remove – cliendDirSupport. It’s being passed as a parameter for the function that supports create_dir and delete_dir in class dirsSupport (used for many directories creation).

History

#1 Updated by Lorena Lobato Pardavila over 1 year ago

  • Status changed from New to Work in progress
  • Description updated (diff)

#2 Updated by Lorena Lobato Pardavila about 1 year ago

  • Target version changed from v3_5 to v3_5_1

#3 Updated by Lorena Lobato Pardavila about 1 year ago

  • Parent task deleted (#20215)

#4 Updated by Lorena Lobato Pardavila about 1 year ago

  • Target version changed from v3_5_1 to v3_5_x

#5 Updated by Marco Mambelli 10 months ago

  • Target version changed from v3_5_x to v3_6_1

#6 Updated by Lorena Lobato Pardavila 10 months ago

  • Status changed from Work in progress to Rejected

Rejecting the ticket because it would complicate more the structure. If in the future this wants to be further investigated, re-open the ticket.

#7 Updated by Marco Mambelli 8 months ago

  • Status changed from Rejected to Closed


Also available in: Atom PDF