Repository navigation
fix(results): recognize Proofpoint User/Domain create success shape (WYREAI-574) - #8
Conversation
…(WYREAI-574) postUser 201 returns a User with required primary_email and no status/success flag; batchCreateResult was marking those unconfirmed. Recognize primary_email/email (users) and name (domains) without error fields as succeeded.
|
Warning Review limit reachedYour organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Next included review available in 13 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Pins the released SDK that uses GET /orgs/{domain}/users/{email} for
users.get, matching the create-summary fix already on this branch.
|
@coderabbitai approve |
Action performed
|
|
🎉 This PR is included in version 1.0.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Rick’s retest (WYREAI-574):
users_createcreated the user, but the tool summary said0 succeeded / 1 unconfirmed.batchCreateResultonly treated items as succeeded when they hadsuccess: trueor a numericstatus/code. Proofpoint’spostUser201 response is a bareUser(primary_emailrequired) with no status/success flag — same idea for DomainnameonpostDomain.This treats a returned item with
primary_email/email(users) orname(domains) and no error fields as succeeded.Also bumps
@wyre-ai/node-proofpoint-essentialsto^1.1.1(released after SDK #5 merge), which fixesusers.getto useGET /orgs/{domain}/users/{email}.Doc evidence
From Proofpoint Essentials OpenAPI (
https://us1.proofpointessentials.com/apidocs/apidocs/docs):postUser201 → schemaUser(required:primary_email)postDomain201 → schemaDomain(required:name)GET /orgs/{domain}/users/{user}—getUser(email path param); list endpoint has no email filterSDK
@wyre-ai/node-proofpoint-essentials@1.1.1Test plan
Refs: WYREAI-574 / HubSpot 338019781355 / SDK WYRE-AI/node-proofpoint-essentials#5
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit
Bug Fixes
Documentation