Skip to content

Conversation

@sjuarezgx
Copy link
Contributor

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@sjuarezgx sjuarezgx had a problem deploying to external-storage-tests July 28, 2023 18:08 — with GitHub Actions Failure
@sjuarezgx sjuarezgx had a problem deploying to external-storage-tests July 30, 2023 01:27 — with GitHub Actions Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

else
//Try authenticating using AD
{
logger.Debug("Authentication using Oauth 2.0.");
Copy link
Collaborator

@claudiamurialdo claudiamurialdo Aug 1, 2023

Choose a reason for hiding this comment

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

Would it be posible to use GXLogging instead of the direct logger? This way, we can reuse the logic. For instance, GXLogging checks for enabled logs in each method.
The project already has a reference to GXEventRouter which references GxClasses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ready. Thanks.

else
{
throw ae;
throw new Exception("There was an error at the Event Grid initialization.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Throwing exceptions is more expensive than setting an error code or returning a message. Have we already considered managing errors in a way other than throwing exceptions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seemed like a good idea to me as it is now (I saw it in other projects) because the implementation of the methods for each provider was cleaner, and then in the class that implements the EO handles the errors...
Besides, it cannot be changed for some methods like Connect, because it calls using reflection the provider´s implementation and catches the exceptions..

@sjuarezgx sjuarezgx temporarily deployed to external-storage-tests August 1, 2023 19:33 — with GitHub Actions Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Copy link
Collaborator

@claudiamurialdo claudiamurialdo left a comment

Choose a reason for hiding this comment

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

Except for the comment about avoiding to create and throw exceptions, the rest LGTM.

@sjuarezgx sjuarezgx merged commit 0e4a98e into master Aug 2, 2023
@sjuarezgx sjuarezgx deleted the Issue104035 branch August 2, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants