Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspect the DefaultCompress Class for Changes and Improvements #94

Closed
SibTiger opened this issue Dec 3, 2024 · 3 comments
Closed

Inspect the DefaultCompress Class for Changes and Improvements #94

SibTiger opened this issue Dec 3, 2024 · 3 comments
Assignees
Labels
Priority: NORMAL Priority for this report or submission is: NORMAL

Comments

@SibTiger
Copy link
Owner

SibTiger commented Dec 3, 2024

I think it is time to do one last comb over to make sure that the code is properly aligned. Make sure that the documentation and comments are correct, make sure that the code is accurate with no redundancies or superfluous statements. To perform this task on the entire class, all of the member functions will need to be inspected as we as the member variables. It would also be best to inspect the enumerators as well.

Action:

  • Inspect and revise each functions that exists within the Default Compress class, if needed.
  • Inspect and revise each variables that exists within the Default Compress class, if needed.
  • Inspect and revise each Enumerators withing the Default Compress, if needed.
  • Inspect and revise documentation within the Default Compress, if needed.
  • Further inspection may be required within the class; this will probably be the last.
@SibTiger SibTiger added the Priority: NORMAL Priority for this report or submission is: NORMAL label Dec 3, 2024
@SibTiger SibTiger added this to the Third Release (1.2.0) milestone Dec 3, 2024
@SibTiger SibTiger moved this from To do to In Progress in PSCAT Software Kanban (Version 1.2.0) Dec 5, 2024
@SibTiger SibTiger self-assigned this Dec 5, 2024
SibTiger added a commit that referenced this issue Dec 5, 2024
Updated the documentation for the class description, DefaultCompress.  This was long over due and the dependencies where not entirely correct previously.  Because the focus will be on PowerShell Core, the documentation should reflect solely on that - not on Windows PowerShell 5.1, as that environment cannot work with PSCAT.

#94
SibTiger added a commit that referenced this issue Dec 5, 2024
Technically, we are talking about the 'class' not the 'object'.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
This is not truly part of this ticket, but I will go ahead an allow it so I can move forward without holding this hostage for a long period of time.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
I know what I am trying to do, but others more technical in POSH may not.  The intention was to 'think' of these hidden variables as 'Private' in the C++ world, but that principle is not extinct nor possible in POSH as the variable is always visible.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
Instead of assigning the value during the creation of the DefaultCompress object, we will instead declare and initialize without having to use the class constructors.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
SibTiger added a commit that referenced this issue Dec 7, 2024
It is strongly recommended to /_NOT_/ move these directories around as the entire program will not play nice doing so -- with that do /NOT/ encourage it.  Remove the SetRootLogPath() and SetLogPath() from the DefaultCompress class.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
The reasoning for this change can be found in this commit: 58354bd

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
SibTiger added a commit that referenced this issue Dec 7, 2024
Resolved an issue when loading the user configuration where none-existent functions would be called, SetRootLogPath() and SetLogPath().  This change is related to:  4bd1e75

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
Because we can assign default values of member variables when the object is created without needing a class constructor, we can assign the default values to the following member variables: $__rootLogPath, $__logPath, and $__objectGUID without needing to have the same assignment in two different constructors.

#94
SibTiger added a commit that referenced this issue Dec 7, 2024
SibTiger added a commit that referenced this issue Dec 7, 2024
This function is no longer required; was only used for Generating Report which had been removed in commit fe45b74

#94
SibTiger added a commit that referenced this issue Dec 8, 2024
SibTiger added a commit that referenced this issue Dec 8, 2024
Because this function was only used for reports, which was removed in commit fe45b74 .

#94
SibTiger added a commit that referenced this issue Dec 8, 2024
Despite I do not use this script file anymore, lets try not to completely forget this.

#94
SibTiger added a commit that referenced this issue Dec 8, 2024
When the required logging directories could not be created, provide a message box and further details onto the terminal buffer for the reasoning of the error.

#94
SibTiger added a commit that referenced this issue Dec 8, 2024
SibTiger added a commit that referenced this issue Dec 8, 2024
I do not think it is possible to obtain the dotNET Core anymore; I think I wrote this in the early days when dotNET Core was not entirely bundled within POSH Core?  I could had swore you had to install both back in the day, but not really needed these days?  Hard for me to confirm 😕

#94
SibTiger added a commit that referenced this issue Dec 8, 2024
SibTiger added a commit that referenced this issue Dec 8, 2024
SibTiger added a commit that referenced this issue Dec 8, 2024
Because the [Logging]::DebugLoggintState() function had been removed in commit 23ed4fe , then this can be removed.

#94
#97
SibTiger added a commit that referenced this issue Dec 8, 2024
Because the [Logging]::DebugLoggintState() function had been removed in commit 23ed4fe , then this can be removed.

#94
#97
SibTiger added a commit that referenced this issue Dec 8, 2024
Because the [Logging]::DebugLoggintState() function had been removed in commit 23ed4fe , then this can be removed.

#94
#97
SibTiger added a commit that referenced this issue Dec 11, 2024
SibTiger added a commit that referenced this issue Dec 12, 2024
SibTiger added a commit that referenced this issue Dec 12, 2024
SibTiger added a commit that referenced this issue Dec 12, 2024
- Updating documentation
- $fileNameExt was never included in the initialization list
- Moved the assignments  for $fileName, $fileNameExt, $execReason right below the initialization list.
- Provide a message box to the user when things go horribly wrong.

#94
SibTiger added a commit that referenced this issue Dec 13, 2024
When an error occurs, present a message box to the user when something happens.

#94
SibTiger added a commit that referenced this issue Dec 13, 2024
Revised the function  such that there is no mention nor support of 'Reports', as that is no longer a feature within the class.

#94
@SibTiger
Copy link
Owner Author

In a conversation today, I noticed - through some self reflection - that I fell into that 'perfection trap' again. I will focus on what /needs/ to be changed, but don't make it perfect - it'll never be perfect.

I will look over the functions again if incase I notice something out of whack, I can make the changes as needed. Otherwise, if the changes are not necessary - I'll close this ticket and call it done.

SibTiger added a commit that referenced this issue Dec 15, 2024
@SibTiger
Copy link
Owner Author

I will go ahead and close this ticket.

@SibTiger
Copy link
Owner Author

Attaching this to #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: NORMAL Priority for this report or submission is: NORMAL
Projects
Development

No branches or pull requests

1 participant