Skip to content

Conversation

@ajrice6713
Copy link
Contributor

No description provided.

@ajrice6713 ajrice6713 requested a review from a team July 18, 2022 14:51
@ajrice6713 ajrice6713 changed the base branch from main to feature/openapi-generator-sdk July 18, 2022 14:51
github actions runId is not unique
Copy link

@bpateldx bpateldx left a comment

Choose a reason for hiding this comment

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

Please review. No blocker except using with for opening file


def _steps(self) -> None:
for name in dir(self): # dir() result is implicitly sorted
if name.startswith("step"):

Choose a reason for hiding this comment

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

Alternate way to go about finding functions you are interested in - override dir:

   def __dir__(self):
       # this allows naming your functions the way you really want-:)
        return['upload', 'download', 'delete', 'list_media']

Copy link
Contributor Author

@ajrice6713 ajrice6713 Jul 18, 2022

Choose a reason for hiding this comment

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

dir() in python returns the list sorted in alphabetic order so i don't think this is possible (with overriding __dir__ at least - it might be possible another way

Choose a reason for hiding this comment

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

The above function will return list so the items would be exactly in the specified order.

Simple way to go about this would be literally calling these functions in the order you desire. It will depict the intention in simple, easy to digest way.

@ajrice6713 ajrice6713 requested a review from bpateldx July 18, 2022 20:22
Copy link

@bpateldx bpateldx left a comment

Choose a reason for hiding this comment

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

Good with changes

@ajrice6713 ajrice6713 merged commit ceb123b into feature/openapi-generator-sdk Jul 20, 2022
@ajrice6713 ajrice6713 deleted the DX-2686 branch July 20, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants