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

Reflection_Engine: Final tidy up #2944

Merged
merged 8 commits into from
Nov 9, 2022

Conversation

FraserGreenroyd
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd commented Nov 8, 2022

Issues addressed by this PR

Fixes #2734

Test files

Changelog

Additional comments

Everything that remains/wasn't moved I consider to be a part of 'reflection' - the act of the code asking questions about itself in some fashion or another.

I added documentation for any file I touched that didn't have any.

I also added some unit tests because, why not? 😄

For the URL unit test, I obtained all of the types from the BHoM repo, then checked all of their URLs to see which ones returned a 404 - indicating the URL generated is not valid for that type. I then removed those and produced the unit test on the working ones. The reason for this is that we then have a store of the working outputs that we don't want to change - and any subsequent PRs which fix or resolve the non-working URL generations will want to check the working ones haven't broken too. Hopefully that makes sense 😄

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check installer

There are 7 requests in the queue ahead of you.

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 18 requests in the queue ahead of you.

@FraserGreenroyd FraserGreenroyd added the type:compliance Non-conforming to code guidelines label Nov 8, 2022
@FraserGreenroyd FraserGreenroyd self-assigned this Nov 8, 2022
@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check versioning

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check versioning

There are 8 requests in the queue ahead of you.

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check core
@BHoMBot check null-handling
@BHoMBot check serialisation
@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check core
  • check null-handling
  • check serialisation
  • check unit-tests

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check unit-tests

There are 16 requests in the queue ahead of you.

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 9 requests in the queue ahead of you.

@FraserGreenroyd FraserGreenroyd marked this pull request as ready for review November 8, 2022 19:06
@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

The check installer has already been run previously and recorded as a successful check. This check has not been run again at this time.

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check copyright-compliance
@BHoMBot check dataset-compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 8, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check copyright-compliance
  • check dataset-compliance

There are 3 requests in the queue ahead of you.

Copy link
Contributor

@IsakNaslundBh IsakNaslundBh 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.

See comments on potential further simplification and removal of some methods that I cannot really see any point in keeping :)

Data_Engine/Query/Count.cs Outdated Show resolved Hide resolved
Data_Engine/Query/Count.cs Outdated Show resolved Hide resolved
@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check compliance
@BHoMBot check unit-tests
@BHoMBot check versioning

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 9, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance
  • check unit-tests
  • check versioning

There are 1 requests in the queue ahead of you.

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check null-handling
@BHoMBot check serialisation
@BHoMBot check core

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 9, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check null-handling
  • check serialisation
  • check core

Copy link
Contributor

@IsakNaslundBh IsakNaslundBh left a comment

Choose a reason for hiding this comment

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

Codechanges looks good and make sense.

Made a quick test of calling the Count method from exce, including checking the versioning functioning, and no issues to report.

Approved

@FraserGreenroyd
Copy link
Contributor Author

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 9, 2022

@FraserGreenroyd to confirm, the following actions are now queued:

  • check ready-to-merge

@FraserGreenroyd FraserGreenroyd merged commit 57c85bb into main Nov 9, 2022
@FraserGreenroyd FraserGreenroyd deleted the Reflection_Engine-#2734-FurtherReview branch November 9, 2022 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:compliance Non-conforming to code guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reflection_Engine: Further review
2 participants