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

Some cleanup to tickets list view #5591

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Some cleanup to tickets list view #5591

merged 1 commit into from
Oct 29, 2024

Conversation

rowanseymour
Copy link
Member

Trying to make it easier to add topic/team filtering everywhere we fetch tickets.

return "tickets:activity", ""
return "", ""

def derive_menu_path(self):
return f"/ticket/{self.kwargs.get('folder', 'mine')}/"
folder, status, ticket, in_page = self.tickets_path
Copy link
Member Author

Choose a reason for hiding this comment

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

this fixes not changing the menu selection if ticket_path redirects to the All folder

@rowanseymour rowanseymour force-pushed the ticket_cleanup branch 2 times, most recently from 0bb70b0 to 47c5731 Compare October 29, 2024 18:33
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a385918) to head (54e7a59).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5591   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          551       551           
  Lines        25733     25728    -5     
=========================================
- Hits         25733     25728    -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -590,34 +590,35 @@ def test_list(self):
self.assertRequestDisallowed(list_url, [None])
self.assertListFetch(list_url, [self.user, self.editor, self.admin, self.agent], context_objects=[])

# can hit this page with a uuid
# TODO: work out reverse for deep link
Copy link
Member Author

Choose a reason for hiding this comment

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

can't be done - django can't reverse urls with |

@rowanseymour rowanseymour merged commit fa6a53d into main Oct 29, 2024
5 checks passed
@rowanseymour rowanseymour deleted the ticket_cleanup branch October 29, 2024 19:43
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant