-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: deprecate unused operation names #3180
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
CodSpeed Performance ReportMerging #3180 will improve performances by ×2.6Comparing Summary
Benchmarks breakdown
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although the OperationName
enum is hidden it's still exported by the account
package and therefore it's a breaking change no? Perhaps we should add a deprecation notice instead.
I would concur. |
@maschad But the enum This enum doesn't have any purpose for users to use it within their code. Especially the removed entries as the SDK is not even using them. We don't even have operations that use the removed enum entries. |
@maschad Is it practically a breaking change though? Like Sergio mentioned, there is no use of this enum for anyone really |
The issue here is that we can't guarantee that a consumer downstream didn't use this enum in their code since it was exported and as such if we remove properties from it then it would break their code. |
@maschad This seems like junk code that doesn't fit and can't be used anywhere - or can it? @Torres-ssf I believe we had another PR like this a few weeks ago, removing some broken/obsolete code. I couldn't find it, maybe you remember something. |
@arboleya I believe you may be referring to this PR My understanding from that discussion as well as this one (where I had previously advocated for it to be non-breaking) is that even in scenarios where consumers more than likely would not have used those exports, we were erring on the side of caution, and thus taking the more conservative approach to treat the removal of any exported code as breaking. I am open to discuss but this is my current understanding of the consensus around these types of changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OperationName
being removed here, are being used in the fuels-wallet
.
I believe we should just depreciate these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with the sentiment here and exercising caution. Lets add to #3119.
Good catch @petertonysmith94 @LuizAsFight I was under the impression that this was not being used. |
Coverage Report:
Changed Files:
|
@Torres-ssf Not sure why this one is failing |
@petertonysmith94 The enums are only being used within an image map, where the Wallet SDK assigns different images to operations based on their names. The idea is to display different images within the Wallet APP, based on the operation. However, these operation enum entries were never actually used in assembling any operation. Operations are assembled entirely within the TS SDK side, and we never had code that used these enum entries. Therefore, the Wallet SDK would simply need to remove the unused entries from the image map, when updating to the new To address everyone's concerns that some users might be relying on these enums (even though it's highly unlikely, like a bald man using a comb 😆 ), I've marked each unused enum entry with the
I am unsure why this one is falling. It seems to be failing on other PRs as well |
OperationName
Enum Entries in the SDK #3008Checklist