Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

fix: steps added in v2 and handle 403 errors #43

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

RonaldEAM
Copy link
Contributor

No description provided.

@RonaldEAM RonaldEAM requested a review from a team as a code owner March 13, 2023 14:46
@@ -17,7 +16,6 @@ export function convertConsumable(
entityData: {
source: data,
assign: {
...convertProperties(data),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know what properties that will be dropped by removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was added in v2.x that hasn't been deployed yet, so I removed it before any customer consumes properties there

@@ -90,7 +97,7 @@ export class ServicesClient {
offset += limit;
data.push(...response.rows);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's preferable to iterate the data and call an iteratee instead of collecting all the date first in the case that there's a failure along the way. We should address that in a different ticket.

@@ -4,14 +4,23 @@ export class RetryableError extends Error {
retryable = true;
}

export class FatalRequestError extends Error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we switch out the Error for an IntegrationProviderAPIError?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or IntegrationProviderAuthorizationError if applicable?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or IntegrationProviderAuthorizationError if applicable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure!

@@ -53,8 +71,8 @@ export async function buildUserConsumableRelationships({
// cheerio, a jQuery implementation for the server side, is used
// to easily manipulate the HTML elements and retrieve the user Id
consumableUsers.map(async (consumableUser) => {
if ((consumableUser as ConsumableUser).name) {
const $ = cheerio.load((consumableUser as ConsumableUser).name);
if (consumableUser.name) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@VDubber VDubber left a comment

Choose a reason for hiding this comment

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

Ready to approve!

@RonaldEAM RonaldEAM merged commit 257acd9 into main Mar 15, 2023
@RonaldEAM RonaldEAM deleted the fix-new-steps branch March 15, 2023 14:53
@j1-internal-automation
Copy link
Collaborator

🚀 PR was released in v2.1.0 🚀

@j1-internal-automation j1-internal-automation added the released This issue/pull request has been released. label Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants