Repository navigation
COG-1150: W1 · User + UserRole GenerationType.IDENTITY and @JsonIgnore on recipientList - #341
Open
patrickbradley-cog wants to merge 1 commit into
Conversation
…e recipientList Co-Authored-By: patrick.bradley <patrick.bradley@cognition.ai>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or 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
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.
Summary
COG-1150 — W1 forward-compatible refactor on Boot 1.5.4 (no Boot/Java bump). Linear: https://linear.app/cog-gtm/issue/COG-1150/w1-user-userrole-generationtypeidentity-and-jsonignore-on
use-new-id-generator-mappings=true, which would turnAUTOinto ahibernate_sequencetable generator and collide with existingAUTO_INCREMENTids. On Boot 1.5.4AUTOalready resolves to identity for MySQL, so this is a no-op today that takes the hazard out of the W2 pivot.Roleis intentionally untouched (roleIdis manually assigned).@JsonIgnore recipientList:GET /api/user/all(admin listing) no longer serialises every user's recipients (name/email/phone/account number/description), and no longer lazy-loads onerecipientquery per user.AdminPortal'suser.service.tsnever read it. Thymeleaf transfer/recipient pages are unaffected (they useTransactionService.findRecipientList, not the JSON).Golden fixtures (COG-1145)
src/test/resources/golden/boot15/user-all.jsondoes not exist onmasteryet, so nothing was regenerated here. Depending on merge order, COG-1145'suser-all.jsonfixture must be generated withoutrecipientList(or regenerated after this lands).Merge order
Should merge behind the W0 smoke suite (COG-1141 harness + #106 / #108 / #109), which is not on
masteryet. Verified below with the existing test + manual run against MySQL.Verification (Temurin 1.8.0_504, Boot 1.5.4,
mysql:5.7in docker)mysql:8.0can't be used with the Boot 1.5.4-managed connector (5.1.42:Unknown system variable 'query_cache_size'), so amysql:5.7container was used with--spring.datasource.url=jdbc:mysql://localhost:3306/onlinebanking?useSSL=false.1.
mvn -B -f UserFront/pom.xml verify2. Baseline on
master— started master jar against an empty DB (ddl-auto=update created the schema), seededrole(0=ROLE_USER, 1=ROLE_ADMIN), signed upu1,u2viaPOST /signup, added one recipient each viaPOST /transfer/recipient/save, grantedu1ROLE_ADMIN, thenGET /api/user/allasu1:3. This branch against the same existing schema — started branch jar, signed up
u3+ recipient, thenGET /api/user/allas adminu1:/transfer/recipientand/transfer/toSomeoneElseasu3still renderRecip3.Unrelated pre-existing issue observed: after an app restart, the first signup fails with
NonUniqueResultExceptionbecauseAccountServiceImpl.nextAccountNumberis an in-memory static counter that restarts at 11223145 and collides with existing account numbers; the retry succeeds. Happens identically onmaster; not touched here.AdminPortal not touched, so no Angular build needed.
Devin-Org: engineering
Link to Devin session: https://app.devin.ai/sessions/fc7b925445f049c9a8585720b1951730
Open in Devin Desktop: https://app.devin.ai/desktop/session/fc7b925445f049c9a8585720b1951730?variant=devin
Requested by: @patrickbradley-cog
Devin Review