Open maxneuvians opened 1 week ago
@tristan-orourke I think this was an issue with a null coalescing operator change we recently made. We use the same form for adding and editing, if we have an ID we expect it to be editing an experience and run that mutation.
We were passing in an empty string if we had no ID which will not fall through ??
but would for ||
. So it saw the empty string and tried passing that which graphql treats as null.
This was fixed recently in https://github.com/GCTC-NTGC/gc-digital-talent/pull/11719
We will need to test to confirm, but I bneleive this was the issue and has been fixed just not deployed yet.
Thank you for reporting this @maxneuvians, it was very helpful! We've rolled back the problematic release for now.
π Bug
After the update last night I can no longer add Work Experience to my profile. I get an error back from the GraphQL endpoint:
Specifically I tried to add a certification experience. I can still edit existing experience however.
π¦ Expected Behaviour
A new work experience should be added
π΅οΈ Details
π Steps to Reproduce
πΈ Screenshot
πββοΈ Proposed Solution
β Acceptance Criteria