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

Issue 461 - Fix for churn score when accessed from a sub-directory #468

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

rishijain
Copy link
Contributor

@rishijain rishijain commented Oct 11, 2023

This is a fix for #461.

From my research, I understood that there are 2 ways to fix this.

  1. When the score is already set for the paths, so when you are trying to fetch the churn score of a file, adjust the path of the file to match the file name that is being stored in the @stats variable.

  2. Adjust the filename when the score is being set, and then fetch the score of the file without any manipulation.

I decided to go with 2nd approach as it seems more cleaner way of solving this.

Check list:

@rishijain rishijain force-pushed the issue461 branch 2 times, most recently from 08aee26 to 59d86fb Compare October 11, 2023 14:58
@rishijain rishijain changed the title [WIP] fix for issue #461 Fix for issue #461 Oct 11, 2023
@rishijain rishijain changed the title Fix for issue #461 Issue 461 - Fix for churn score when accessed from a sub-directory Oct 16, 2023
Copy link
Collaborator

@nunosilva800 nunosilva800 left a comment

Choose a reason for hiding this comment

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

LGTM

* bug fix
* reek fixes
* updated changelog
@etagwerker etagwerker merged commit 2f7e4be into whitesmith:main Oct 18, 2023
26 checks passed
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