Skip to content
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

Switch to IrodsPath, rename function #249

Merged
merged 8 commits into from
Aug 19, 2024
Merged

Switch to IrodsPath, rename function #249

merged 8 commits into from
Aug 19, 2024

Conversation

chStaiger
Copy link
Member

Rename the listing function for tickets
Switch to IrodsPath

@chStaiger chStaiger requested a review from qubixes August 16, 2024 11:19
@chStaiger chStaiger linked an issue Aug 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@qubixes qubixes left a comment

Choose a reason for hiding this comment

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

Small suggestions, otherwise thanks for picking this one up!

ibridges/tickets.py Outdated Show resolved Hide resolved
elif check:
raise KeyError(f"Cannot delete ticket: ticket '{ticket}' does not exist (anymore).")

def update_tickets(self) -> list[TicketData]:
def list_tickets(self) -> list[TicketData]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure you want to rename it? Now it looks kind of strange to simply call the method without using its contents.

Copy link
Member Author

Choose a reason for hiding this comment

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

I found update_tickets confusing. We are not updating them but pull the information again from the iRODS server. So it is more a list or refresh.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, then let's go with refresh_tickets if you agree?

@chStaiger chStaiger merged commit 84e5112 into develop Aug 19, 2024
9 checks passed
@chStaiger chStaiger deleted the 231-tickets branch August 19, 2024 14:49
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.

create_ticket argument obj_path is unclear
2 participants