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

16232 only remove checkbox on embedded tables #16233

Closed
wants to merge 1 commit into from

Conversation

arthanson
Copy link
Collaborator

Fixes: #16232

Not 100% sure of this solution, relies on the 'return_url' which will be for bulk operations not being the same as the request path. As this routine tries to set if the table is embedded, I'm not sure if there is another flag to look at that would be different if it is a main table or embedded.

@arthanson arthanson marked this pull request as ready for review May 21, 2024 23:20
@arthanson arthanson requested a review from jeremystretch May 21, 2024 23:20
@@ -112,6 +112,13 @@ def export_template(self, template, request):
query_params.pop('export')
return redirect(f'{request.path}?{query_params.urlencode()}')

def _is_embedded_path(self, request):
if 'return_url' in request.GET:
Copy link
Member

Choose a reason for hiding this comment

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

We can't rely on return_url as an indicator for the nature of the request.

@jeremystretch
Copy link
Member

I ended up taking a different, more concrete approach in #16239. We should still dedicate some time at some point to doing some general cleanup around embedded tables, but I think this suffices for now.

@jeremystretch jeremystretch deleted the 16232-ui-checkbox branch June 20, 2024 14:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 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.

Netbox UI. Checkbox disappearing in any Table (Site, Rack, etc) after clicking to next page
2 participants