Skip to content

Conversation

ontowhee
Copy link
Contributor

@ontowhee ontowhee commented Jun 13, 2025

Fix Issue #259

This is another attempt to make "queues" easy to access. Instead of using javascript as was done in PR #264, this attempts to add tabs.

Forum discussion: https://forum.djangoproject.com/t/proposal-clarify-ticket-statuses-and-queues/41496/

@ontowhee ontowhee force-pushed the ticket-queue-tabs branch from 72675ad to d3c7c0c Compare June 16, 2025 05:57
@ontowhee ontowhee force-pushed the ticket-queue-tabs branch from d3c7c0c to f32f7d6 Compare June 16, 2025 05:59
@ontowhee
Copy link
Contributor Author

Instead of hardcoding the links, I tried using a trac "Component" to add a new navigation bar. This new nav bar only shows up when the page is on View Tickets tab (path is "/query"). I haven't been able to set the correct active item within get_active_navigation_item yet.

trac_queue_navbar.mov

Copy link
Member

@jacobtylerwalls jacobtylerwalls left a comment

Choose a reason for hiding this comment

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

Nice one, @ontowhee. Some minor questions for you and this should be g2g.

implements(INavigationContributor)

def get_active_navigation_item(self, req):
stage = req.args.get("stage")
Copy link
Member

Choose a reason for hiding this comment

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

Tried to get this going locally, would you know anything about this error?

Cannot find an implementation of the IRequestHandler interface named CustomWikiModule. Please check that the Component is enabled or update the option [trac] default_handler in trac.ini.

Copy link
Contributor Author

@ontowhee ontowhee Sep 19, 2025

Choose a reason for hiding this comment

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

Where are you seeing the error? I'm not seeing it. I'm running the project in the docker container, and I have default_handler = CustomWikiModule in trac.ini. Is there a library version mismatch?

Is the error happening at lines 94-97, which is for CustomSubNavigationBar? I wonder why the message reports CustomWikiModule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did see this error when the project was reloading after some changes. I noticed the css wasn't loading properly either. The error didn't appear after I restarted the container and refreshed the page.

Screenshot 2025-09-19 at 3 45 50 PM

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for checking. Restarting the container didn't help. I must have missed some necessary setup?

Copy link
Member

Choose a reason for hiding this comment

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

Huzzah! cd DjangoPlugin && setup.py seemed to do the trick.

@ontowhee
Copy link
Contributor Author

@jacobtylerwalls Thank you so much for the review! I've addressed your points. I think it's looking a lot better now.

Screenshot 2025-09-19 at 5 44 00 PM

Copy link
Member

@jacobtylerwalls jacobtylerwalls left a comment

Choose a reason for hiding this comment

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

As I mentioned in a comment, I can't run the site to view the changes, but the updates look great from a code read. Mind fixing the lint/test errors?

@jacobtylerwalls jacobtylerwalls linked an issue Sep 22, 2025 that may be closed by this pull request
@jacobtylerwalls jacobtylerwalls merged commit f1011af into django:main Sep 22, 2025
5 checks passed
@jacobtylerwalls
Copy link
Member

Thanks @ontowhee!

@ontowhee
Copy link
Contributor Author

Thank you @jacobtylerwalls! I'm excited to see when this goes live!

@jacobtylerwalls
Copy link
Member

Hey @bmispelon just putting on your radar that this change is worth deploying when convenient. Thanks!

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.

Enhancement: Add quick links for ticket query filters
2 participants