Skip to content

Feature/optimalize development env#62

Open
Matthew-Kulich wants to merge 3 commits into
mainfrom
feature/optimalize-development-env
Open

Feature/optimalize development env#62
Matthew-Kulich wants to merge 3 commits into
mainfrom
feature/optimalize-development-env

Conversation

@Matthew-Kulich

Copy link
Copy Markdown
Contributor

No description provided.

@Matthew-Kulich
Matthew-Kulich requested a review from blcham March 24, 2022 11:54

@blcham blcham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, some parts are a little confusing.

I did not get the chance to test it, but I wonder how it works if I just move a file or a directory. The other situation is when I do the following:

  1. I make copy of file A outside of the SPipes scripts dirs
  2. I modify A
  3. I restore A from backup (I just replace new A with old one from backup)

OntoDocManager.addSPINRelevantModel(file.toAbsolutePath().toString(), model);
}

filesModificationTime.put(file, Instant.now());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused here what filesModificationTime means here. You say it is modification time of a file, but still instead of that you put Instant.now() ... why we are not putting here the actual modification time of the file ?

Moreover, remember that we do not need to track the modification time if keepUpdated=false.

}

private static boolean wasModified(Path fileName){
private static boolean wasModifiedOrNewlyAdded(Path fileName){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, it is confusing to call something fileName if it represents file path. The file name is referred to as the last part of the file path. I suggest calling it filePath or even better file.

@Matthew-Kulich

Matthew-Kulich commented Apr 26, 2022

Copy link
Copy Markdown
Contributor Author

I did not get the chance to test it, but I wonder how it works if I just move a file or a directory.

There will be NoSuchFileException.

  • I make copy of file A outside of the SPipes scripts dirs
  • I modify A
  • I restore A from backup (I just replace new A with old one from backup)

This situation works properly.

@blcham

blcham commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

@MSattrtand we should use or close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants