Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 23, 2020

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented Oct 23, 2020

This pull request fixes 1 alert when merging c11822b into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging 05fb2b8 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging 0522b48 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging b92d892 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging f2a45b1 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging 35305e3 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 1 alert when merging 1840be3 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 29, 2020

This pull request fixes 1 alert when merging 1e704fc into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 29, 2020

This pull request fixes 1 alert when merging f30e947 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 29, 2020

This pull request fixes 1 alert when merging 6e144c0 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 29, 2020

This pull request fixes 1 alert when merging bacd35c into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Nov 1, 2020

This pull request fixes 1 alert when merging 7675259 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Nov 1, 2020

This pull request fixes 1 alert when merging 4bd3679 into 886ade4 - view on LGTM.com

fixed alerts:

  • 1 for Container contents are never accessed

Copy link
Member

@jonathanaustin jonathanaustin left a comment

Choose a reason for hiding this comment

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

The changes are looking good and it is always a good thing to see code removed. Great job on the new unit tests.

The updated README is also looking much better. I just added a comment around the best practice section.

I have also added some comments with questions around the code being removed and the new profile code. Hope they make sense and happy to discuss.

@lgtm-com
Copy link

lgtm-com bot commented Nov 8, 2020

This pull request introduces 1 alert and fixes 1 when merging dfc4070 into 886ade4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed

fixed alerts:

  • 1 for Container contents are never accessed

@ghost
Copy link
Author

ghost commented Nov 8, 2020

Ok. Completed a bunch of changes. Are we looking better now

@ghost ghost requested a review from jonathanaustin November 10, 2020 20:59
Copy link
Member

@jonathanaustin jonathanaustin left a comment

Choose a reason for hiding this comment

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

Changes are looking really good.

I just added a comment with a question for clarification.

}
return backing.get(key);
//Final substitution check
return StringSubstitutor.replace(backing.get(key), backing);
Copy link
Member

Choose a reason for hiding this comment

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

Just want to make sure I understand. Why do we need the StringSubstititor in this get method if we have already called substitute after the properties were loaded.

Copy link
Author

Choose a reason for hiding this comment

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

As discussed, I was catering for property definitions defined in the incorrect order. i.e. User error rather than system error.

I have refactored to not substitute on every get() call but to only substitute on the existing load and now have added when the addOrModifyProperty() is called to be able to substitute at runtime.

Rather than substituting at get() we only substitute before put
@lgtm-com
Copy link

lgtm-com bot commented Nov 13, 2020

This pull request introduces 1 alert and fixes 1 when merging 085c614 into 886ade4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed

fixed alerts:

  • 1 for Container contents are never accessed

@ghost ghost requested a review from jonathanaustin November 13, 2020 03:59
Copy link
Member

@jonathanaustin jonathanaustin left a comment

Choose a reason for hiding this comment

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

LGTM

@jonathanaustin jonathanaustin self-requested a review November 13, 2020 04:41
Copy link
Member

@jonathanaustin jonathanaustin left a comment

Choose a reason for hiding this comment

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

Changes look good, just need the change updated with summary of changes and new profile property before merge.

@lgtm-com
Copy link

lgtm-com bot commented Nov 13, 2020

This pull request introduces 1 alert and fixes 1 when merging 9e2d9bb into 886ade4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed

fixed alerts:

  • 1 for Container contents are never accessed

Copy link
Member

@jonathanaustin jonathanaustin left a comment

Choose a reason for hiding this comment

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

LGTM

@jonathanaustin jonathanaustin merged commit 935b94f into BorderTech:master Nov 13, 2020
@ghost ghost deleted the feature/issue37-Refactor branch November 15, 2020 11:53
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.

1 participant