Skip to content

Conversation

@AlexisCnockaert
Copy link
Collaborator

It just needs to connect with actions and the driver will be good :)

@AlexisCnockaert AlexisCnockaert changed the title Driver improvement for temp to instance variable [Refactoring] Driver improvement for temp to instance variable Nov 3, 2025
self refactoringError: temporaryVariableName , ' is a block parameter' ]
]

{ #category : 'as yet unclassified' }
Copy link
Member

Choose a reason for hiding this comment

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

No as yet unclassified

@Ducasse
Copy link
Member

Ducasse commented Nov 8, 2025

@AlexisCnockaert we should improve the class comments and the method comments too.
In particular we should refer to the transformation part and in the transformation part we should also stress the difference with the refactoring part.

RBTemporaryToInstanceVariableRefactoring >> preconditionNoSubclassDefinesVar [

^ RBCondition
withBlock: [ (class allSubclasses anySatisfy: [ :cls | cls definesInstanceVariable: temporaryVariableName asString ]) not ]
Copy link
Member

Choose a reason for hiding this comment

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

In a second PR we should remove this pop up!

Copy link
Contributor

Choose a reason for hiding this comment

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

In a second PR we should remove this pop up!

Yes, I suggested Alexis to leave it like this for the moment.
After merging this PR refactoring the method will be way easier

@Ducasse
Copy link
Member

Ducasse commented Nov 8, 2025

Why is it in draft mode?

@AlexisCnockaert
Copy link
Collaborator Author

@AlexisCnockaert we should improve the class comments and the method comments too. In particular we should refer to the transformation part and in the transformation part we should also stress the difference with the refactoring part.

I agree with this, it dont have good comments which csn lead to confusion

@AlexisCnockaert
Copy link
Collaborator Author

Why is it in draft mode?

We worked on it with Carolina, it misses actions to work at 100%

Copy link
Contributor

@carolahp carolahp left a comment

Choose a reason for hiding this comment

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

@AlexisCnockaert I think we missed pushing the latest changes that include the methods for actions in the driver. You can ping me to take a second look ;)

{ #category : 'accessing' }
ReBrowseMethodsChoice >> description [

^ 'Browse the methods'
Copy link
Contributor

Choose a reason for hiding this comment

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

This description is almost the same as ReBrowseMethodChoice.
Maybe we could use an IV to set it from the driver and make it more specific?

items: self breakingChoices;
display: [ :each | each description ];
displayIcon: [ :each | self iconNamed: each systemIconName ];
openModal
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is duplicated in several driver.
We could move it up in the hierarchy in a future PR

Copy link
Contributor

Choose a reason for hiding this comment

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

This is certainly a mistake; could you please revert it?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is happening when doing a merge from Iceberg :(

@AlexisCnockaert
Copy link
Collaborator Author

@carolahp actions are committed, sorry for the delay

@AlexisCnockaert AlexisCnockaert marked this pull request as ready for review November 20, 2025 14:09
Copy link
Contributor

@carolahp carolahp left a comment

Choose a reason for hiding this comment

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

This is great job!! We tested it live by video and also I checked the full code.

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