Skip to content

chore: refactor effects and utilities architecture and patterns#246

Merged
ryanbas21 merged 1 commit into
mainfrom
refactor_effects-utilities-arch
Apr 21, 2025
Merged

chore: refactor effects and utilities architecture and patterns#246
ryanbas21 merged 1 commit into
mainfrom
refactor_effects-utilities-arch

Conversation

@cerebrl
Copy link
Copy Markdown
Collaborator

@cerebrl cerebrl commented Apr 16, 2025

This is just an example refactor for the effect and utility work done by @ryanbas21 and @ancheetah.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 16, 2025

🦋 Changeset detected

Latest commit: 0d54b34

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

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
Copy Markdown
Contributor

nx-cloud Bot commented Apr 16, 2025

View your CI Pipeline Execution ↗ for commit 0d54b34.

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

☁️ Nx Cloud last updated this comment at 2025-04-21 15:16:29 UTC

@cerebrl cerebrl force-pushed the refactor_effects-utilities-arch branch from f55bb63 to 60a3024 Compare April 16, 2025 22:40
@ryanbas21 ryanbas21 force-pushed the refactor_effects-utilities-arch branch 3 times, most recently from e4c8a5e to 0bd289e Compare April 17, 2025 00:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2025

Deployed 25ef011 to https://ForgeRock.github.io/ping-javascript-sdk/pr-246/25ef011d2fee1497e5f60b0346f43b6ba556c61c branch gh-pages in ForgeRock/ping-javascript-sdk

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 47.35%. Comparing base (ece3602) to head (0d54b34).

Files with missing lines Patch % Lines
packages/davinci-client/src/lib/davinci.api.ts 0.00% 3 Missing ⚠️
packages/davinci-client/src/lib/client.store.ts 0.00% 1 Missing ⚠️
...kages/davinci-client/src/lib/client.store.utils.ts 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) 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     #246      +/-   ##
==========================================
+ Coverage   45.29%   47.35%   +2.06%     
==========================================
  Files          33       29       -4     
  Lines        1550     1472      -78     
  Branches      187      148      -39     
==========================================
- Hits          702      697       -5     
+ Misses        848      775      -73     
Files with missing lines Coverage Δ
packages/davinci-client/src/lib/config.types.ts 100.00% <ø> (ø)
packages/davinci-client/src/lib/node.utils.ts 96.77% <ø> (+16.12%) ⬆️
packages/davinci-client/src/types.ts 50.00% <ø> (ø)
packages/davinci-client/src/lib/client.store.ts 0.45% <0.00%> (ø)
...kages/davinci-client/src/lib/client.store.utils.ts 3.44% <0.00%> (ø)
packages/davinci-client/src/lib/davinci.api.ts 0.45% <0.00%> (ø)

... and 8 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 force-pushed the refactor_effects-utilities-arch branch from 075c43d to 6268772 Compare April 17, 2025 13:27
@ryanbas21 ryanbas21 changed the base branch from effects-package to main April 17, 2025 13:31
@ryanbas21 ryanbas21 force-pushed the refactor_effects-utilities-arch branch from 6268772 to 324d6a6 Compare April 17, 2025 13:40
@ryanbas21 ryanbas21 mentioned this pull request Apr 17, 2025
@ryanbas21 ryanbas21 force-pushed the refactor_effects-utilities-arch branch from 2d24070 to 585d3cb Compare April 18, 2025 14:27
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Let's make sure to call the package sdk-effects.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you want the logger to be called sdk-effects?

@ryanbas21 ryanbas21 force-pushed the refactor_effects-utilities-arch branch from 585d3cb to be431a3 Compare April 19, 2025 13:10
…ed-packages

Ported over logger, oidc, and abstracted request middleware into own
packages. As a result we created a shared types and and a utilities
directory. Updated davinci-client to use these packages. Added copyright

 Co-authored-by: AJ Ancheta <ajancheta@pingidentity.com>
 Co-authored-by: Justin Lowery <justin.lowery@pingidentity.com>
@ryanbas21 ryanbas21 force-pushed the refactor_effects-utilities-arch branch from be431a3 to 0d54b34 Compare April 21, 2025 15:13
@cerebrl
Copy link
Copy Markdown
Collaborator Author

cerebrl commented Apr 21, 2025

This looks good to me. I can't approve this since it's my own PR, so someone else will have to approve it.

IMPORTANT: for future reference, please don't rewrite or squash other people's commits; only alter your own. Since three people contributed to this PR, I'd expect to see at least three commits (one for each author).

Comment thread nx.json
"test": {
"inputs": ["default", "^default", "noMarkdown", "^noMarkdown"],
"dependsOn": ["^test"],
"dependsOn": ["^test", "^build", "^build", "^build", "^build"],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

how did build get in here so many times?

@ryanbas21 ryanbas21 merged commit db99f37 into main Apr 21, 2025
4 checks passed
@ryanbas21 ryanbas21 deleted the refactor_effects-utilities-arch branch April 21, 2025 21:36
@ryanbas21 ryanbas21 mentioned this pull request Apr 21, 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