Skip to content

Conversation

@ryanbas21
Copy link
Collaborator

@ryanbas21 ryanbas21 commented Apr 29, 2025

JIRA Ticket

https://pingidentity.atlassian.net/browse/SDKS-4007

Description

fixing a couple misalignments on NodeStates and continue fallback

@changeset-bot
Copy link

changeset-bot bot commented Apr 29, 2025

🦋 Changeset detected

Latest commit: 12179a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@forgerock/davinci-client Patch
@forgerock/sdk-types Patch
@forgerock/sdk-utilities Patch
@forgerock/sdk-logger Patch
@forgerock/sdk-oidc Patch
@forgerock/sdk-request-middleware Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Apr 29, 2025

View your CI Pipeline Execution ↗ for commit 12179a1.

Command Status Duration Result
nx affected -t build typecheck lint test e2e-ci ✅ Succeeded 1m 20s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-01 15:49:16 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Apr 29, 2025

Deployed eca3bde to https://ForgeRock.github.io/ping-javascript-sdk/pr-267/eca3bdea139dc6a712dd125defefbb3d0afb0bf6 branch gh-pages in ForgeRock/ping-javascript-sdk

@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2025

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 55.34%. Comparing base (e2af21d) to head (12179a1).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
packages/davinci-client/src/lib/client.store.ts 0.00% 7 Missing ⚠️

❌ Your patch status has failed because the patch coverage (12.50%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #267      +/-   ##
==========================================
+ Coverage   47.35%   55.34%   +7.99%     
==========================================
  Files          29       20       -9     
  Lines        1472     1384      -88     
  Branches      148      164      +16     
==========================================
+ Hits          697      766      +69     
+ Misses        775      618     -157     
Files with missing lines Coverage Δ
packages/davinci-client/src/lib/node.slice.ts 82.98% <100.00%> (ø)
packages/davinci-client/src/lib/node.types.ts 100.00% <ø> (ø)
packages/davinci-client/src/lib/client.store.ts 0.43% <0.00%> (-0.02%) ⬇️

... and 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ryanbas21 ryanbas21 marked this pull request as ready for review April 29, 2025 21:31
Comment on lines 133 to 141
client: {
action: '',
collectors: [],
status: 'error',
},
cache: {
key: '',
},
httpStatus: 200,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just add the proper DaVinciError to the StartNode, and then you wouldn't have to recreate this whole object. Then you could just add the error to the existing nodeCheck and return it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this object still needs to be recreated though because to satisfy an ErrorNode we need things like cache, and the client keys as well as the httpStatus and the server to be a status of error.

@ryanbas21 ryanbas21 force-pushed the type-fixes branch 2 times, most recently from 30c9eb1 to 2d040e8 Compare May 1, 2025 15:29
"declaration": true,
"declarationMap": true,
"skipLibCheck": true,
"skipLibCheck": false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm unsure about the importance of this change, its probably worth us having it anyways because if theres a bug in an RTK version we are using we probably want to catch it here in our code before publishing.

this setting just checks the library types also


export const buildPackages = Command.make('pnpm', 'build').pipe(
Command.lines,
Command.string,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formats output better than lines

}),
Effect.asVoid,
);
).pipe(Command.exitCode);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we get a 1 exit code we fail.


const program = Effect.gen(function* () {
yield* Console.log('Starting release script...');
yield* Console.log('Starting release script...', process.cwd());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can remove, it just was me sanity checking the working directory.

fixing a couple misalignments on NodeStates and continue fallback
@ryanbas21 ryanbas21 merged commit 09a7aea into main May 1, 2025
3 checks passed
@ryanbas21 ryanbas21 mentioned this pull request Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants