-
Notifications
You must be signed in to change notification settings - Fork 7
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
BHoM_Adapter - refactoring - Level 3 changes #151
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… in the CRUD folder
…ults methods accepting generic IRequest instead of FilterRequest
…oved UpdateProperty Action. Lots of comments. Only consistency for IRequest missing is in the UpdateProperty, that at this point is too messy to do.
alelom
added
the
status:WIP
PR in progress and still in draft, not ready for formal review
label
Oct 18, 2019
…ly. Rewrote some comments.
… `as dynamic` for FilterRequest. Comment for temporary retrocompatibility fix ReadResult has to happen before Read as IResultRequest inherits from IRequest.
This was referenced Oct 24, 2019
1. Removed `MergeWithComparer` which was never used. It was only referenced in `ReplaceInMemory()` but that case was never true due to Toolkit implementations. Added a bool `mergeWithCompararer` input parameter in the `ReplaceInMemory()` method instead. 2. Changed `ProcessInMemory` default value to `false`. 3. Changed `HandleDependencies` (formerly `SeparateProperties`) default value to `true`.
alelom
removed
the
status:WIP
PR in progress and still in draft, not ready for formal review
label
Oct 29, 2019
This was referenced Oct 31, 2019
This was referenced Oct 31, 2019
This was referenced Oct 31, 2019
This was referenced Oct 31, 2019
FraserGreenroyd
approved these changes
Nov 1, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This was referenced Nov 1, 2019
This was referenced Nov 4, 2019
This was referenced Dec 2, 2019
This was referenced Dec 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues addressed by this PR
Closes #114 ,Closes #87, closes #147, closes #155, closes #113, closes #109, closes #148, closes #149
NOTE: This PR will break ALL TOOLKITS that include an Adapter project
However, no script will break due to this.
There is an admin issue that explains the steps needed to align with this change.
Changelog
Adapter Actions:
AdapterActions
.Delete
Adapter Action now lives in a file (temporarily?) namedRemove.cs
, while awaiting on the decision on a better naming to distinguish it from the CRUD delete. Discussion here.UpdateProperty
Adapter Action, as discussed here.Pull()
that calls the appropriateRead()
/ReadResults()
method depending on the base parent type of the providedrequest
, usingas dynamic
.CRUD methods:
replaceAll
from theCreate()
method signature. It was never properly used.protected virtual Read(IRequest)
Wrapper virtual methodprotected virtual ReadResult(IRequest)
Wrapper virtual methodas dynamic
pattern in the Pull, as introduced above in the "Adapter Actions" changes.virtual
for consistency.Create.cs
,Read.cs
, etc.). From now on, we will call those Basic CRUD methods.UpdateOnly.cs
file toUpdate.cs
.Update.cs
.Adapter properties:
ErrorLog
Adapter property.Config
public property:SeparateProperties
toHandleDependencies
. Changed its default value from False to True.ProcessInMemory
from True to False.MergeWithComparer
property. It was never used.Adapter other methods:
Replace()
method toCRUD()
File_Adapter:
Legacy
folder and its content (was all commented/unused code).Additional notes
Needs all these PRs to be merged in master:
IObject
instead ofIBHoMObject
BHoM#572 (now merged)