-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cu 86bzhmv6z custom aux gid not accepted during golden record creation or restoration #273
Conversation
WalkthroughRecent updates affect various components across the JeMPI application. The Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- JeMPI_Apps/JeMPI_EM_Scala/src/main/scala/org/jembi/jempi/em/config/Config.scala (2 hunks)
- JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/config/input/Generate.java (1 hunks)
- JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/models/AuxGoldenRecordData.java (2 hunks)
- JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/utils/AppUtils.java (3 hunks)
- devops/linux/docker/data-config/config-reference-link-dp.json (2 hunks)
Additional comments not posted (7)
JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/config/input/Generate.java (2)
6-8
: LGTM! New field added toGenerate
record.The
interactionField
field has been correctly added to theGenerate
record.
10-12
: LGTM! New constructor added to initializeinteractionField
.The new constructor correctly initializes the
interactionField
field tonull
if not provided.JeMPI_Apps/JeMPI_EM_Scala/src/main/scala/org/jembi/jempi/em/config/Config.scala (1)
39-42
: LGTM! New field added toGenerate
case class.The
interactionField
field has been correctly added to theGenerate
case class with a default value ofNone
.JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/utils/AppUtils.java (1)
55-76
: LGTM! New methoddefaultIfFalsy
added.The method correctly handles default values for various types by returning a default value if the input is considered falsy.
JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/models/AuxGoldenRecordData.java (1)
Line range hint
31-51
:
LGTM! Constructor refined to handleinteractionField
conditions.The changes ensure that the
interactionField
is correctly handled and the appropriate value is assigned.devops/linux/docker/data-config/config-reference-link-dp.json (2)
29-37
: Addition ofaux_gid
toauxInteractionFields
looks good.A new field
aux_gid
with typeString
and a generation functionAppUtils::autoGenerateId
has been added. This addition is consistent with other fields using the same generation function.
62-63
: Modification ofaux_id
and addition ofaux_gid
toauxGoldenRecordFields
looks good.The existing field
aux_id
is updated to include aninteractionField
property referencingaux_gid
. A new fieldaux_gid
with typeString
and a generation functionAppUtils::autoGenerateId
has been added. These changes are consistent with the PR objectives and context.
This change is no longer required |
@MatthewErispe I think the logic needs a sanity check. Do you see any potential knock-on effects of the change to the java and scala "Generate" inputs? Seems safe from what I see.
And this "interactionField" argument added to the "generate" prop:
{ "fieldName": "aux_gid", "fieldType": "String", "source": { "generate": { "func": "AppUtils::autoGenerateId", **"interactionField": "aux_gid"** } } }
We could make this more generic, like an "args" object, if the future scope of "generate > func" is likely to expand? Could introduce type safety issues doing it that way so just checking what you think...
Summary by CodeRabbit
New Features
interactionField
in various components for enhanced field mapping and data population logic.defaultIfFalsy
method for handling default values in utilities.Refactor
AuxGoldenRecordData
to handle new interaction field conditions.Chores