-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mvom increment #750
Mvom increment #750
Conversation
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.
I've finished a first pass review and left several comments. Overall this looks good, but I had suggestions for improvement.
418e62c
to
752c858
Compare
@shawnmcknight Thank you for your review. I have addressed your feedback in the latest series of commits. This is ready for another look. |
a9ab65a
to
f85d958
Compare
switching to setting up the TS code so I can deploy and test.
… compileModel. Wrote tests.
Update tests.
- remove unnecessary continue - fixed indentation in increment and save when creating null projection - added pattern match test
…ill not return null data. update the DbSubroutineOutputIncrement type. update tests.
…ccept the key paths. Throw an error when invalid path encountered and when paths length is 0 because returning anything else would result in bad data when the U2 code processes the paths. Consolidate buildOrdinalPaths within transformPathsToOrdinalPositions by making the logic simpler. Update tests
…ition. Its only use was for transforming a single path so no point in having it work for multiple and having to work around that. Updated tests accordingly. Updated compileModel to use it as necessary
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.
Looks good. Just a few minor comments left.
…ll assertion and checking for null.
…ansformPathToOrdinalPosition path parameter.
…Schema.transformPathToOrdinalPosition path parameter.
…ean check as it should be.
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!
Summary
This PR implements the new
increment
operation.TypeScript Changes
increment
operationincrement
on dynamically generated Model class viacompileModel
.transformPathToOrdinalPosition
to transform an increment operation input key path to its ordinal position.Connection
to handle newRecordNotFoundError
.UniBasic Changes
increment.njk
RecordLockedError
when retry max is exceededRecordNotFoundError
error whenelse
statement executes onreadu
.Testing Notes
Ran tests using MVOM:
RecordNotFoundError
RecordLockedError
returned.